walletobjects

package
v0.191.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package walletobjects provides access to the Google Wallet API.

For product documentation, see: https://developers.google.com/pay/passes

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/walletobjects/v1"
...
ctx := context.Background()
walletobjectsService, err := walletobjects.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

walletobjectsService, err := walletobjects.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
walletobjectsService, err := walletobjects.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (
	// Private Service: https://www.googleapis.com/auth/wallet_object.issuer
	WalletObjectIssuerScope = "https://www.googleapis.com/auth/wallet_object.issuer"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivationOptions

type ActivationOptions struct {
	// ActivationUrl: HTTPS URL that supports REST semantics. Would be used for
	// requesting activation from partners for given valuable, triggered by the
	// users.
	ActivationUrl string `json:"activationUrl,omitempty"`
	// AllowReactivation: Flag to allow users to make activation call from
	// different device. This allows client to render the activation button enabled
	// even if the activationStatus is ACTIVATED but the requested device is
	// different than the current device.
	AllowReactivation bool `json:"allowReactivation,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ActivationUrl") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ActivationUrl") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ActivationOptions: ActivationOptions for the class

func (ActivationOptions) MarshalJSON

func (s ActivationOptions) MarshalJSON() ([]byte, error)

type ActivationStatus

type ActivationStatus struct {
	// Possible values:
	//   "UNKNOWN_STATE"
	//   "NOT_ACTIVATED" - Not-Activated, this is the default status
	//   "not_activated" - Legacy alias for `NOT_ACTIVATED`. Deprecated.
	//   "ACTIVATED" - Activated
	//   "activated" - Legacy alias for `ACTIVATED`. Deprecated.
	State string `json:"state,omitempty"`
	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "State") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ActivationStatus: The activation status of the object. This field includes activation status if valuable supports activation.

func (ActivationStatus) MarshalJSON

func (s ActivationStatus) MarshalJSON() ([]byte, error)

type AddMessageRequest

type AddMessageRequest struct {
	Message *Message `json:"message,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Message") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AddMessageRequest: Resource used when the AddMessage endpoints are called.

func (AddMessageRequest) MarshalJSON

func (s AddMessageRequest) MarshalJSON() ([]byte, error)

type AirportInfo

type AirportInfo struct {
	// AirportIataCode: Three character IATA airport code. This is a required field
	// for `origin` and `destination`. Eg: "SFO"
	AirportIataCode string `json:"airportIataCode,omitempty"`
	// AirportNameOverride: Optional field that overrides the airport city name
	// defined by IATA. By default, Google takes the `airportIataCode` provided and
	// maps it to the official airport city name defined by IATA. Official IATA
	// airport city names can be found at IATA airport city names website. For
	// example, for the airport IATA code "LTN", IATA website tells us that the
	// corresponding airport city is "London". If this field is not populated,
	// Google would display "London". However, populating this field with a custom
	// name (eg: "London Luton") would override it.
	AirportNameOverride *LocalizedString `json:"airportNameOverride,omitempty"`
	// Gate: A name of the gate. Eg: "B59" or "59"
	Gate string `json:"gate,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#airportInfo".
	Kind string `json:"kind,omitempty"`
	// Terminal: Terminal name. Eg: "INTL" or "I"
	Terminal string `json:"terminal,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AirportIataCode") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AirportIataCode") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (AirportInfo) MarshalJSON

func (s AirportInfo) MarshalJSON() ([]byte, error)

type AppLinkData

type AppLinkData struct {
	// AndroidAppLinkInfo: Optional information about the partner app link.
	AndroidAppLinkInfo *AppLinkDataAppLinkInfo `json:"androidAppLinkInfo,omitempty"`
	// IosAppLinkInfo: Deprecated. Links to open iOS apps are not supported.
	IosAppLinkInfo *AppLinkDataAppLinkInfo `json:"iosAppLinkInfo,omitempty"`
	// WebAppLinkInfo: Optional information about the partner web link.
	WebAppLinkInfo *AppLinkDataAppLinkInfo `json:"webAppLinkInfo,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AndroidAppLinkInfo") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AndroidAppLinkInfo") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (AppLinkData) MarshalJSON

func (s AppLinkData) MarshalJSON() ([]byte, error)

type AppLinkDataAppLinkInfo

type AppLinkDataAppLinkInfo struct {
	// AppLogoImage: Deprecated. Image isn't supported in the app link module.
	AppLogoImage *Image `json:"appLogoImage,omitempty"`
	// AppTarget: Target to follow when opening the app link on clients. It will be
	// used by partners to open their app or webpage.
	AppTarget *AppLinkDataAppLinkInfoAppTarget `json:"appTarget,omitempty"`
	// Description: Deprecated. Description isn't supported in the app link module.
	Description *LocalizedString `json:"description,omitempty"`
	// Title: Deprecated. Title isn't supported in the app link module.
	Title *LocalizedString `json:"title,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AppLogoImage") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AppLogoImage") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (AppLinkDataAppLinkInfo) MarshalJSON

func (s AppLinkDataAppLinkInfo) MarshalJSON() ([]byte, error)

type AppLinkDataAppLinkInfoAppTarget

type AppLinkDataAppLinkInfoAppTarget struct {
	// PackageName: Package name for AppTarget. For example: com.google.android.gm
	PackageName string `json:"packageName,omitempty"`
	// TargetUri: URI for AppTarget. The description on the URI must be set. Prefer
	// setting package field instead, if this target is defined for your
	// application.
	TargetUri *Uri `json:"targetUri,omitempty"`
	// ForceSendFields is a list of field names (e.g. "PackageName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "PackageName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (AppLinkDataAppLinkInfoAppTarget) MarshalJSON

func (s AppLinkDataAppLinkInfoAppTarget) MarshalJSON() ([]byte, error)

type AuthenticationKey

type AuthenticationKey struct {
	// Id: Available only to Smart Tap enabled partners. Contact support for
	// additional guidance.
	Id int64 `json:"id,omitempty"`
	// PublicKeyPem: Available only to Smart Tap enabled partners. Contact support
	// for additional guidance.
	PublicKeyPem string `json:"publicKeyPem,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Id") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (AuthenticationKey) MarshalJSON

func (s AuthenticationKey) MarshalJSON() ([]byte, error)

type Barcode

type Barcode struct {
	// AlternateText: An optional text that will override the default text that
	// shows under the barcode. This field is intended for a human readable
	// equivalent of the barcode value, used when the barcode cannot be scanned.
	AlternateText string `json:"alternateText,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#barcode".
	Kind string `json:"kind,omitempty"`
	// RenderEncoding: The render encoding for the barcode. When specified, barcode
	// is rendered in the given encoding. Otherwise best known encoding is chosen
	// by Google.
	//
	// Possible values:
	//   "RENDER_ENCODING_UNSPECIFIED"
	//   "UTF_8" - UTF_8 encoding for barcodes. This is only supported for barcode
	// type qrCode.
	RenderEncoding string `json:"renderEncoding,omitempty"`
	// ShowCodeText: Optional text that will be shown when the barcode is hidden
	// behind a click action. This happens in cases where a pass has Smart Tap
	// enabled. If not specified, a default is chosen by Google.
	ShowCodeText *LocalizedString `json:"showCodeText,omitempty"`
	// Type: The type of barcode.
	//
	// Possible values:
	//   "BARCODE_TYPE_UNSPECIFIED"
	//   "AZTEC" - Not supported for Rotating Barcodes.
	//   "aztec" - Legacy alias for `AZTEC`. Deprecated. Not supported for Rotating
	// Barcodes.
	//   "CODE_39" - Not supported for Rotating Barcodes.
	//   "code39" - Legacy alias for `CODE_39`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "CODE_128" - Not supported for Rotating Barcodes.
	//   "code128" - Legacy alias for `CODE_128`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "CODABAR" - Not supported for Rotating Barcodes.
	//   "codabar" - Legacy alias for `CODABAR`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "DATA_MATRIX" - A 2D matrix barcode consisting of black and white. Cells
	// or modules are arranged in either a square or rectangle. Not supported for
	// Rotating Barcodes.
	//   "dataMatrix" - Legacy alias for `DATA_MATRIX`. Deprecated. Not supported
	// for Rotating Barcodes.
	//   "EAN_8" - Not supported for Rotating Barcodes.
	//   "ean8" - Legacy alias for `EAN_8`. Deprecated. Not supported for Rotating
	// Barcodes.
	//   "EAN_13" - Not supported for Rotating Barcodes.
	//   "ean13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "EAN13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "ITF_14" - 14 digit ITF code Not supported for Rotating Barcodes.
	//   "itf14" - Legacy alias for `ITF_14`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "PDF_417" - Supported for Rotating Barcodes.
	//   "pdf417" - Legacy alias for `PDF_417`. Deprecated.
	//   "PDF417" - Legacy alias for `PDF_417`. Deprecated.
	//   "QR_CODE" - Supported for Rotating Barcodes.
	//   "qrCode" - Legacy alias for `QR_CODE`. Deprecated.
	//   "qrcode" - Legacy alias for `QR_CODE`. Deprecated.
	//   "UPC_A" - 11 or 12 digit codes Not supported for Rotating Barcodes.
	//   "upcA" - Legacy alias for `UPC_A`. Deprecated. Not supported for Rotating
	// Barcodes.
	//   "TEXT_ONLY" - Renders the field as a text field. The `alternateText` field
	// may not be used with a barcode of type `textOnly`. Not supported for
	// Rotating Barcodes.
	//   "textOnly" - Legacy alias for `TEXT_ONLY`. Deprecated. Not supported for
	// Rotating Barcodes.
	Type string `json:"type,omitempty"`
	// Value: The value encoded in the barcode.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AlternateText") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AlternateText") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Barcode) MarshalJSON

func (s Barcode) MarshalJSON() ([]byte, error)

type BarcodeSectionDetail

type BarcodeSectionDetail struct {
	// FieldSelector: A reference to an existing text-based or image field to
	// display.
	FieldSelector *FieldSelector `json:"fieldSelector,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FieldSelector") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FieldSelector") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (BarcodeSectionDetail) MarshalJSON

func (s BarcodeSectionDetail) MarshalJSON() ([]byte, error)

type Blobstore2Info

type Blobstore2Info struct {
	// BlobGeneration: The blob generation id.
	BlobGeneration int64 `json:"blobGeneration,omitempty,string"`
	// BlobId: The blob id, e.g., /blobstore/prod/playground/scotty
	BlobId string `json:"blobId,omitempty"`
	// DownloadReadHandle: Read handle passed from Bigstore -> Scotty for a GCS
	// download. This is a signed, serialized blobstore2.ReadHandle proto which
	// must never be set outside of Bigstore, and is not applicable to non-GCS
	// media downloads.
	DownloadReadHandle string `json:"downloadReadHandle,omitempty"`
	// ReadToken: The blob read token. Needed to read blobs that have not been
	// replicated. Might not be available until the final call.
	ReadToken string `json:"readToken,omitempty"`
	// UploadMetadataContainer: Metadata passed from Blobstore -> Scotty for a new
	// GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer
	// proto which must never be consumed outside of Bigstore, and is not
	// applicable to non-GCS media uploads.
	UploadMetadataContainer string `json:"uploadMetadataContainer,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BlobGeneration") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BlobGeneration") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Blobstore2Info: Information to read/write to blobstore2.

func (Blobstore2Info) MarshalJSON

func (s Blobstore2Info) MarshalJSON() ([]byte, error)

type BoardingAndSeatingInfo

type BoardingAndSeatingInfo struct {
	// BoardingDoor: Set this field only if this flight boards through more than
	// one door or bridge and you want to explicitly print the door location on the
	// boarding pass. Most airlines route their passengers to the right door or
	// bridge by refering to doors/bridges by the `seatClass`. In those cases
	// `boardingDoor` should not be set.
	//
	// Possible values:
	//   "BOARDING_DOOR_UNSPECIFIED"
	//   "FRONT"
	//   "front" - Legacy alias for `FRONT`. Deprecated.
	//   "BACK"
	//   "back" - Legacy alias for `BACK`. Deprecated.
	BoardingDoor string `json:"boardingDoor,omitempty"`
	// BoardingGroup: The value of boarding group (or zone) this passenger shall
	// board with. eg: "B" The label for this value will be determined by the
	// `boardingPolicy` field in the `flightClass` referenced by this object.
	BoardingGroup string `json:"boardingGroup,omitempty"`
	// BoardingPosition: The value of boarding position. eg: "76"
	BoardingPosition string `json:"boardingPosition,omitempty"`
	// BoardingPrivilegeImage: A small image shown above the boarding barcode.
	// Airlines can use it to communicate any special boarding privileges. In the
	// event the security program logo is also set, this image might be rendered
	// alongside the logo for that security program.
	BoardingPrivilegeImage *Image `json:"boardingPrivilegeImage,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#boardingAndSeatingInfo".
	Kind string `json:"kind,omitempty"`
	// SeatAssignment: The passenger's seat assignment. To be used when there is no
	// specific identifier to use in `seatNumber`. eg: "assigned at gate"
	SeatAssignment *LocalizedString `json:"seatAssignment,omitempty"`
	// SeatClass: The value of the seat class. eg: "Economy" or "Economy Plus"
	SeatClass string `json:"seatClass,omitempty"`
	// SeatNumber: The value of passenger seat. If there is no specific identifier,
	// use `seatAssignment` instead. eg: "25A"
	SeatNumber string `json:"seatNumber,omitempty"`
	// SequenceNumber: The sequence number on the boarding pass. This usually
	// matches the sequence in which the passengers checked in. Airline might use
	// the number for manual boarding and bag tags. eg: "49"
	SequenceNumber string `json:"sequenceNumber,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BoardingDoor") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BoardingDoor") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (BoardingAndSeatingInfo) MarshalJSON

func (s BoardingAndSeatingInfo) MarshalJSON() ([]byte, error)

type BoardingAndSeatingPolicy

type BoardingAndSeatingPolicy struct {
	// BoardingPolicy: Indicates the policy the airline uses for boarding. If
	// unset, Google will default to `zoneBased`.
	//
	// Possible values:
	//   "BOARDING_POLICY_UNSPECIFIED"
	//   "ZONE_BASED"
	//   "zoneBased" - Legacy alias for `ZONE_BASED`. Deprecated.
	//   "GROUP_BASED"
	//   "groupBased" - Legacy alias for `GROUP_BASED`. Deprecated.
	//   "BOARDING_POLICY_OTHER"
	//   "boardingPolicyOther" - Legacy alias for `BOARDING_POLICY_OTHER`.
	// Deprecated.
	BoardingPolicy string `json:"boardingPolicy,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#boardingAndSeatingPolicy".
	Kind string `json:"kind,omitempty"`
	// SeatClassPolicy: Seating policy which dictates how we display the seat
	// class. If unset, Google will default to `cabinBased`.
	//
	// Possible values:
	//   "SEAT_CLASS_POLICY_UNSPECIFIED"
	//   "CABIN_BASED"
	//   "cabinBased" - Legacy alias for `CABIN_BASED`. Deprecated.
	//   "CLASS_BASED"
	//   "classBased" - Legacy alias for `CLASS_BASED`. Deprecated.
	//   "TIER_BASED"
	//   "tierBased" - Legacy alias for `TIER_BASED`. Deprecated.
	//   "SEAT_CLASS_POLICY_OTHER"
	//   "seatClassPolicyOther" - Legacy alias for `SEAT_CLASS_POLICY_OTHER`.
	// Deprecated.
	SeatClassPolicy string `json:"seatClassPolicy,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BoardingPolicy") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BoardingPolicy") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (BoardingAndSeatingPolicy) MarshalJSON

func (s BoardingAndSeatingPolicy) MarshalJSON() ([]byte, error)

type CallbackOptions

type CallbackOptions struct {
	// UpdateRequestUrl: URL for the merchant endpoint that would be called to
	// request updates. The URL should be hosted on HTTPS and robots.txt should
	// allow the URL path to be accessible by UserAgent:Googlebot. Deprecated.
	UpdateRequestUrl string `json:"updateRequestUrl,omitempty"`
	// Url: The HTTPS url configured by the merchant. The URL should be hosted on
	// HTTPS and robots.txt should allow the URL path to be accessible by
	// UserAgent:Googlebot.
	Url string `json:"url,omitempty"`
	// ForceSendFields is a list of field names (e.g. "UpdateRequestUrl") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "UpdateRequestUrl") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CallbackOptions) MarshalJSON

func (s CallbackOptions) MarshalJSON() ([]byte, error)

type CardBarcodeSectionDetails

type CardBarcodeSectionDetails struct {
	// FirstBottomDetail: Optional information to display below the barcode.
	FirstBottomDetail *BarcodeSectionDetail `json:"firstBottomDetail,omitempty"`
	// FirstTopDetail: Optional information to display above the barcode. If
	// `secondTopDetail` is defined, this will be displayed to the start side of
	// this detail section.
	FirstTopDetail *BarcodeSectionDetail `json:"firstTopDetail,omitempty"`
	// SecondTopDetail: Optional second piece of information to display above the
	// barcode. If `firstTopDetail` is defined, this will be displayed to the end
	// side of this detail section.
	SecondTopDetail *BarcodeSectionDetail `json:"secondTopDetail,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FirstBottomDetail") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FirstBottomDetail") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CardBarcodeSectionDetails) MarshalJSON

func (s CardBarcodeSectionDetails) MarshalJSON() ([]byte, error)

type CardRowOneItem

type CardRowOneItem struct {
	// Item: The item to be displayed in the row. This item will be automatically
	// centered.
	Item *TemplateItem `json:"item,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Item") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Item") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CardRowOneItem) MarshalJSON

func (s CardRowOneItem) MarshalJSON() ([]byte, error)

type CardRowTemplateInfo

type CardRowTemplateInfo struct {
	// OneItem: Template for a row containing one item. Exactly one of "one_item",
	// "two_items", "three_items" must be set.
	OneItem *CardRowOneItem `json:"oneItem,omitempty"`
	// ThreeItems: Template for a row containing three items. Exactly one of
	// "one_item", "two_items", "three_items" must be set.
	ThreeItems *CardRowThreeItems `json:"threeItems,omitempty"`
	// TwoItems: Template for a row containing two items. Exactly one of
	// "one_item", "two_items", "three_items" must be set.
	TwoItems *CardRowTwoItems `json:"twoItems,omitempty"`
	// ForceSendFields is a list of field names (e.g. "OneItem") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "OneItem") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CardRowTemplateInfo) MarshalJSON

func (s CardRowTemplateInfo) MarshalJSON() ([]byte, error)

type CardRowThreeItems

type CardRowThreeItems struct {
	// EndItem: The item to be displayed at the end of the row. This item will be
	// aligned to the right.
	EndItem *TemplateItem `json:"endItem,omitempty"`
	// MiddleItem: The item to be displayed in the middle of the row. This item
	// will be centered between the start and end items.
	MiddleItem *TemplateItem `json:"middleItem,omitempty"`
	// StartItem: The item to be displayed at the start of the row. This item will
	// be aligned to the left.
	StartItem *TemplateItem `json:"startItem,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EndItem") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EndItem") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CardRowThreeItems) MarshalJSON

func (s CardRowThreeItems) MarshalJSON() ([]byte, error)

type CardRowTwoItems

type CardRowTwoItems struct {
	// EndItem: The item to be displayed at the end of the row. This item will be
	// aligned to the right.
	EndItem *TemplateItem `json:"endItem,omitempty"`
	// StartItem: The item to be displayed at the start of the row. This item will
	// be aligned to the left.
	StartItem *TemplateItem `json:"startItem,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EndItem") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EndItem") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CardRowTwoItems) MarshalJSON

func (s CardRowTwoItems) MarshalJSON() ([]byte, error)

type CardTemplateOverride

type CardTemplateOverride struct {
	// CardRowTemplateInfos: Template information for rows in the card view. At
	// most three rows are allowed to be specified.
	CardRowTemplateInfos []*CardRowTemplateInfo `json:"cardRowTemplateInfos,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CardRowTemplateInfos") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CardRowTemplateInfos") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CardTemplateOverride) MarshalJSON

func (s CardTemplateOverride) MarshalJSON() ([]byte, error)

type ClassTemplateInfo

type ClassTemplateInfo struct {
	// CardBarcodeSectionDetails: Specifies extra information to be displayed above
	// and below the barcode.
	CardBarcodeSectionDetails *CardBarcodeSectionDetails `json:"cardBarcodeSectionDetails,omitempty"`
	// CardTemplateOverride: Override for the card view.
	CardTemplateOverride *CardTemplateOverride `json:"cardTemplateOverride,omitempty"`
	// DetailsTemplateOverride: Override for the details view (beneath the card
	// view).
	DetailsTemplateOverride *DetailsTemplateOverride `json:"detailsTemplateOverride,omitempty"`
	// ListTemplateOverride: Override for the passes list view.
	ListTemplateOverride *ListTemplateOverride `json:"listTemplateOverride,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CardBarcodeSectionDetails")
	// to unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CardBarcodeSectionDetails") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ClassTemplateInfo) MarshalJSON

func (s ClassTemplateInfo) MarshalJSON() ([]byte, error)

type CompositeMedia

type CompositeMedia struct {
	// BlobRef: Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This
	// should be the byte representation of a blobstore.BlobRef. Since Blobstore is
	// deprecating v1, use blobstore2_info instead. For now, any v2 blob will also
	// be represented in this field as v1 BlobRef.
	BlobRef string `json:"blobRef,omitempty"`
	// Blobstore2Info: Blobstore v2 info, set if reference_type is BLOBSTORE_REF
	// and it refers to a v2 blob.
	Blobstore2Info *Blobstore2Info `json:"blobstore2Info,omitempty"`
	// CosmoBinaryReference: A binary data reference for a media download. Serves
	// as a technology-agnostic binary reference in some Google infrastructure.
	// This value is a serialized storage_cosmo.BinaryReference proto. Storing it
	// as bytes is a hack to get around the fact that the cosmo proto (as well as
	// others it includes) doesn't support JavaScript. This prevents us from
	// including the actual type of this field.
	CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`
	// Crc32cHash: crc32.c hash for the payload.
	Crc32cHash int64 `json:"crc32cHash,omitempty"`
	// Inline: Media data, set if reference_type is INLINE
	Inline string `json:"inline,omitempty"`
	// Length: Size of the data, in bytes
	Length int64 `json:"length,omitempty,string"`
	// Md5Hash: MD5 hash for the payload.
	Md5Hash string `json:"md5Hash,omitempty"`
	// ObjectId: Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
	ObjectId *ObjectId `json:"objectId,omitempty"`
	// Path: Path to the data, set if reference_type is PATH
	Path string `json:"path,omitempty"`
	// ReferenceType: Describes what the field reference contains.
	//
	// Possible values:
	//   "PATH" - Reference contains a GFS path or a local path.
	//   "BLOB_REF" - Reference points to a blobstore object. This could be either
	// a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info
	// first, since v1 is being deprecated.
	//   "INLINE" - Data is included into this proto buffer
	//   "BIGSTORE_REF" - Reference points to a bigstore object
	//   "COSMO_BINARY_REFERENCE" - Indicates the data is stored in
	// cosmo_binary_reference.
	ReferenceType string `json:"referenceType,omitempty"`
	// Sha1Hash: SHA-1 hash for the payload.
	Sha1Hash string `json:"sha1Hash,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BlobRef") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BlobRef") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CompositeMedia: A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.

func (CompositeMedia) MarshalJSON

func (s CompositeMedia) MarshalJSON() ([]byte, error)

type ContentTypeInfo

type ContentTypeInfo struct {
	// BestGuess: Scotty's best guess of what the content type of the file is.
	BestGuess string `json:"bestGuess,omitempty"`
	// FromBytes: The content type of the file derived by looking at specific bytes
	// (i.e. "magic bytes") of the actual file.
	FromBytes string `json:"fromBytes,omitempty"`
	// FromFileName: The content type of the file derived from the file extension
	// of the original file name used by the client.
	FromFileName string `json:"fromFileName,omitempty"`
	// FromHeader: The content type of the file as specified in the request
	// headers, multipart headers, or RUPIO start request.
	FromHeader string `json:"fromHeader,omitempty"`
	// FromUrlPath: The content type of the file derived from the file extension of
	// the URL path. The URL path is assumed to represent a file name (which is
	// typically only true for agents that are providing a REST API).
	FromUrlPath string `json:"fromUrlPath,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BestGuess") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BestGuess") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ContentTypeInfo: Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.

func (ContentTypeInfo) MarshalJSON

func (s ContentTypeInfo) MarshalJSON() ([]byte, error)

type DateTime

type DateTime struct {
	// Date: An ISO 8601 extended format date/time. Offset may or may not be
	// required (refer to the parent field's documentation). Time may be specified
	// up to nanosecond precision. Offsets may be specified with seconds precision
	// (even though offset seconds is not part of ISO 8601). For example:
	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
	// hours before UTC (same instant in time as the above example). If the
	// date/time is intended for a physical location in New York, this would be the
	// equivalent of Eastern Daylight Time (EDT). Remember that offset varies in
	// regions that observe Daylight Saving Time (or Summer Time), depending on the
	// time of the year. `1985-04-12T19:20:50.52` would be 20 minutes and 50.52
	// seconds after the 19th hour of April 12th, 1985 with no offset information.
	// Providing an offset makes this an absolute instant in time around the world.
	// The date/time will be adjusted based on the user's time zone. For example, a
	// time of `2018-06-19T18:30:00-04:00` will be 18:30:00 for a user in New York
	// and 15:30:00 for a user in Los Angeles. Omitting the offset makes this a
	// local date/time, representing several instants in time around the world. The
	// date/time will always be in the user's current time zone. For example, a
	// time of `2018-06-19T18:30:00` will be 18:30:00 for a user in New York and
	// also 18:30:00 for a user in Los Angeles. This is useful when the same local
	// date/time should apply to many physical locations across several time zones.
	Date string `json:"date,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Date") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (DateTime) MarshalJSON

func (s DateTime) MarshalJSON() ([]byte, error)

type DetailsItemInfo

type DetailsItemInfo struct {
	// Item: The item to be displayed in the details list.
	Item *TemplateItem `json:"item,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Item") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Item") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (DetailsItemInfo) MarshalJSON

func (s DetailsItemInfo) MarshalJSON() ([]byte, error)

type DetailsTemplateOverride

type DetailsTemplateOverride struct {
	// DetailsItemInfos: Information for the "nth" item displayed in the details
	// list.
	DetailsItemInfos []*DetailsItemInfo `json:"detailsItemInfos,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DetailsItemInfos") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DetailsItemInfos") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (DetailsTemplateOverride) MarshalJSON

func (s DetailsTemplateOverride) MarshalJSON() ([]byte, error)

type DeviceContext

type DeviceContext struct {
	// DeviceToken: If set, redemption information will only be returned to the
	// given device upon activation of the object. This should not be used as a
	// stable identifier to trace a user's device. It can change across different
	// passes for the same device or even across different activations for the same
	// device. When setting this, callers must also set has_linked_device on the
	// object being activated.
	DeviceToken string `json:"deviceToken,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DeviceToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DeviceToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DeviceContext: Device context associated with the object.

func (DeviceContext) MarshalJSON

func (s DeviceContext) MarshalJSON() ([]byte, error)

type DiffChecksumsResponse

type DiffChecksumsResponse struct {
	// ChecksumsLocation: Exactly one of these fields must be populated. If
	// checksums_location is filled, the server will return the corresponding
	// contents to the user. If object_location is filled, the server will
	// calculate the checksums based on the content there and return that to the
	// user. For details on the format of the checksums, see
	// http://go/scotty-diff-protocol.
	ChecksumsLocation *CompositeMedia `json:"checksumsLocation,omitempty"`
	// ChunkSizeBytes: The chunk size of checksums. Must be a multiple of 256KB.
	ChunkSizeBytes int64 `json:"chunkSizeBytes,omitempty,string"`
	// ObjectLocation: If set, calculate the checksums based on the contents and
	// return them to the caller.
	ObjectLocation *CompositeMedia `json:"objectLocation,omitempty"`
	// ObjectSizeBytes: The total size of the server object.
	ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
	// ObjectVersion: The object version of the object the checksums are being
	// returned for.
	ObjectVersion string `json:"objectVersion,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ChecksumsLocation") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ChecksumsLocation") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiffChecksumsResponse: Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.

func (DiffChecksumsResponse) MarshalJSON

func (s DiffChecksumsResponse) MarshalJSON() ([]byte, error)

type DiffDownloadResponse

type DiffDownloadResponse struct {
	// ObjectLocation: The original object location.
	ObjectLocation *CompositeMedia `json:"objectLocation,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ObjectLocation") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ObjectLocation") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiffDownloadResponse: Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.

func (DiffDownloadResponse) MarshalJSON

func (s DiffDownloadResponse) MarshalJSON() ([]byte, error)

type DiffUploadRequest

type DiffUploadRequest struct {
	// ChecksumsInfo: The location of the checksums for the new object. Agents must
	// clone the object located here, as the upload server will delete the contents
	// once a response is received. For details on the format of the checksums, see
	// http://go/scotty-diff-protocol.
	ChecksumsInfo *CompositeMedia `json:"checksumsInfo,omitempty"`
	// ObjectInfo: The location of the new object. Agents must clone the object
	// located here, as the upload server will delete the contents once a response
	// is received.
	ObjectInfo *CompositeMedia `json:"objectInfo,omitempty"`
	// ObjectVersion: The object version of the object that is the base version the
	// incoming diff script will be applied to. This field will always be filled
	// in.
	ObjectVersion string `json:"objectVersion,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ChecksumsInfo") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ChecksumsInfo") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiffUploadRequest: A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.

func (DiffUploadRequest) MarshalJSON

func (s DiffUploadRequest) MarshalJSON() ([]byte, error)

type DiffUploadResponse

type DiffUploadResponse struct {
	// ObjectVersion: The object version of the object at the server. Must be
	// included in the end notification response. The version in the end
	// notification response must correspond to the new version of the object that
	// is now stored at the server, after the upload.
	ObjectVersion string `json:"objectVersion,omitempty"`
	// OriginalObject: The location of the original file for a diff upload request.
	// Must be filled in if responding to an upload start notification.
	OriginalObject *CompositeMedia `json:"originalObject,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ObjectVersion") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ObjectVersion") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiffUploadResponse: Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.

func (DiffUploadResponse) MarshalJSON

func (s DiffUploadResponse) MarshalJSON() ([]byte, error)

type DiffVersionResponse

type DiffVersionResponse struct {
	// ObjectSizeBytes: The total size of the server object.
	ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
	// ObjectVersion: The version of the object stored at the server.
	ObjectVersion string `json:"objectVersion,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ObjectSizeBytes") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ObjectSizeBytes") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiffVersionResponse: Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.

func (DiffVersionResponse) MarshalJSON

func (s DiffVersionResponse) MarshalJSON() ([]byte, error)

type DiscoverableProgram

type DiscoverableProgram struct {
	// MerchantSigninInfo: Information about the ability to signin and add a
	// valuable for this program through a merchant site. Used when
	// MERCHANT_HOSTED_SIGNIN is enabled.
	MerchantSigninInfo *DiscoverableProgramMerchantSigninInfo `json:"merchantSigninInfo,omitempty"`
	// MerchantSignupInfo: Information about the ability to signup and add a
	// valuable for this program through a merchant site. Used when
	// MERCHANT_HOSTED_SIGNUP is enabled.
	MerchantSignupInfo *DiscoverableProgramMerchantSignupInfo `json:"merchantSignupInfo,omitempty"`
	// State: Visibility state of the discoverable program.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "TRUSTED_TESTERS" - Visible only to testers that have access to issuer
	// account.
	//   "trustedTesters" - Legacy alias for `TRUSTED_TESTERS`. Deprecated.
	//   "LIVE" - Visible to all.
	//   "live" - Legacy alias for `LIVE`. Deprecated.
	//   "DISABLED" - Not visible.
	//   "disabled" - Legacy alias for `DISABLED`. Deprecated.
	State string `json:"state,omitempty"`
	// ForceSendFields is a list of field names (e.g. "MerchantSigninInfo") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "MerchantSigninInfo") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiscoverableProgram: Information about how a class may be discovered and instantiated from within the Android Pay app. This is done by searching for a loyalty or gift card program and scanning or manually entering.

func (DiscoverableProgram) MarshalJSON

func (s DiscoverableProgram) MarshalJSON() ([]byte, error)

type DiscoverableProgramMerchantSigninInfo

type DiscoverableProgramMerchantSigninInfo struct {
	// SigninWebsite: The URL to direct the user to for the merchant's signin site.
	SigninWebsite *Uri `json:"signinWebsite,omitempty"`
	// ForceSendFields is a list of field names (e.g. "SigninWebsite") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "SigninWebsite") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiscoverableProgramMerchantSigninInfo: Information about the merchant hosted signin flow for a program.

func (DiscoverableProgramMerchantSigninInfo) MarshalJSON

func (s DiscoverableProgramMerchantSigninInfo) MarshalJSON() ([]byte, error)

type DiscoverableProgramMerchantSignupInfo

type DiscoverableProgramMerchantSignupInfo struct {
	// SignupSharedDatas:  User data that is sent in a POST request to the signup
	// website URL. This information is encoded and then shared so that the
	// merchant's website can prefill fields used to enroll the user for the
	// discoverable program.
	//
	// Possible values:
	//   "SHARED_DATA_TYPE_UNSPECIFIED"
	//   "FIRST_NAME"
	//   "LAST_NAME"
	//   "STREET_ADDRESS" - single line address field
	//   "ADDRESS_LINE_1" - multi line address fields
	//   "ADDRESS_LINE_2"
	//   "ADDRESS_LINE_3"
	//   "CITY"
	//   "STATE"
	//   "ZIPCODE"
	//   "COUNTRY"
	//   "EMAIL"
	//   "PHONE"
	SignupSharedDatas []string `json:"signupSharedDatas,omitempty"`
	// SignupWebsite: The URL to direct the user to for the merchant's signup site.
	SignupWebsite *Uri `json:"signupWebsite,omitempty"`
	// ForceSendFields is a list of field names (e.g. "SignupSharedDatas") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "SignupSharedDatas") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DiscoverableProgramMerchantSignupInfo: Information about the merchant hosted signup flow for a program.

func (DiscoverableProgramMerchantSignupInfo) MarshalJSON

func (s DiscoverableProgramMerchantSignupInfo) MarshalJSON() ([]byte, error)

type DownloadParameters

type DownloadParameters struct {
	// AllowGzipCompression: A boolean to be returned in the response to Scotty.
	// Allows/disallows gzip encoding of the payload content when the server thinks
	// it's advantageous (hence, does not guarantee compression) which allows
	// Scotty to GZip the response to the client.
	AllowGzipCompression bool `json:"allowGzipCompression,omitempty"`
	// IgnoreRange: Determining whether or not Apiary should skip the inclusion of
	// any Content-Range header on its response to Scotty.
	IgnoreRange bool `json:"ignoreRange,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AllowGzipCompression") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AllowGzipCompression") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DownloadParameters: Parameters specific to media downloads.

func (DownloadParameters) MarshalJSON

func (s DownloadParameters) MarshalJSON() ([]byte, error)

type EventDateTime

type EventDateTime struct {
	// CustomDoorsOpenLabel: A custom label to use for the doors open value
	// (`doorsOpen`) on the card detail view. This should only be used if the
	// default "Doors Open" label or one of the `doorsOpenLabel` options is not
	// sufficient. Both `doorsOpenLabel` and `customDoorsOpenLabel` may not be set.
	// If neither is set, the label will default to "Doors Open", localized. If the
	// doors open field is unset, this label will not be used.
	CustomDoorsOpenLabel *LocalizedString `json:"customDoorsOpenLabel,omitempty"`
	// DoorsOpen: The date/time when the doors open at the venue. This is an ISO
	// 8601 extended format date/time, with or without an offset. Time may be
	// specified up to nanosecond precision. Offsets may be specified with seconds
	// precision (even though offset seconds is not part of ISO 8601). For example:
	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
	// hours before UTC (same instant in time as the above example). If the event
	// were in New York, this would be the equivalent of Eastern Daylight Time
	// (EDT). Remember that offset varies in regions that observe Daylight Saving
	// Time (or Summer Time), depending on the time of the year.
	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
	// 19th hour of April 12th, 1985 with no offset information. The portion of the
	// date/time without the offset is considered the "local date/time". This
	// should be the local date/time at the venue. For example, if the event occurs
	// at the 20th hour of June 5th, 2018 at the venue, the local date/time portion
	// should be `2018-06-05T20:00:00`. If the local date/time at the venue is 4
	// hours before UTC, an offset of `-04:00` may be appended. Without offset
	// information, some rich features may not be available.
	DoorsOpen string `json:"doorsOpen,omitempty"`
	// DoorsOpenLabel: The label to use for the doors open value (`doorsOpen`) on
	// the card detail view. Each available option maps to a set of localized
	// strings, so that translations are shown to the user based on their locale.
	// Both `doorsOpenLabel` and `customDoorsOpenLabel` may not be set. If neither
	// is set, the label will default to "Doors Open", localized. If the doors open
	// field is unset, this label will not be used.
	//
	// Possible values:
	//   "DOORS_OPEN_LABEL_UNSPECIFIED"
	//   "DOORS_OPEN"
	//   "doorsOpen" - Legacy alias for `DOORS_OPEN`. Deprecated.
	//   "GATES_OPEN"
	//   "gatesOpen" - Legacy alias for `GATES_OPEN`. Deprecated.
	DoorsOpenLabel string `json:"doorsOpenLabel,omitempty"`
	// End: The date/time when the event ends. If the event spans multiple days, it
	// should be the end date/time on the last day. This is an ISO 8601 extended
	// format date/time, with or without an offset. Time may be specified up to
	// nanosecond precision. Offsets may be specified with seconds precision (even
	// though offset seconds is not part of ISO 8601). For example:
	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
	// hours before UTC (same instant in time as the above example). If the event
	// were in New York, this would be the equivalent of Eastern Daylight Time
	// (EDT). Remember that offset varies in regions that observe Daylight Saving
	// Time (or Summer Time), depending on the time of the year.
	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
	// 19th hour of April 12th, 1985 with no offset information. The portion of the
	// date/time without the offset is considered the "local date/time". This
	// should be the local date/time at the venue. For example, if the event occurs
	// at the 20th hour of June 5th, 2018 at the venue, the local date/time portion
	// should be `2018-06-05T20:00:00`. If the local date/time at the venue is 4
	// hours before UTC, an offset of `-04:00` may be appended. Without offset
	// information, some rich features may not be available.
	End string `json:"end,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#eventDateTime".
	Kind string `json:"kind,omitempty"`
	// Start: The date/time when the event starts. If the event spans multiple
	// days, it should be the start date/time on the first day. This is an ISO 8601
	// extended format date/time, with or without an offset. Time may be specified
	// up to nanosecond precision. Offsets may be specified with seconds precision
	// (even though offset seconds is not part of ISO 8601). For example:
	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
	// hours before UTC (same instant in time as the above example). If the event
	// were in New York, this would be the equivalent of Eastern Daylight Time
	// (EDT). Remember that offset varies in regions that observe Daylight Saving
	// Time (or Summer Time), depending on the time of the year.
	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
	// 19th hour of April 12th, 1985 with no offset information. The portion of the
	// date/time without the offset is considered the "local date/time". This
	// should be the local date/time at the venue. For example, if the event occurs
	// at the 20th hour of June 5th, 2018 at the venue, the local date/time portion
	// should be `2018-06-05T20:00:00`. If the local date/time at the venue is 4
	// hours before UTC, an offset of `-04:00` may be appended. Without offset
	// information, some rich features may not be available.
	Start string `json:"start,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CustomDoorsOpenLabel") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CustomDoorsOpenLabel") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventDateTime) MarshalJSON

func (s EventDateTime) MarshalJSON() ([]byte, error)

type EventReservationInfo

type EventReservationInfo struct {
	// ConfirmationCode: The confirmation code of the event reservation. This may
	// also take the form of an "order number", "confirmation number", "reservation
	// number", or other equivalent.
	ConfirmationCode string `json:"confirmationCode,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#eventReservationInfo".
	Kind string `json:"kind,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ConfirmationCode") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ConfirmationCode") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventReservationInfo) MarshalJSON

func (s EventReservationInfo) MarshalJSON() ([]byte, error)

type EventSeat

type EventSeat struct {
	// Gate: The gate the ticket holder should enter to get to their seat, such as
	// "A" or "West". This field is localizable so you may translate words or use
	// different alphabets for the characters in an identifier.
	Gate *LocalizedString `json:"gate,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#eventSeat".
	Kind string `json:"kind,omitempty"`
	// Row: The row of the seat, such as "1", E", "BB", or "A5". This field is
	// localizable so you may translate words or use different alphabets for the
	// characters in an identifier.
	Row *LocalizedString `json:"row,omitempty"`
	// Seat: The seat number, such as "1", "2", "3", or any other seat identifier.
	// This field is localizable so you may translate words or use different
	// alphabets for the characters in an identifier.
	Seat *LocalizedString `json:"seat,omitempty"`
	// Section: The section of the seat, such as "121". This field is localizable
	// so you may translate words or use different alphabets for the characters in
	// an identifier.
	Section *LocalizedString `json:"section,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Gate") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Gate") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventSeat) MarshalJSON

func (s EventSeat) MarshalJSON() ([]byte, error)

type EventTicketClass

type EventTicketClass struct {
	// AllowMultipleUsersPerObject: Deprecated. Use
	// `multipleDevicesAndHoldersAllowedStatus` instead.
	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// object that will be used instead.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// CallbackOptions: Callback options to be used to call the issuer back for
	// every save/delete of an object for this class by the end-user. All objects
	// of this class are eligible for the callback.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// ClassTemplateInfo: Template information about how the class should be
	// displayed. If unset, Google will fallback to a default set of fields to
	// display.
	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
	// ConfirmationCodeLabel: The label to use for the confirmation code value
	// (`eventTicketObject.reservationInfo.confirmationCode`) on the card detail
	// view. Each available option maps to a set of localized strings, so that
	// translations are shown to the user based on their locale. Both
	// `confirmationCodeLabel` and `customConfirmationCodeLabel` may not be set. If
	// neither is set, the label will default to "Confirmation Code", localized. If
	// the confirmation code field is unset, this label will not be used.
	//
	// Possible values:
	//   "CONFIRMATION_CODE_LABEL_UNSPECIFIED"
	//   "CONFIRMATION_CODE"
	//   "confirmationCode" - Legacy alias for `CONFIRMATION_CODE`. Deprecated.
	//   "CONFIRMATION_NUMBER"
	//   "confirmationNumber" - Legacy alias for `CONFIRMATION_NUMBER`. Deprecated.
	//   "ORDER_NUMBER"
	//   "orderNumber" - Legacy alias for `ORDER_NUMBER`. Deprecated.
	//   "RESERVATION_NUMBER"
	//   "reservationNumber" - Legacy alias for `RESERVATION_NUMBER`. Deprecated.
	ConfirmationCodeLabel string `json:"confirmationCodeLabel,omitempty"`
	// CountryCode: Country code used to display the card's country (when the user
	// is not in that country), as well as to display localized content when
	// content is not available in the user's locale.
	CountryCode string `json:"countryCode,omitempty"`
	// CustomConfirmationCodeLabel: A custom label to use for the confirmation code
	// value (`eventTicketObject.reservationInfo.confirmationCode`) on the card
	// detail view. This should only be used if the default "Confirmation Code"
	// label or one of the `confirmationCodeLabel` options is not sufficient. Both
	// `confirmationCodeLabel` and `customConfirmationCodeLabel` may not be set. If
	// neither is set, the label will default to "Confirmation Code", localized. If
	// the confirmation code field is unset, this label will not be used.
	CustomConfirmationCodeLabel *LocalizedString `json:"customConfirmationCodeLabel,omitempty"`
	// CustomGateLabel: A custom label to use for the gate value
	// (`eventTicketObject.seatInfo.gate`) on the card detail view. This should
	// only be used if the default "Gate" label or one of the `gateLabel` options
	// is not sufficient. Both `gateLabel` and `customGateLabel` may not be set. If
	// neither is set, the label will default to "Gate", localized. If the gate
	// field is unset, this label will not be used.
	CustomGateLabel *LocalizedString `json:"customGateLabel,omitempty"`
	// CustomRowLabel: A custom label to use for the row value
	// (`eventTicketObject.seatInfo.row`) on the card detail view. This should only
	// be used if the default "Row" label or one of the `rowLabel` options is not
	// sufficient. Both `rowLabel` and `customRowLabel` may not be set. If neither
	// is set, the label will default to "Row", localized. If the row field is
	// unset, this label will not be used.
	CustomRowLabel *LocalizedString `json:"customRowLabel,omitempty"`
	// CustomSeatLabel: A custom label to use for the seat value
	// (`eventTicketObject.seatInfo.seat`) on the card detail view. This should
	// only be used if the default "Seat" label or one of the `seatLabel` options
	// is not sufficient. Both `seatLabel` and `customSeatLabel` may not be set. If
	// neither is set, the label will default to "Seat", localized. If the seat
	// field is unset, this label will not be used.
	CustomSeatLabel *LocalizedString `json:"customSeatLabel,omitempty"`
	// CustomSectionLabel: A custom label to use for the section value
	// (`eventTicketObject.seatInfo.section`) on the card detail view. This should
	// only be used if the default "Section" label or one of the `sectionLabel`
	// options is not sufficient. Both `sectionLabel` and `customSectionLabel` may
	// not be set. If neither is set, the label will default to "Section",
	// localized. If the section field is unset, this label will not be used.
	CustomSectionLabel *LocalizedString `json:"customSectionLabel,omitempty"`
	// DateTime: The date & time information of the event.
	DateTime *EventDateTime `json:"dateTime,omitempty"`
	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
	// also be set up correctly in order for a pass to support Smart Tap.
	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
	// EventId: The ID of the event. This ID should be unique for every event in an
	// account. It is used to group tickets together if the user has saved multiple
	// tickets for the same event. It can be at most 64 characters. If provided,
	// the grouping will be stable. Be wary of unintentional collision to avoid
	// grouping tickets that should not be grouped. If you use only one class per
	// event, you can simply set this to the `classId` (with or without the issuer
	// ID portion). If not provided, the platform will attempt to use other data to
	// group tickets (potentially unstable).
	EventId string `json:"eventId,omitempty"`
	// EventName: Required. The name of the event, such as "LA Dodgers at SF
	// Giants".
	EventName *LocalizedString `json:"eventName,omitempty"`
	// FinePrint: The fine print, terms, or conditions of the ticket.
	FinePrint *LocalizedString `json:"finePrint,omitempty"`
	// GateLabel: The label to use for the gate value
	// (`eventTicketObject.seatInfo.gate`) on the card detail view. Each available
	// option maps to a set of localized strings, so that translations are shown to
	// the user based on their locale. Both `gateLabel` and `customGateLabel` may
	// not be set. If neither is set, the label will default to "Gate", localized.
	// If the gate field is unset, this label will not be used.
	//
	// Possible values:
	//   "GATE_LABEL_UNSPECIFIED"
	//   "GATE"
	//   "gate" - Legacy alias for `GATE`. Deprecated.
	//   "DOOR"
	//   "door" - Legacy alias for `DOOR`. Deprecated.
	//   "ENTRANCE"
	//   "entrance" - Legacy alias for `ENTRANCE`. Deprecated.
	GateLabel string `json:"gateLabel,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, nothing will be displayed. The image will display at 100% width.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// HomepageUri: The URI of your application's home page. Populating the URI in
	// this field results in the exact same behavior as populating an URI in
	// linksModuleData (when an object is rendered, a link to the homepage is shown
	// in what would usually be thought of as the linksModuleData section of the
	// object).
	HomepageUri *Uri `json:"homepageUri,omitempty"`
	// Id: Required. The unique identifier for a class. This ID must be unique
	// across all classes from an issuer. This value should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you. Your unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// IssuerName: Required. The issuer name. Recommended maximum length is 20
	// characters to ensure full string is displayed on smaller screens.
	IssuerName string `json:"issuerName,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#eventTicketClass".
	Kind string `json:"kind,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the object, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
	// maximum length is 20 characters to ensure full string is displayed on
	// smaller screens.
	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// detail view of the app.
	Logo *Image `json:"logo,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
	// and devices will save the same object referencing this class.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified preference.
	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
	// saved by any number of different users, and on any number of devices.
	// Partners typically use this setup for passes that do not need to be
	// restricted to a single user or pinned to a single device.
	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
	// user can view and use it on multiple of their devices. Once the first user
	// saves the object, no other user will be allowed to view or save it.
	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
	// single device. Intended for use by select partners in limited circumstances.
	// An example use case is a transit ticket that should be "device pinned",
	// meaning it can be saved, viewed and used only by a single user on a single
	// device. Contact support for additional information.
	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
	// over Smart Tap. Redemption issuers are identified by their issuer ID.
	// Redemption issuers must have at least one Smart Tap key configured. The
	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
	// be set up correctly in order for a pass to support Smart Tap.
	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
	// Review: The review comments set by the platform when a class is marked
	// `approved` or `rejected`.
	Review *Review `json:"review,omitempty"`
	// ReviewStatus: Required. The status of the class. This field can be set to
	// `draft` or `underReview` using the insert, patch, or update API calls. Once
	// the review state is changed from `draft` it may not be changed back to
	// `draft`. You should keep this field to `draft` when the class is under
	// development. A `draft` class cannot be used to create any object. You should
	// set this field to `underReview` when you believe the class is ready for use.
	// The platform will automatically set this field to `approved` and it can be
	// immediately used to create or migrate objects. When updating an already
	// `approved` class you should keep setting this field to `underReview`.
	//
	// Possible values:
	//   "REVIEW_STATUS_UNSPECIFIED"
	//   "UNDER_REVIEW"
	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
	//   "APPROVED"
	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
	//   "REJECTED"
	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
	//   "DRAFT"
	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
	ReviewStatus string `json:"reviewStatus,omitempty"`
	// RowLabel: The label to use for the row value
	// (`eventTicketObject.seatInfo.row`) on the card detail view. Each available
	// option maps to a set of localized strings, so that translations are shown to
	// the user based on their locale. Both `rowLabel` and `customRowLabel` may not
	// be set. If neither is set, the label will default to "Row", localized. If
	// the row field is unset, this label will not be used.
	//
	// Possible values:
	//   "ROW_LABEL_UNSPECIFIED"
	//   "ROW"
	//   "row" - Legacy alias for `ROW`. Deprecated.
	RowLabel string `json:"rowLabel,omitempty"`
	// SeatLabel: The label to use for the seat value
	// (`eventTicketObject.seatInfo.seat`) on the card detail view. Each available
	// option maps to a set of localized strings, so that translations are shown to
	// the user based on their locale. Both `seatLabel` and `customSeatLabel` may
	// not be set. If neither is set, the label will default to "Seat", localized.
	// If the seat field is unset, this label will not be used.
	//
	// Possible values:
	//   "SEAT_LABEL_UNSPECIFIED"
	//   "SEAT"
	//   "seat" - Legacy alias for `SEAT`. Deprecated.
	SeatLabel string `json:"seatLabel,omitempty"`
	// SectionLabel: The label to use for the section value
	// (`eventTicketObject.seatInfo.section`) on the card detail view. Each
	// available option maps to a set of localized strings, so that translations
	// are shown to the user based on their locale. Both `sectionLabel` and
	// `customSectionLabel` may not be set. If neither is set, the label will
	// default to "Section", localized. If the section field is unset, this label
	// will not be used.
	//
	// Possible values:
	//   "SECTION_LABEL_UNSPECIFIED"
	//   "SECTION"
	//   "section" - Legacy alias for `SECTION`. Deprecated.
	//   "THEATER"
	//   "theater" - Legacy alias for `THEATER`. Deprecated.
	SectionLabel string `json:"sectionLabel,omitempty"`
	// SecurityAnimation: Optional information about the security animation. If
	// this is set a security animation will be rendered on pass details.
	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// Venue: Event venue details.
	Venue *EventVenue `json:"venue,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`
	// ViewUnlockRequirement: View Unlock Requirement options for the event ticket.
	//
	// Possible values:
	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
	// UNLOCK_NOT_REQUIRED.
	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
	// ViewUnlockRequirement is not set.
	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
	// time the pass is viewed. If the user removes their device lock after saving
	// the pass, then they will be prompted to create a device lock before the pass
	// can be viewed.
	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
	// place of the logo in the top left of the card view.
	WideLogo *Image `json:"wideLogo,omitempty"`
	// WordMark: Deprecated.
	WordMark *Image `json:"wordMark,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g.
	// "AllowMultipleUsersPerObject") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
	// for more details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AllowMultipleUsersPerObject") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventTicketClass) MarshalJSON

func (s EventTicketClass) MarshalJSON() ([]byte, error)

type EventTicketClassAddMessageResponse

type EventTicketClassAddMessageResponse struct {
	// Resource: The updated EventTicketClass resource.
	Resource *EventTicketClass `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventTicketClassAddMessageResponse) MarshalJSON

func (s EventTicketClassAddMessageResponse) MarshalJSON() ([]byte, error)

type EventTicketClassListResponse

type EventTicketClassListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*EventTicketClass `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventTicketClassListResponse) MarshalJSON

func (s EventTicketClassListResponse) MarshalJSON() ([]byte, error)

type EventTicketObject

type EventTicketObject struct {
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// class only object AppLinkData will be displayed.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// Barcode: The barcode type and value.
	Barcode *Barcode `json:"barcode,omitempty"`
	// ClassId: Required. The class associated with this object. The class must be
	// of the same type as this object, must already exist, and must be approved.
	// Class IDs should follow the format issuer ID.identifier where the former is
	// issued by Google and latter is chosen by you.
	ClassId string `json:"classId,omitempty"`
	// ClassReference: A copy of the inherited fields of the parent class. These
	// fields are retrieved during a GET.
	ClassReference *EventTicketClass `json:"classReference,omitempty"`
	// DisableExpirationNotification: Indicates if notifications should explicitly
	// be suppressed. If this field is set to true, regardless of the `messages`
	// field, expiration notifications to the user will be suppressed. By default,
	// this field is set to false. Currently, this can only be set for offers.
	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
	// FaceValue: The face value of the ticket, matching what would be printed on a
	// physical version of the ticket.
	FaceValue *Money `json:"faceValue,omitempty"`
	// GroupingInfo: Information that controls how passes are grouped together.
	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
	// HasLinkedDevice: Whether this object is currently linked to a single device.
	// This field is set by the platform when a user saves the object, linking it
	// to their device. Intended for use by select partners. Contact support for
	// additional information.
	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
	// HasUsers: Indicates if the object has users. This field is set by the
	// platform.
	HasUsers bool `json:"hasUsers,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, hero image of the class, if present, will be displayed. If hero
	// image of the class is also not present, nothing will be displayed.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// Id: Required. The unique identifier for an object. This ID must be unique
	// across all objects from an issuer. This value should follow the format
	// issuer ID.identifier where the former is issued by Google and latter is
	// chosen by you. The unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#eventTicketObject".
	Kind string `json:"kind,omitempty"`
	// LinkedOfferIds: A list of offer objects linked to this event ticket. The
	// offer objects must already exist. Offer object IDs should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you.
	LinkedOfferIds []string `json:"linkedOfferIds,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the class, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
	// screenshot behaviors.
	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
	// ReservationInfo: Reservation details for this ticket. This is expected to be
	// shared amongst all tickets that were purchased in the same order.
	ReservationInfo *EventReservationInfo `json:"reservationInfo,omitempty"`
	// RotatingBarcode: The rotating barcode type and value.
	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
	// SaveRestrictions: Restrictions on the object that needs to be verified
	// before the user tries to save the pass. Note that this restrictions will
	// only be applied during save time. If the restrictions changed after a user
	// saves the pass, the new restrictions will not be applied to an already saved
	// pass.
	SaveRestrictions *SaveRestrictions `json:"saveRestrictions,omitempty"`
	// SeatInfo: Seating details for this ticket.
	SeatInfo *EventSeat `json:"seatInfo,omitempty"`
	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
	// certified terminal over NFC for this object. The class level fields
	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
	// order for the pass to support Smart Tap. Only ASCII characters are
	// supported.
	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
	// State: Required. The state of the object. This field is used to determine
	// how an object is displayed in the app. For example, an `inactive` object is
	// moved to the "Expired passes" section.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "ACTIVE" - Object is active and displayed to with other active objects.
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "COMPLETED"
	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
	//   "INACTIVE"
	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
	State string `json:"state,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// TicketHolderName: Name of the ticket holder, if the ticket is assigned to a
	// person. E.g. "John Doe" or "Jane Doe".
	TicketHolderName string `json:"ticketHolderName,omitempty"`
	// TicketNumber: The number of the ticket. This can be a unique identifier
	// across all tickets in an issuer's system, all tickets for the event (e.g.
	// XYZ1234512345), or all tickets in the order (1, 2, 3, etc.).
	TicketNumber string `json:"ticketNumber,omitempty"`
	// TicketType: The type of the ticket, such as "Adult" or "Child", or "VIP" or
	// "Standard".
	TicketType *LocalizedString `json:"ticketType,omitempty"`
	// ValidTimeInterval: The time period this object will be `active` and object
	// can be used. An object's state will be changed to `expired` when this time
	// period has passed.
	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventTicketObject) MarshalJSON

func (s EventTicketObject) MarshalJSON() ([]byte, error)

type EventTicketObjectAddMessageResponse

type EventTicketObjectAddMessageResponse struct {
	// Resource: The updated EventTicketObject resource.
	Resource *EventTicketObject `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventTicketObjectAddMessageResponse) MarshalJSON

func (s EventTicketObjectAddMessageResponse) MarshalJSON() ([]byte, error)

type EventTicketObjectListResponse

type EventTicketObjectListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*EventTicketObject `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventTicketObjectListResponse) MarshalJSON

func (s EventTicketObjectListResponse) MarshalJSON() ([]byte, error)

type EventVenue

type EventVenue struct {
	// Address: The address of the venue, such as "24 Willie Mays Plaza\nSan
	// Francisco, CA 94107". Address lines are separated by line feed (`\n`)
	// characters. This is required.
	Address *LocalizedString `json:"address,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#eventVenue".
	Kind string `json:"kind,omitempty"`
	// Name: The name of the venue, such as "AT&T Park". This is required.
	Name *LocalizedString `json:"name,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Address") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (EventVenue) MarshalJSON

func (s EventVenue) MarshalJSON() ([]byte, error)

type EventticketclassAddmessageCall

type EventticketclassAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*EventticketclassAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketclassAddmessageCall) Do

Do executes the "walletobjects.eventticketclass.addmessage" call. Any non-2xx status code is an error. Response headers are in either *EventTicketClassAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketclassAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketclassAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketclassGetCall

type EventticketclassGetCall struct {
	// contains filtered or unexported fields
}

func (*EventticketclassGetCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketclassGetCall) Do

Do executes the "walletobjects.eventticketclass.get" call. Any non-2xx status code is an error. Response headers are in either *EventTicketClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketclassGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketclassGetCall) Header

func (c *EventticketclassGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*EventticketclassGetCall) IfNoneMatch

func (c *EventticketclassGetCall) IfNoneMatch(entityTag string) *EventticketclassGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type EventticketclassInsertCall

type EventticketclassInsertCall struct {
	// contains filtered or unexported fields
}

func (*EventticketclassInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketclassInsertCall) Do

Do executes the "walletobjects.eventticketclass.insert" call. Any non-2xx status code is an error. Response headers are in either *EventTicketClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketclassInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketclassInsertCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketclassListCall

type EventticketclassListCall struct {
	// contains filtered or unexported fields
}

func (*EventticketclassListCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketclassListCall) Do

Do executes the "walletobjects.eventticketclass.list" call. Any non-2xx status code is an error. Response headers are in either *EventTicketClassListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketclassListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketclassListCall) Header

func (c *EventticketclassListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*EventticketclassListCall) IfNoneMatch

func (c *EventticketclassListCall) IfNoneMatch(entityTag string) *EventticketclassListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*EventticketclassListCall) IssuerId

IssuerId sets the optional parameter "issuerId": The ID of the issuer authorized to list classes.

func (*EventticketclassListCall) MaxResults

func (c *EventticketclassListCall) MaxResults(maxResults int64) *EventticketclassListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*EventticketclassListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes.

type EventticketclassPatchCall

type EventticketclassPatchCall struct {
	// contains filtered or unexported fields
}

func (*EventticketclassPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketclassPatchCall) Do

Do executes the "walletobjects.eventticketclass.patch" call. Any non-2xx status code is an error. Response headers are in either *EventTicketClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketclassPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketclassPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketclassService

type EventticketclassService struct {
	// contains filtered or unexported fields
}

func NewEventticketclassService

func NewEventticketclassService(s *Service) *EventticketclassService

func (*EventticketclassService) Addmessage

func (r *EventticketclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *EventticketclassAddmessageCall

Addmessage: Adds a message to the event ticket class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*EventticketclassService) Get

Get: Returns the event ticket class with the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*EventticketclassService) Insert

Insert: Inserts an event ticket class with the given ID and properties.

func (*EventticketclassService) List

List: Returns a list of all event ticket classes for a given issuer ID.

func (*EventticketclassService) Patch

func (r *EventticketclassService) Patch(resourceId string, eventticketclass *EventTicketClass) *EventticketclassPatchCall

Patch: Updates the event ticket class referenced by the given class ID. This method supports patch semantics.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*EventticketclassService) Update

func (r *EventticketclassService) Update(resourceId string, eventticketclass *EventTicketClass) *EventticketclassUpdateCall

Update: Updates the event ticket class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type EventticketclassUpdateCall

type EventticketclassUpdateCall struct {
	// contains filtered or unexported fields
}

func (*EventticketclassUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketclassUpdateCall) Do

Do executes the "walletobjects.eventticketclass.update" call. Any non-2xx status code is an error. Response headers are in either *EventTicketClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketclassUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketclassUpdateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketobjectAddmessageCall

type EventticketobjectAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*EventticketobjectAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketobjectAddmessageCall) Do

Do executes the "walletobjects.eventticketobject.addmessage" call. Any non-2xx status code is an error. Response headers are in either *EventTicketObjectAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketobjectAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketobjectAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketobjectGetCall

type EventticketobjectGetCall struct {
	// contains filtered or unexported fields
}

func (*EventticketobjectGetCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketobjectGetCall) Do

Do executes the "walletobjects.eventticketobject.get" call. Any non-2xx status code is an error. Response headers are in either *EventTicketObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketobjectGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketobjectGetCall) Header

func (c *EventticketobjectGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*EventticketobjectGetCall) IfNoneMatch

func (c *EventticketobjectGetCall) IfNoneMatch(entityTag string) *EventticketobjectGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type EventticketobjectInsertCall

type EventticketobjectInsertCall struct {
	// contains filtered or unexported fields
}

func (*EventticketobjectInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketobjectInsertCall) Do

Do executes the "walletobjects.eventticketobject.insert" call. Any non-2xx status code is an error. Response headers are in either *EventTicketObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketobjectInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketobjectInsertCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketobjectListCall

type EventticketobjectListCall struct {
	// contains filtered or unexported fields
}

func (*EventticketobjectListCall) ClassId

ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.

func (*EventticketobjectListCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketobjectListCall) Do

Do executes the "walletobjects.eventticketobject.list" call. Any non-2xx status code is an error. Response headers are in either *EventTicketObjectListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketobjectListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketobjectListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*EventticketobjectListCall) IfNoneMatch

func (c *EventticketobjectListCall) IfNoneMatch(entityTag string) *EventticketobjectListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*EventticketobjectListCall) MaxResults

func (c *EventticketobjectListCall) MaxResults(maxResults int64) *EventticketobjectListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*EventticketobjectListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects.

type EventticketobjectModifylinkedofferobjectsCall

type EventticketobjectModifylinkedofferobjectsCall struct {
	// contains filtered or unexported fields
}

func (*EventticketobjectModifylinkedofferobjectsCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketobjectModifylinkedofferobjectsCall) Do

Do executes the "walletobjects.eventticketobject.modifylinkedofferobjects" call. Any non-2xx status code is an error. Response headers are in either *EventTicketObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketobjectModifylinkedofferobjectsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketobjectModifylinkedofferobjectsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketobjectPatchCall

type EventticketobjectPatchCall struct {
	// contains filtered or unexported fields
}

func (*EventticketobjectPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketobjectPatchCall) Do

Do executes the "walletobjects.eventticketobject.patch" call. Any non-2xx status code is an error. Response headers are in either *EventTicketObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketobjectPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketobjectPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type EventticketobjectService

type EventticketobjectService struct {
	// contains filtered or unexported fields
}

func NewEventticketobjectService

func NewEventticketobjectService(s *Service) *EventticketobjectService

func (*EventticketobjectService) Addmessage

func (r *EventticketobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *EventticketobjectAddmessageCall

Addmessage: Adds a message to the event ticket object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*EventticketobjectService) Get

Get: Returns the event ticket object with the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*EventticketobjectService) Insert

Insert: Inserts an event ticket object with the given ID and properties.

func (*EventticketobjectService) List

List: Returns a list of all event ticket objects for a given issuer ID.

func (*EventticketobjectService) Modifylinkedofferobjects

func (r *EventticketobjectService) Modifylinkedofferobjects(resourceId string, modifylinkedofferobjectsrequest *ModifyLinkedOfferObjectsRequest) *EventticketobjectModifylinkedofferobjectsCall

Modifylinkedofferobjects: Modifies linked offer objects for the event ticket object with the given ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*EventticketobjectService) Patch

func (r *EventticketobjectService) Patch(resourceId string, eventticketobject *EventTicketObject) *EventticketobjectPatchCall

Patch: Updates the event ticket object referenced by the given object ID. This method supports patch semantics.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*EventticketobjectService) Update

func (r *EventticketobjectService) Update(resourceId string, eventticketobject *EventTicketObject) *EventticketobjectUpdateCall

Update: Updates the event ticket object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type EventticketobjectUpdateCall

type EventticketobjectUpdateCall struct {
	// contains filtered or unexported fields
}

func (*EventticketobjectUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*EventticketobjectUpdateCall) Do

Do executes the "walletobjects.eventticketobject.update" call. Any non-2xx status code is an error. Response headers are in either *EventTicketObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*EventticketobjectUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*EventticketobjectUpdateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ExpiryNotification

type ExpiryNotification struct {
	// EnableNotification: Indicates if the object needs to have expiry
	// notification enabled.
	EnableNotification bool `json:"enableNotification,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EnableNotification") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EnableNotification") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ExpiryNotification: Indicates that the issuer would like Google Wallet to send expiry notifications 2 days prior to the card expiration.

func (ExpiryNotification) MarshalJSON

func (s ExpiryNotification) MarshalJSON() ([]byte, error)

type FieldReference

type FieldReference struct {
	// DateFormat: Only valid if the `fieldPath` references a date field. Chooses
	// how the date field will be formatted and displayed in the UI.
	//
	// Possible values:
	//   "DATE_FORMAT_UNSPECIFIED" - Default option when no format is specified,
	// when selected, no formatting will be applied.
	//   "DATE_TIME" - Renders `2018-12-14T13:00:00` as `Dec 14, 1:00 PM` in
	// `en_US`.
	//   "dateTime" - Legacy alias for `DATE_TIME`. Deprecated.
	//   "DATE_ONLY" - Renders `2018-12-14T13:00:00` as `Dec 14` in `en_US`.
	//   "dateOnly" - Legacy alias for `DATE_ONLY`. Deprecated.
	//   "TIME_ONLY" - Renders `2018-12-14T13:00:00` as `1:00 PM` in `en_US`.
	//   "timeOnly" - Legacy alias for `TIME_ONLY`. Deprecated.
	//   "DATE_TIME_YEAR" - Renders `2018-12-14T13:00:00` as `Dec 14, 2018, 1:00
	// PM` in `en_US`.
	//   "dateTimeYear" - Legacy alias for `DATE_TIME_YEAR`. Deprecated.
	//   "DATE_YEAR" - Renders `2018-12-14T13:00:00` as `Dec 14, 2018` in `en_US`.
	//   "dateYear" - Legacy alias for `DATE_YEAR`. Deprecated.
	//   "YEAR_MONTH" - Renders `2018-12-14T13:00:00` as `2018-12`.
	//   "YEAR_MONTH_DAY" - Renders `2018-12-14T13:00:00` as `2018-12-14`.
	DateFormat string `json:"dateFormat,omitempty"`
	// FieldPath: Path to the field being referenced, prefixed with "object" or
	// "class" and separated with dots. For example, it may be the string
	// "object.purchaseDetails.purchasePrice".
	FieldPath string `json:"fieldPath,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DateFormat") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DateFormat") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FieldReference: Reference definition to use with field overrides.

func (FieldReference) MarshalJSON

func (s FieldReference) MarshalJSON() ([]byte, error)

type FieldSelector

type FieldSelector struct {
	// Fields: If more than one reference is supplied, then the first one that
	// references a non-empty field will be displayed.
	Fields []*FieldReference `json:"fields,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Fields") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FieldSelector: Custom field selector to use with field overrides.

func (FieldSelector) MarshalJSON

func (s FieldSelector) MarshalJSON() ([]byte, error)

type FirstRowOption

type FirstRowOption struct {
	// FieldOption: A reference to the field to be displayed in the first row.
	FieldOption *FieldSelector `json:"fieldOption,omitempty"`
	// Possible values:
	//   "TRANSIT_OPTION_UNSPECIFIED"
	//   "ORIGIN_AND_DESTINATION_NAMES"
	//   "originAndDestinationNames" - Legacy alias for
	// `ORIGIN_AND_DESTINATION_NAMES`. Deprecated.
	//   "ORIGIN_AND_DESTINATION_CODES"
	//   "originAndDestinationCodes" - Legacy alias for
	// `ORIGIN_AND_DESTINATION_CODES`. Deprecated.
	//   "ORIGIN_NAME"
	//   "originName" - Legacy alias for `ORIGIN_NAME`. Deprecated.
	TransitOption string `json:"transitOption,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FieldOption") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FieldOption") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FirstRowOption) MarshalJSON

func (s FirstRowOption) MarshalJSON() ([]byte, error)

type FlightCarrier

type FlightCarrier struct {
	// code that the passenger scans to board.
	AirlineAllianceLogo *Image `json:"airlineAllianceLogo,omitempty"`
	// localizedAirlineName. This logo will be rendered at the top of the detailed
	// card view.
	AirlineLogo *Image `json:"airlineLogo,omitempty"`
	// AirlineName: A localized name of the airline specified by carrierIataCode.
	// If unset, `issuer_name` or `localized_issuer_name` from `FlightClass` will
	// be used for display purposes. eg: "Swiss Air" for "LX"
	AirlineName *LocalizedString `json:"airlineName,omitempty"`
	// CarrierIataCode: Two character IATA airline code of the marketing carrier
	// (as opposed to operating carrier). Exactly one of this or `carrierIcaoCode`
	// needs to be provided for `carrier` and `operatingCarrier`. eg: "LX" for
	// Swiss Air
	CarrierIataCode string `json:"carrierIataCode,omitempty"`
	// CarrierIcaoCode: Three character ICAO airline code of the marketing carrier
	// (as opposed to operating carrier). Exactly one of this or `carrierIataCode`
	// needs to be provided for `carrier` and `operatingCarrier`. eg: "EZY" for
	// Easy Jet
	CarrierIcaoCode string `json:"carrierIcaoCode,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#flightCarrier".
	Kind string `json:"kind,omitempty"`
	// used in place of the airline logo in the top left of the card view.
	WideAirlineLogo *Image `json:"wideAirlineLogo,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AirlineAllianceLogo") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AirlineAllianceLogo") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightCarrier) MarshalJSON

func (s FlightCarrier) MarshalJSON() ([]byte, error)

type FlightClass

type FlightClass struct {
	// AllowMultipleUsersPerObject: Deprecated. Use
	// `multipleDevicesAndHoldersAllowedStatus` instead.
	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// object that will be used instead.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// BoardingAndSeatingPolicy: Policies for boarding and seating. These will
	// inform which labels will be shown to users.
	BoardingAndSeatingPolicy *BoardingAndSeatingPolicy `json:"boardingAndSeatingPolicy,omitempty"`
	// CallbackOptions: Callback options to be used to call the issuer back for
	// every save/delete of an object for this class by the end-user. All objects
	// of this class are eligible for the callback.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// ClassTemplateInfo: Template information about how the class should be
	// displayed. If unset, Google will fallback to a default set of fields to
	// display.
	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
	// CountryCode: Country code used to display the card's country (when the user
	// is not in that country), as well as to display localized content when
	// content is not available in the user's locale.
	CountryCode string `json:"countryCode,omitempty"`
	// Destination: Required. Destination airport.
	Destination *AirportInfo `json:"destination,omitempty"`
	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
	// also be set up correctly in order for a pass to support Smart Tap.
	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
	// FlightHeader: Required. Information about the flight carrier and number.
	FlightHeader *FlightHeader `json:"flightHeader,omitempty"`
	// FlightStatus: Status of this flight. If unset, Google will compute status
	// based on data from other sources, such as FlightStats, etc. Note:
	// Google-computed status will not be returned in API responses.
	//
	// Possible values:
	//   "FLIGHT_STATUS_UNSPECIFIED"
	//   "SCHEDULED" - Flight is on time, early, or delayed.
	//   "scheduled" - Legacy alias for `SCHEDULED`. Deprecated.
	//   "ACTIVE" - Flight is in progress (taxiing, taking off, landing, airborne).
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "LANDED" - Flight landed at the original destination.
	//   "landed" - Legacy alias for `LANDED`. Deprecated.
	//   "CANCELLED" - Flight is cancelled.
	//   "cancelled" - Legacy alias for `CANCELLED`. Deprecated.
	//   "REDIRECTED" - Flight is airborne but heading to a different airport than
	// the original destination.
	//   "redirected" - Legacy alias for `REDIRECTED`. Deprecated.
	//   "DIVERTED" - Flight has already landed at a different airport than the
	// original destination.
	//   "diverted" - Legacy alias for `DIVERTED`. Deprecated.
	FlightStatus string `json:"flightStatus,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, nothing will be displayed. The image will display at 100% width.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// HomepageUri: The URI of your application's home page. Populating the URI in
	// this field results in the exact same behavior as populating an URI in
	// linksModuleData (when an object is rendered, a link to the homepage is shown
	// in what would usually be thought of as the linksModuleData section of the
	// object).
	HomepageUri *Uri `json:"homepageUri,omitempty"`
	// Id: Required. The unique identifier for a class. This ID must be unique
	// across all classes from an issuer. This value should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you. Your unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// IssuerName: Required. The issuer name. Recommended maximum length is 20
	// characters to ensure full string is displayed on smaller screens.
	IssuerName string `json:"issuerName,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#flightClass".
	Kind string `json:"kind,omitempty"`
	// LanguageOverride: If this field is present, boarding passes served to a
	// user's device will always be in this language. Represents the BCP 47
	// language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
	LanguageOverride string `json:"languageOverride,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the object, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// LocalBoardingDateTime: The boarding time as it would be printed on the
	// boarding pass. This is an ISO 8601 extended format date/time without an
	// offset. Time may be specified up to millisecond precision. eg:
	// `2027-03-05T06:30:00` This should be the local date/time at the airport (not
	// a UTC time). Google will reject the request if UTC offset is provided. Time
	// zones will be calculated by Google based on departure airport.
	LocalBoardingDateTime string `json:"localBoardingDateTime,omitempty"`
	// LocalEstimatedOrActualArrivalDateTime: The estimated time the aircraft plans
	// to reach the destination gate (not the runway) or the actual time it reached
	// the gate. This field should be set if at least one of the below is true: -
	// It differs from the scheduled time. Google will use it to calculate the
	// delay. - The aircraft already arrived at the gate. Google will use it to
	// inform the user that the flight has arrived at the gate. This is an ISO 8601
	// extended format date/time without an offset. Time may be specified up to
	// millisecond precision. eg: `2027-03-05T06:30:00` This should be the local
	// date/time at the airport (not a UTC time). Google will reject the request if
	// UTC offset is provided. Time zones will be calculated by Google based on
	// arrival airport.
	LocalEstimatedOrActualArrivalDateTime string `json:"localEstimatedOrActualArrivalDateTime,omitempty"`
	// LocalEstimatedOrActualDepartureDateTime: The estimated time the aircraft
	// plans to pull from the gate or the actual time the aircraft already pulled
	// from the gate. Note: This is not the runway time. This field should be set
	// if at least one of the below is true: - It differs from the scheduled time.
	// Google will use it to calculate the delay. - The aircraft already pulled
	// from the gate. Google will use it to inform the user when the flight
	// actually departed. This is an ISO 8601 extended format date/time without an
	// offset. Time may be specified up to millisecond precision. eg:
	// `2027-03-05T06:30:00` This should be the local date/time at the airport (not
	// a UTC time). Google will reject the request if UTC offset is provided. Time
	// zones will be calculated by Google based on departure airport.
	LocalEstimatedOrActualDepartureDateTime string `json:"localEstimatedOrActualDepartureDateTime,omitempty"`
	// LocalGateClosingDateTime: The gate closing time as it would be printed on
	// the boarding pass. Do not set this field if you do not want to print it in
	// the boarding pass. This is an ISO 8601 extended format date/time without an
	// offset. Time may be specified up to millisecond precision. eg:
	// `2027-03-05T06:30:00` This should be the local date/time at the airport (not
	// a UTC time). Google will reject the request if UTC offset is provided. Time
	// zones will be calculated by Google based on departure airport.
	LocalGateClosingDateTime string `json:"localGateClosingDateTime,omitempty"`
	// LocalScheduledArrivalDateTime: The scheduled time the aircraft plans to
	// reach the destination gate (not the runway). Note: This field should not
	// change too close to the flight time. For updates to departure times (delays,
	// etc), please set `localEstimatedOrActualArrivalDateTime`. This is an ISO
	// 8601 extended format date/time without an offset. Time may be specified up
	// to millisecond precision. eg: `2027-03-05T06:30:00` This should be the local
	// date/time at the airport (not a UTC time). Google will reject the request if
	// UTC offset is provided. Time zones will be calculated by Google based on
	// arrival airport.
	LocalScheduledArrivalDateTime string `json:"localScheduledArrivalDateTime,omitempty"`
	// LocalScheduledDepartureDateTime: Required. The scheduled date and time when
	// the aircraft is expected to depart the gate (not the runway) Note: This
	// field should not change too close to the departure time. For updates to
	// departure times (delays, etc), please set
	// `localEstimatedOrActualDepartureDateTime`. This is an ISO 8601 extended
	// format date/time without an offset. Time may be specified up to millisecond
	// precision. eg: `2027-03-05T06:30:00` This should be the local date/time at
	// the airport (not a UTC time). Google will reject the request if UTC offset
	// is provided. Time zones will be calculated by Google based on departure
	// airport.
	LocalScheduledDepartureDateTime string `json:"localScheduledDepartureDateTime,omitempty"`
	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
	// maximum length is 20 characters to ensure full string is displayed on
	// smaller screens.
	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
	// and devices will save the same object referencing this class.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified preference.
	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
	// saved by any number of different users, and on any number of devices.
	// Partners typically use this setup for passes that do not need to be
	// restricted to a single user or pinned to a single device.
	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
	// user can view and use it on multiple of their devices. Once the first user
	// saves the object, no other user will be allowed to view or save it.
	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
	// single device. Intended for use by select partners in limited circumstances.
	// An example use case is a transit ticket that should be "device pinned",
	// meaning it can be saved, viewed and used only by a single user on a single
	// device. Contact support for additional information.
	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
	// Origin: Required. Origin airport.
	Origin *AirportInfo `json:"origin,omitempty"`
	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
	// over Smart Tap. Redemption issuers are identified by their issuer ID.
	// Redemption issuers must have at least one Smart Tap key configured. The
	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
	// be set up correctly in order for a pass to support Smart Tap.
	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
	// Review: The review comments set by the platform when a class is marked
	// `approved` or `rejected`.
	Review *Review `json:"review,omitempty"`
	// ReviewStatus: Required. The status of the class. This field can be set to
	// `draft` or `underReview` using the insert, patch, or update API calls. Once
	// the review state is changed from `draft` it may not be changed back to
	// `draft`. You should keep this field to `draft` when the class is under
	// development. A `draft` class cannot be used to create any object. You should
	// set this field to `underReview` when you believe the class is ready for use.
	// The platform will automatically set this field to `approved` and it can be
	// immediately used to create or migrate objects. When updating an already
	// `approved` class you should keep setting this field to `underReview`.
	//
	// Possible values:
	//   "REVIEW_STATUS_UNSPECIFIED"
	//   "UNDER_REVIEW"
	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
	//   "APPROVED"
	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
	//   "REJECTED"
	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
	//   "DRAFT"
	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
	ReviewStatus string `json:"reviewStatus,omitempty"`
	// SecurityAnimation: Optional information about the security animation. If
	// this is set a security animation will be rendered on pass details.
	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`
	// ViewUnlockRequirement: View Unlock Requirement options for the boarding
	// pass.
	//
	// Possible values:
	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
	// UNLOCK_NOT_REQUIRED.
	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
	// ViewUnlockRequirement is not set.
	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
	// time the pass is viewed. If the user removes their device lock after saving
	// the pass, then they will be prompted to create a device lock before the pass
	// can be viewed.
	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
	// WordMark: Deprecated.
	WordMark *Image `json:"wordMark,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g.
	// "AllowMultipleUsersPerObject") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
	// for more details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AllowMultipleUsersPerObject") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightClass) MarshalJSON

func (s FlightClass) MarshalJSON() ([]byte, error)

type FlightClassAddMessageResponse

type FlightClassAddMessageResponse struct {
	// Resource: The updated FlightClass resource.
	Resource *FlightClass `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightClassAddMessageResponse) MarshalJSON

func (s FlightClassAddMessageResponse) MarshalJSON() ([]byte, error)

type FlightClassListResponse

type FlightClassListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*FlightClass `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightClassListResponse) MarshalJSON

func (s FlightClassListResponse) MarshalJSON() ([]byte, error)

type FlightHeader

type FlightHeader struct {
	// Carrier: Information about airline carrier. This is a required property of
	// `flightHeader`.
	Carrier *FlightCarrier `json:"carrier,omitempty"`
	// FlightNumber: The flight number without IATA carrier code. This field should
	// contain only digits. This is a required property of `flightHeader`. eg:
	// "123"
	FlightNumber string `json:"flightNumber,omitempty"`
	// FlightNumberDisplayOverride: Override value to use for flight number. The
	// default value used for display purposes is carrier + flight_number. If a
	// different value needs to be shown to passengers, use this field to override
	// the default behavior. eg: "XX1234 / YY576"
	FlightNumberDisplayOverride string `json:"flightNumberDisplayOverride,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#flightHeader".
	Kind string `json:"kind,omitempty"`
	// OperatingCarrier: Information about operating airline carrier.
	OperatingCarrier *FlightCarrier `json:"operatingCarrier,omitempty"`
	// OperatingFlightNumber: The flight number used by the operating carrier
	// without IATA carrier code. This field should contain only digits. eg: "234"
	OperatingFlightNumber string `json:"operatingFlightNumber,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Carrier") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightHeader) MarshalJSON

func (s FlightHeader) MarshalJSON() ([]byte, error)

type FlightObject

type FlightObject struct {
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// class only object AppLinkData will be displayed.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// Barcode: The barcode type and value.
	Barcode *Barcode `json:"barcode,omitempty"`
	// BoardingAndSeatingInfo: Passenger specific information about boarding and
	// seating.
	BoardingAndSeatingInfo *BoardingAndSeatingInfo `json:"boardingAndSeatingInfo,omitempty"`
	// ClassId: Required. The class associated with this object. The class must be
	// of the same type as this object, must already exist, and must be approved.
	// Class IDs should follow the format issuer ID.identifier where the former is
	// issued by Google and latter is chosen by you.
	ClassId string `json:"classId,omitempty"`
	// ClassReference: A copy of the inherited fields of the parent class. These
	// fields are retrieved during a GET.
	ClassReference *FlightClass `json:"classReference,omitempty"`
	// DisableExpirationNotification: Indicates if notifications should explicitly
	// be suppressed. If this field is set to true, regardless of the `messages`
	// field, expiration notifications to the user will be suppressed. By default,
	// this field is set to false. Currently, this can only be set for Flights.
	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
	// GroupingInfo: Information that controls how passes are grouped together.
	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
	// HasLinkedDevice: Whether this object is currently linked to a single device.
	// This field is set by the platform when a user saves the object, linking it
	// to their device. Intended for use by select partners. Contact support for
	// additional information.
	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
	// HasUsers: Indicates if the object has users. This field is set by the
	// platform.
	HasUsers bool `json:"hasUsers,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, hero image of the class, if present, will be displayed. If hero
	// image of the class is also not present, nothing will be displayed.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// Id: Required. The unique identifier for an object. This ID must be unique
	// across all objects from an issuer. This value should follow the format
	// issuer ID.identifier where the former is issued by Google and latter is
	// chosen by you. The unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#flightObject".
	Kind string `json:"kind,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the class, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
	// screenshot behaviors.
	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
	// PassengerName: Required. Passenger name as it would appear on the boarding
	// pass. eg: "Dave M Gahan" or "Gahan/Dave" or "GAHAN/DAVEM"
	PassengerName string `json:"passengerName,omitempty"`
	// ReservationInfo: Required. Information about flight reservation.
	ReservationInfo *ReservationInfo `json:"reservationInfo,omitempty"`
	// RotatingBarcode: The rotating barcode type and value.
	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
	// SaveRestrictions: Restrictions on the object that needs to be verified
	// before the user tries to save the pass. Note that this restrictions will
	// only be applied during save time. If the restrictions changed after a user
	// saves the pass, the new restrictions will not be applied to an already saved
	// pass.
	SaveRestrictions *SaveRestrictions `json:"saveRestrictions,omitempty"`
	// passenger.
	SecurityProgramLogo *Image `json:"securityProgramLogo,omitempty"`
	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
	// certified terminal over NFC for this object. The class level fields
	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
	// order for the pass to support Smart Tap. Only ASCII characters are
	// supported.
	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
	// State: Required. The state of the object. This field is used to determine
	// how an object is displayed in the app. For example, an `inactive` object is
	// moved to the "Expired passes" section.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "ACTIVE" - Object is active and displayed to with other active objects.
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "COMPLETED"
	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
	//   "INACTIVE"
	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
	State string `json:"state,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// ValidTimeInterval: The time period this object will be `active` and object
	// can be used. An object's state will be changed to `expired` when this time
	// period has passed.
	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightObject) MarshalJSON

func (s FlightObject) MarshalJSON() ([]byte, error)

type FlightObjectAddMessageResponse

type FlightObjectAddMessageResponse struct {
	// Resource: The updated FlightObject resource.
	Resource *FlightObject `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightObjectAddMessageResponse) MarshalJSON

func (s FlightObjectAddMessageResponse) MarshalJSON() ([]byte, error)

type FlightObjectListResponse

type FlightObjectListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*FlightObject `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FlightObjectListResponse) MarshalJSON

func (s FlightObjectListResponse) MarshalJSON() ([]byte, error)

type FlightclassAddmessageCall

type FlightclassAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*FlightclassAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightclassAddmessageCall) Do

Do executes the "walletobjects.flightclass.addmessage" call. Any non-2xx status code is an error. Response headers are in either *FlightClassAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightclassAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightclassAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FlightclassGetCall

type FlightclassGetCall struct {
	// contains filtered or unexported fields
}

func (*FlightclassGetCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightclassGetCall) Do

Do executes the "walletobjects.flightclass.get" call. Any non-2xx status code is an error. Response headers are in either *FlightClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightclassGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightclassGetCall) Header

func (c *FlightclassGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*FlightclassGetCall) IfNoneMatch

func (c *FlightclassGetCall) IfNoneMatch(entityTag string) *FlightclassGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type FlightclassInsertCall

type FlightclassInsertCall struct {
	// contains filtered or unexported fields
}

func (*FlightclassInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightclassInsertCall) Do

Do executes the "walletobjects.flightclass.insert" call. Any non-2xx status code is an error. Response headers are in either *FlightClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightclassInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightclassInsertCall) Header

func (c *FlightclassInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FlightclassListCall

type FlightclassListCall struct {
	// contains filtered or unexported fields
}

func (*FlightclassListCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightclassListCall) Do

Do executes the "walletobjects.flightclass.list" call. Any non-2xx status code is an error. Response headers are in either *FlightClassListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightclassListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightclassListCall) Header

func (c *FlightclassListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*FlightclassListCall) IfNoneMatch

func (c *FlightclassListCall) IfNoneMatch(entityTag string) *FlightclassListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*FlightclassListCall) IssuerId

func (c *FlightclassListCall) IssuerId(issuerId int64) *FlightclassListCall

IssuerId sets the optional parameter "issuerId": The ID of the issuer authorized to list classes.

func (*FlightclassListCall) MaxResults

func (c *FlightclassListCall) MaxResults(maxResults int64) *FlightclassListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*FlightclassListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes.

type FlightclassPatchCall

type FlightclassPatchCall struct {
	// contains filtered or unexported fields
}

func (*FlightclassPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightclassPatchCall) Do

Do executes the "walletobjects.flightclass.patch" call. Any non-2xx status code is an error. Response headers are in either *FlightClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightclassPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightclassPatchCall) Header

func (c *FlightclassPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FlightclassService

type FlightclassService struct {
	// contains filtered or unexported fields
}

func NewFlightclassService

func NewFlightclassService(s *Service) *FlightclassService

func (*FlightclassService) Addmessage

func (r *FlightclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *FlightclassAddmessageCall

Addmessage: Adds a message to the flight class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*FlightclassService) Get

func (r *FlightclassService) Get(resourceId string) *FlightclassGetCall

Get: Returns the flight class with the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*FlightclassService) Insert

func (r *FlightclassService) Insert(flightclass *FlightClass) *FlightclassInsertCall

Insert: Inserts an flight class with the given ID and properties.

func (*FlightclassService) List

List: Returns a list of all flight classes for a given issuer ID.

func (*FlightclassService) Patch

func (r *FlightclassService) Patch(resourceId string, flightclass *FlightClass) *FlightclassPatchCall

Patch: Updates the flight class referenced by the given class ID. This method supports patch semantics.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*FlightclassService) Update

func (r *FlightclassService) Update(resourceId string, flightclass *FlightClass) *FlightclassUpdateCall

Update: Updates the flight class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type FlightclassUpdateCall

type FlightclassUpdateCall struct {
	// contains filtered or unexported fields
}

func (*FlightclassUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightclassUpdateCall) Do

Do executes the "walletobjects.flightclass.update" call. Any non-2xx status code is an error. Response headers are in either *FlightClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightclassUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightclassUpdateCall) Header

func (c *FlightclassUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FlightobjectAddmessageCall

type FlightobjectAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*FlightobjectAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightobjectAddmessageCall) Do

Do executes the "walletobjects.flightobject.addmessage" call. Any non-2xx status code is an error. Response headers are in either *FlightObjectAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightobjectAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightobjectAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FlightobjectGetCall

type FlightobjectGetCall struct {
	// contains filtered or unexported fields
}

func (*FlightobjectGetCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightobjectGetCall) Do

Do executes the "walletobjects.flightobject.get" call. Any non-2xx status code is an error. Response headers are in either *FlightObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightobjectGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightobjectGetCall) Header

func (c *FlightobjectGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*FlightobjectGetCall) IfNoneMatch

func (c *FlightobjectGetCall) IfNoneMatch(entityTag string) *FlightobjectGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type FlightobjectInsertCall

type FlightobjectInsertCall struct {
	// contains filtered or unexported fields
}

func (*FlightobjectInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightobjectInsertCall) Do

Do executes the "walletobjects.flightobject.insert" call. Any non-2xx status code is an error. Response headers are in either *FlightObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightobjectInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightobjectInsertCall) Header

func (c *FlightobjectInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FlightobjectListCall

type FlightobjectListCall struct {
	// contains filtered or unexported fields
}

func (*FlightobjectListCall) ClassId

func (c *FlightobjectListCall) ClassId(classId string) *FlightobjectListCall

ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.

func (*FlightobjectListCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightobjectListCall) Do

Do executes the "walletobjects.flightobject.list" call. Any non-2xx status code is an error. Response headers are in either *FlightObjectListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightobjectListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightobjectListCall) Header

func (c *FlightobjectListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*FlightobjectListCall) IfNoneMatch

func (c *FlightobjectListCall) IfNoneMatch(entityTag string) *FlightobjectListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*FlightobjectListCall) MaxResults

func (c *FlightobjectListCall) MaxResults(maxResults int64) *FlightobjectListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*FlightobjectListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects.

type FlightobjectPatchCall

type FlightobjectPatchCall struct {
	// contains filtered or unexported fields
}

func (*FlightobjectPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightobjectPatchCall) Do

Do executes the "walletobjects.flightobject.patch" call. Any non-2xx status code is an error. Response headers are in either *FlightObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightobjectPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightobjectPatchCall) Header

func (c *FlightobjectPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FlightobjectService

type FlightobjectService struct {
	// contains filtered or unexported fields
}

func NewFlightobjectService

func NewFlightobjectService(s *Service) *FlightobjectService

func (*FlightobjectService) Addmessage

func (r *FlightobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *FlightobjectAddmessageCall

Addmessage: Adds a message to the flight object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*FlightobjectService) Get

func (r *FlightobjectService) Get(resourceId string) *FlightobjectGetCall

Get: Returns the flight object with the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*FlightobjectService) Insert

func (r *FlightobjectService) Insert(flightobject *FlightObject) *FlightobjectInsertCall

Insert: Inserts an flight object with the given ID and properties.

func (*FlightobjectService) List

List: Returns a list of all flight objects for a given issuer ID.

func (*FlightobjectService) Patch

func (r *FlightobjectService) Patch(resourceId string, flightobject *FlightObject) *FlightobjectPatchCall

Patch: Updates the flight object referenced by the given object ID. This method supports patch semantics.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*FlightobjectService) Update

func (r *FlightobjectService) Update(resourceId string, flightobject *FlightObject) *FlightobjectUpdateCall

Update: Updates the flight object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type FlightobjectUpdateCall

type FlightobjectUpdateCall struct {
	// contains filtered or unexported fields
}

func (*FlightobjectUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*FlightobjectUpdateCall) Do

Do executes the "walletobjects.flightobject.update" call. Any non-2xx status code is an error. Response headers are in either *FlightObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*FlightobjectUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*FlightobjectUpdateCall) Header

func (c *FlightobjectUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type FrequentFlyerInfo

type FrequentFlyerInfo struct {
	// FrequentFlyerNumber: Frequent flyer number. Required for each nested object
	// of kind `walletobjects#frequentFlyerInfo`.
	FrequentFlyerNumber string `json:"frequentFlyerNumber,omitempty"`
	// FrequentFlyerProgramName: Frequent flyer program name. eg: "Lufthansa Miles
	// & More"
	FrequentFlyerProgramName *LocalizedString `json:"frequentFlyerProgramName,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#frequentFlyerInfo".
	Kind string `json:"kind,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FrequentFlyerNumber") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FrequentFlyerNumber") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (FrequentFlyerInfo) MarshalJSON

func (s FrequentFlyerInfo) MarshalJSON() ([]byte, error)

type GenericClass

type GenericClass struct {
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// object that will be used instead.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// CallbackOptions: Callback options to be used to call the issuer back for
	// every save/delete of an object for this class by the end-user. All objects
	// of this class are eligible for the callback.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// ClassTemplateInfo: Template information about how the class should be
	// displayed. If unset, Google will fallback to a default set of fields to
	// display.
	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
	// EnableSmartTap: Available only to Smart Tap enabled partners. Contact
	// support for additional guidance.
	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
	// Id: Required. The unique identifier for the class. This ID must be unique
	// across all from an issuer. This value needs to follow the format
	// `issuerID.identifier` where `issuerID` is issued by Google and `identifier`
	// is chosen by you. The unique identifier can only include alphanumeric
	// characters, `.`, `_`, or `-`.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. If `imageModulesData` is also defined
	// on the object, both will be displayed. Only one of the image from class and
	// one from object level will be rendered when both set.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// LinksModuleData: Links module data. If `linksModuleData` is also defined on
	// the object, both will be displayed. The maximum number of these fields
	// displayed is 10 from class and 10 from object.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
	// and devices will save the same object referencing this class.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified preference.
	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
	// saved by any number of different users, and on any number of devices.
	// Partners typically use this setup for passes that do not need to be
	// restricted to a single user or pinned to a single device.
	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
	// user can view and use it on multiple of their devices. Once the first user
	// saves the object, no other user will be allowed to view or save it.
	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
	// single device. Intended for use by select partners in limited circumstances.
	// An example use case is a transit ticket that should be "device pinned",
	// meaning it can be saved, viewed and used only by a single user on a single
	// device. Contact support for additional information.
	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
	// over Smart Tap. Redemption issuers are identified by their issuer ID.
	// Redemption issuers must have at least one Smart Tap key configured. The
	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
	// be set up correctly in order for a pass to support Smart Tap.
	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
	// SecurityAnimation: Optional information about the security animation. If
	// this is set a security animation will be rendered on pass details.
	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
	// TextModulesData: Text module data. If `textModulesData` is also defined on
	// the object, both will be displayed. The maximum number of these fields
	// displayed is 10 from class and 10 from object.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// ViewUnlockRequirement: View Unlock Requirement options for the generic pass.
	//
	// Possible values:
	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
	// UNLOCK_NOT_REQUIRED.
	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
	// ViewUnlockRequirement is not set.
	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
	// time the pass is viewed. If the user removes their device lock after saving
	// the pass, then they will be prompted to create a device lock before the pass
	// can be viewed.
	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GenericClass: Generic Class

func (GenericClass) MarshalJSON

func (s GenericClass) MarshalJSON() ([]byte, error)

type GenericClassAddMessageResponse added in v0.166.0

type GenericClassAddMessageResponse struct {
	// Resource: The updated EventTicketClass resource.
	Resource *GenericClass `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GenericClassAddMessageResponse: Response to adding a new issuer message to the class. This contains the entire updated GenericClass.

func (GenericClassAddMessageResponse) MarshalJSON added in v0.166.0

func (s GenericClassAddMessageResponse) MarshalJSON() ([]byte, error)

type GenericClassListResponse

type GenericClassListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*GenericClass `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GenericClassListResponse: List response which contains the list of all generic classes for a given issuer ID.

func (GenericClassListResponse) MarshalJSON

func (s GenericClassListResponse) MarshalJSON() ([]byte, error)

type GenericObject

type GenericObject struct {
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// class only object AppLinkData will be displayed.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// Barcode: The barcode type and value. If pass does not have a barcode, we can
	// allow the issuer to set Barcode.alternate_text and display just that.
	Barcode *Barcode `json:"barcode,omitempty"`
	// CardTitle: Required. The header of the pass. This is usually the Business
	// name such as "XXX Gym", "AAA Insurance". This field is required and appears
	// in the header row at the very top of the pass.
	CardTitle *LocalizedString `json:"cardTitle,omitempty"`
	// ClassId: Required. The class associated with this object. The class must be
	// of the same type as this object, must already exist, and must be approved.
	// Class IDs should follow the format `issuerID.identifier` where `issuerID` is
	// issued by Google and `identifier` is chosen by you.
	ClassId string `json:"classId,omitempty"`
	// GenericType: Specify which `GenericType` the card belongs to.
	//
	// Possible values:
	//   "GENERIC_TYPE_UNSPECIFIED" - Unspecified generic type.
	//   "GENERIC_SEASON_PASS" - Season pass
	//   "GENERIC_UTILITY_BILLS" - Utility bills
	//   "GENERIC_PARKING_PASS" - Parking pass
	//   "GENERIC_VOUCHER" - Voucher
	//   "GENERIC_GYM_MEMBERSHIP" - Gym membership cards
	//   "GENERIC_LIBRARY_MEMBERSHIP" - Library membership cards
	//   "GENERIC_RESERVATIONS" - Reservations
	//   "GENERIC_AUTO_INSURANCE" - Auto-insurance cards
	//   "GENERIC_HOME_INSURANCE" - Home-insurance cards
	//   "GENERIC_ENTRY_TICKET" - Entry tickets
	//   "GENERIC_RECEIPT" - Receipts
	//   "GENERIC_OTHER" - Other type
	GenericType string `json:"genericType,omitempty"`
	// GroupingInfo: Information that controls how passes are grouped together.
	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
	// HasUsers: Indicates if the object has users. This field is set by the
	// platform.
	HasUsers bool `json:"hasUsers,omitempty"`
	// Header: Required. The title of the pass, such as "50% off coupon" or
	// "Library card" or "Voucher". This field is required and appears in the title
	// row of the pass detail view.
	Header *LocalizedString `json:"header,omitempty"`
	// HeroImage: Banner image displayed on the front of the card if present. The
	// image will be displayed at 100% width.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set, the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used and if logo is not set, a color would be
	// chosen by Google.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// Id: Required. The unique identifier for an object. This ID must be unique
	// across all objects from an issuer. This value needs to follow the format
	// `issuerID.identifier` where `issuerID` is issued by Google and `identifier`
	// is chosen by you. The unique identifier can only include alphanumeric
	// characters, `.`, `_`, or `-`.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. Only one of the image from class and
	// one from object level will be rendered when both set.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// LinksModuleData: Links module data. If `linksModuleData` is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from class and 10 from object.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// view in upper left, and also on the list/thumbnail view. If the logo is not
	// present, the first letter of `cardTitle` would be shown as logo.
	Logo *Image `json:"logo,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// Notifications: The notification settings that are enabled for this object.
	Notifications *Notifications `json:"notifications,omitempty"`
	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
	// screenshot behaviors.
	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
	// RotatingBarcode: The rotating barcode settings/details.
	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
	// SaveRestrictions: Restrictions on the object that needs to be verified
	// before the user tries to save the pass. Note that this restrictions will
	// only be applied during save time. If the restrictions changed after a user
	// saves the pass, the new restrictions will not be applied to an already saved
	// pass.
	SaveRestrictions *SaveRestrictions `json:"saveRestrictions,omitempty"`
	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
	// certified terminal over NFC for this object. The class level fields
	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
	// order for the pass to support Smart Tap. Only ASCII characters are
	// supported.
	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
	// State: The state of the object. This field is used to determine how an
	// object is displayed in the app. For example, an `inactive` object is moved
	// to the "Expired passes" section. If this is not provided, the object would
	// be considered `ACTIVE`.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "ACTIVE" - Object is active and displayed to with other active objects.
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "COMPLETED"
	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
	//   "INACTIVE"
	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
	State string `json:"state,omitempty"`
	// Subheader: The title label of the pass, such as location where this pass can
	// be used. Appears right above the title in the title row in the pass detail
	// view.
	Subheader *LocalizedString `json:"subheader,omitempty"`
	// TextModulesData: Text module data. If `textModulesData` is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from class and 10 from object.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// ValidTimeInterval: The time period this object will be considered valid or
	// usable. When the time period is passed, the object will be considered
	// expired, which will affect the rendering on user's devices.
	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
	// place of the logo in the top left of the card view.
	WideLogo *Image `json:"wideLogo,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GenericObject: Generic Object

func (GenericObject) MarshalJSON

func (s GenericObject) MarshalJSON() ([]byte, error)

type GenericObjectAddMessageResponse added in v0.166.0

type GenericObjectAddMessageResponse struct {
	// Resource: The updated GenericObject resource.
	Resource *GenericObject `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GenericObjectAddMessageResponse: Response to adding a new issuer message to the object. This contains the entire updated GenericObject.

func (GenericObjectAddMessageResponse) MarshalJSON added in v0.166.0

func (s GenericObjectAddMessageResponse) MarshalJSON() ([]byte, error)

type GenericObjectListResponse

type GenericObjectListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*GenericObject `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GenericObjectListResponse: List response which contains the list of all generic objects for a given issuer ID.

func (GenericObjectListResponse) MarshalJSON

func (s GenericObjectListResponse) MarshalJSON() ([]byte, error)

type GenericclassAddmessageCall added in v0.166.0

type GenericclassAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*GenericclassAddmessageCall) Context added in v0.166.0

Context sets the context to be used in this call's Do method.

func (*GenericclassAddmessageCall) Do added in v0.166.0

Do executes the "walletobjects.genericclass.addmessage" call. Any non-2xx status code is an error. Response headers are in either *GenericClassAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericclassAddmessageCall) Fields added in v0.166.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericclassAddmessageCall) Header added in v0.166.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GenericclassGetCall

type GenericclassGetCall struct {
	// contains filtered or unexported fields
}

func (*GenericclassGetCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericclassGetCall) Do

Do executes the "walletobjects.genericclass.get" call. Any non-2xx status code is an error. Response headers are in either *GenericClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericclassGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericclassGetCall) Header

func (c *GenericclassGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GenericclassGetCall) IfNoneMatch

func (c *GenericclassGetCall) IfNoneMatch(entityTag string) *GenericclassGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type GenericclassInsertCall

type GenericclassInsertCall struct {
	// contains filtered or unexported fields
}

func (*GenericclassInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericclassInsertCall) Do

Do executes the "walletobjects.genericclass.insert" call. Any non-2xx status code is an error. Response headers are in either *GenericClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericclassInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericclassInsertCall) Header

func (c *GenericclassInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GenericclassListCall

type GenericclassListCall struct {
	// contains filtered or unexported fields
}

func (*GenericclassListCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericclassListCall) Do

Do executes the "walletobjects.genericclass.list" call. Any non-2xx status code is an error. Response headers are in either *GenericClassListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericclassListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericclassListCall) Header

func (c *GenericclassListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GenericclassListCall) IfNoneMatch

func (c *GenericclassListCall) IfNoneMatch(entityTag string) *GenericclassListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*GenericclassListCall) IssuerId

func (c *GenericclassListCall) IssuerId(issuerId int64) *GenericclassListCall

IssuerId sets the optional parameter "issuerId": The ID of the issuer authorized to list classes.

func (*GenericclassListCall) MaxResults

func (c *GenericclassListCall) MaxResults(maxResults int64) *GenericclassListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*GenericclassListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes.

type GenericclassPatchCall

type GenericclassPatchCall struct {
	// contains filtered or unexported fields
}

func (*GenericclassPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericclassPatchCall) Do

Do executes the "walletobjects.genericclass.patch" call. Any non-2xx status code is an error. Response headers are in either *GenericClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericclassPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericclassPatchCall) Header

func (c *GenericclassPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GenericclassService

type GenericclassService struct {
	// contains filtered or unexported fields
}

func NewGenericclassService

func NewGenericclassService(s *Service) *GenericclassService

func (*GenericclassService) Addmessage added in v0.166.0

func (r *GenericclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GenericclassAddmessageCall

Addmessage: Adds a message to the generic class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GenericclassService) Get

func (r *GenericclassService) Get(resourceId string) *GenericclassGetCall

Get: Returns the generic class with the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.

func (*GenericclassService) Insert

func (r *GenericclassService) Insert(genericclass *GenericClass) *GenericclassInsertCall

Insert: Inserts a generic class with the given ID and properties.

func (*GenericclassService) List

List: Returns a list of all generic classes for a given issuer ID.

func (*GenericclassService) Patch

func (r *GenericclassService) Patch(resourceId string, genericclass *GenericClass) *GenericclassPatchCall

Patch: Updates the generic class referenced by the given class ID. This method supports patch semantics.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.

func (*GenericclassService) Update

func (r *GenericclassService) Update(resourceId string, genericclass *GenericClass) *GenericclassUpdateCall

Update: Updates the Generic class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.

type GenericclassUpdateCall

type GenericclassUpdateCall struct {
	// contains filtered or unexported fields
}

func (*GenericclassUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericclassUpdateCall) Do

Do executes the "walletobjects.genericclass.update" call. Any non-2xx status code is an error. Response headers are in either *GenericClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericclassUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericclassUpdateCall) Header

func (c *GenericclassUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GenericobjectAddmessageCall added in v0.166.0

type GenericobjectAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*GenericobjectAddmessageCall) Context added in v0.166.0

Context sets the context to be used in this call's Do method.

func (*GenericobjectAddmessageCall) Do added in v0.166.0

Do executes the "walletobjects.genericobject.addmessage" call. Any non-2xx status code is an error. Response headers are in either *GenericObjectAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericobjectAddmessageCall) Fields added in v0.166.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericobjectAddmessageCall) Header added in v0.166.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GenericobjectGetCall

type GenericobjectGetCall struct {
	// contains filtered or unexported fields
}

func (*GenericobjectGetCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericobjectGetCall) Do

Do executes the "walletobjects.genericobject.get" call. Any non-2xx status code is an error. Response headers are in either *GenericObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericobjectGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericobjectGetCall) Header

func (c *GenericobjectGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GenericobjectGetCall) IfNoneMatch

func (c *GenericobjectGetCall) IfNoneMatch(entityTag string) *GenericobjectGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type GenericobjectInsertCall

type GenericobjectInsertCall struct {
	// contains filtered or unexported fields
}

func (*GenericobjectInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericobjectInsertCall) Do

Do executes the "walletobjects.genericobject.insert" call. Any non-2xx status code is an error. Response headers are in either *GenericObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericobjectInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericobjectInsertCall) Header

func (c *GenericobjectInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GenericobjectListCall

type GenericobjectListCall struct {
	// contains filtered or unexported fields
}

func (*GenericobjectListCall) ClassId

func (c *GenericobjectListCall) ClassId(classId string) *GenericobjectListCall

ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.

func (*GenericobjectListCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericobjectListCall) Do

Do executes the "walletobjects.genericobject.list" call. Any non-2xx status code is an error. Response headers are in either *GenericObjectListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericobjectListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericobjectListCall) Header

func (c *GenericobjectListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GenericobjectListCall) IfNoneMatch

func (c *GenericobjectListCall) IfNoneMatch(entityTag string) *GenericobjectListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*GenericobjectListCall) MaxResults

func (c *GenericobjectListCall) MaxResults(maxResults int64) *GenericobjectListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*GenericobjectListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects.

type GenericobjectPatchCall

type GenericobjectPatchCall struct {
	// contains filtered or unexported fields
}

func (*GenericobjectPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericobjectPatchCall) Do

Do executes the "walletobjects.genericobject.patch" call. Any non-2xx status code is an error. Response headers are in either *GenericObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericobjectPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericobjectPatchCall) Header

func (c *GenericobjectPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GenericobjectService

type GenericobjectService struct {
	// contains filtered or unexported fields
}

func NewGenericobjectService

func NewGenericobjectService(s *Service) *GenericobjectService

func (*GenericobjectService) Addmessage added in v0.166.0

func (r *GenericobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GenericobjectAddmessageCall

Addmessage: Adds a message to the generic object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GenericobjectService) Get

func (r *GenericobjectService) Get(resourceId string) *GenericobjectGetCall

Get: Returns the generic object with the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.

func (*GenericobjectService) Insert

func (r *GenericobjectService) Insert(genericobject *GenericObject) *GenericobjectInsertCall

Insert: Inserts a generic object with the given ID and properties.

func (*GenericobjectService) List

List: Returns a list of all generic objects for a given issuer ID.

func (*GenericobjectService) Patch

func (r *GenericobjectService) Patch(resourceId string, genericobject *GenericObject) *GenericobjectPatchCall

Patch: Updates the generic object referenced by the given object ID. This method supports patch semantics.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.

func (*GenericobjectService) Update

func (r *GenericobjectService) Update(resourceId string, genericobject *GenericObject) *GenericobjectUpdateCall

Update: Updates the generic object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.

type GenericobjectUpdateCall

type GenericobjectUpdateCall struct {
	// contains filtered or unexported fields
}

func (*GenericobjectUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*GenericobjectUpdateCall) Do

Do executes the "walletobjects.genericobject.update" call. Any non-2xx status code is an error. Response headers are in either *GenericObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GenericobjectUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GenericobjectUpdateCall) Header

func (c *GenericobjectUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftCardClass

type GiftCardClass struct {
	// AllowBarcodeRedemption: Determines whether the merchant supports gift card
	// redemption using barcode. If true, app displays a barcode for the gift card
	// on the Gift card details screen. If false, a barcode is not displayed.
	AllowBarcodeRedemption bool `json:"allowBarcodeRedemption,omitempty"`
	// AllowMultipleUsersPerObject: Deprecated. Use
	// `multipleDevicesAndHoldersAllowedStatus` instead.
	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// object that will be used instead.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// CallbackOptions: Callback options to be used to call the issuer back for
	// every save/delete of an object for this class by the end-user. All objects
	// of this class are eligible for the callback.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// CardNumberLabel: The label to display for the card number, such as "Card
	// Number".
	CardNumberLabel string `json:"cardNumberLabel,omitempty"`
	// ClassTemplateInfo: Template information about how the class should be
	// displayed. If unset, Google will fallback to a default set of fields to
	// display.
	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
	// CountryCode: Country code used to display the card's country (when the user
	// is not in that country), as well as to display localized content when
	// content is not available in the user's locale.
	CountryCode string `json:"countryCode,omitempty"`
	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
	// also be set up correctly in order for a pass to support Smart Tap.
	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
	// EventNumberLabel: The label to display for event number, such as "Target
	// Event #".
	EventNumberLabel string `json:"eventNumberLabel,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, nothing will be displayed. The image will display at 100% width.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// HomepageUri: The URI of your application's home page. Populating the URI in
	// this field results in the exact same behavior as populating an URI in
	// linksModuleData (when an object is rendered, a link to the homepage is shown
	// in what would usually be thought of as the linksModuleData section of the
	// object).
	HomepageUri *Uri `json:"homepageUri,omitempty"`
	// Id: Required. The unique identifier for a class. This ID must be unique
	// across all classes from an issuer. This value should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you. Your unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// IssuerName: Required. The issuer name. Recommended maximum length is 20
	// characters to ensure full string is displayed on smaller screens.
	IssuerName string `json:"issuerName,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#giftCardClass".
	Kind string `json:"kind,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the object, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// LocalizedCardNumberLabel: Translated strings for the card_number_label.
	LocalizedCardNumberLabel *LocalizedString `json:"localizedCardNumberLabel,omitempty"`
	// LocalizedEventNumberLabel: Translated strings for the event_number_label.
	LocalizedEventNumberLabel *LocalizedString `json:"localizedEventNumberLabel,omitempty"`
	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
	// maximum length is 20 characters to ensure full string is displayed on
	// smaller screens.
	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
	// LocalizedMerchantName: Translated strings for the merchant_name. The app may
	// display an ellipsis after the first 20 characters to ensure full string is
	// displayed on smaller screens.
	LocalizedMerchantName *LocalizedString `json:"localizedMerchantName,omitempty"`
	// LocalizedPinLabel: Translated strings for the pin_label.
	LocalizedPinLabel *LocalizedString `json:"localizedPinLabel,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// MerchantName: Merchant name, such as "Adam's Apparel". The app may display
	// an ellipsis after the first 20 characters to ensure full string is displayed
	// on smaller screens.
	MerchantName string `json:"merchantName,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
	// and devices will save the same object referencing this class.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified preference.
	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
	// saved by any number of different users, and on any number of devices.
	// Partners typically use this setup for passes that do not need to be
	// restricted to a single user or pinned to a single device.
	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
	// user can view and use it on multiple of their devices. Once the first user
	// saves the object, no other user will be allowed to view or save it.
	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
	// single device. Intended for use by select partners in limited circumstances.
	// An example use case is a transit ticket that should be "device pinned",
	// meaning it can be saved, viewed and used only by a single user on a single
	// device. Contact support for additional information.
	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
	// PinLabel: The label to display for the PIN, such as "4-digit PIN".
	PinLabel string `json:"pinLabel,omitempty"`
	// displayed in both the details and list views of the app.
	ProgramLogo *Image `json:"programLogo,omitempty"`
	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
	// over Smart Tap. Redemption issuers are identified by their issuer ID.
	// Redemption issuers must have at least one Smart Tap key configured. The
	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
	// be set up correctly in order for a pass to support Smart Tap.
	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
	// Review: The review comments set by the platform when a class is marked
	// `approved` or `rejected`.
	Review *Review `json:"review,omitempty"`
	// ReviewStatus: Required. The status of the class. This field can be set to
	// `draft` or `underReview` using the insert, patch, or update API calls. Once
	// the review state is changed from `draft` it may not be changed back to
	// `draft`. You should keep this field to `draft` when the class is under
	// development. A `draft` class cannot be used to create any object. You should
	// set this field to `underReview` when you believe the class is ready for use.
	// The platform will automatically set this field to `approved` and it can be
	// immediately used to create or migrate objects. When updating an already
	// `approved` class you should keep setting this field to `underReview`.
	//
	// Possible values:
	//   "REVIEW_STATUS_UNSPECIFIED"
	//   "UNDER_REVIEW"
	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
	//   "APPROVED"
	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
	//   "REJECTED"
	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
	//   "DRAFT"
	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
	ReviewStatus string `json:"reviewStatus,omitempty"`
	// SecurityAnimation: Optional information about the security animation. If
	// this is set a security animation will be rendered on pass details.
	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`
	// ViewUnlockRequirement: View Unlock Requirement options for the gift card.
	//
	// Possible values:
	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
	// UNLOCK_NOT_REQUIRED.
	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
	// ViewUnlockRequirement is not set.
	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
	// time the pass is viewed. If the user removes their device lock after saving
	// the pass, then they will be prompted to create a device lock before the pass
	// can be viewed.
	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
	// provided, this will be used in place of the program logo in the top left of
	// the card view.
	WideProgramLogo *Image `json:"wideProgramLogo,omitempty"`
	// WordMark: Deprecated.
	WordMark *Image `json:"wordMark,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AllowBarcodeRedemption") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AllowBarcodeRedemption") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (GiftCardClass) MarshalJSON

func (s GiftCardClass) MarshalJSON() ([]byte, error)

type GiftCardClassAddMessageResponse

type GiftCardClassAddMessageResponse struct {
	// Resource: The updated GiftCardClass resource.
	Resource *GiftCardClass `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (GiftCardClassAddMessageResponse) MarshalJSON

func (s GiftCardClassAddMessageResponse) MarshalJSON() ([]byte, error)

type GiftCardClassListResponse

type GiftCardClassListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*GiftCardClass `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (GiftCardClassListResponse) MarshalJSON

func (s GiftCardClassListResponse) MarshalJSON() ([]byte, error)

type GiftCardObject

type GiftCardObject struct {
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// class only object AppLinkData will be displayed.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// Balance: The card's monetary balance.
	Balance *Money `json:"balance,omitempty"`
	// BalanceUpdateTime: The date and time when the balance was last updated.
	// Offset is required. If balance is updated and this property is not provided,
	// system will default to the current time.
	BalanceUpdateTime *DateTime `json:"balanceUpdateTime,omitempty"`
	// Barcode: The barcode type and value.
	Barcode *Barcode `json:"barcode,omitempty"`
	// CardNumber: Required. The card's number.
	CardNumber string `json:"cardNumber,omitempty"`
	// ClassId: Required. The class associated with this object. The class must be
	// of the same type as this object, must already exist, and must be approved.
	// Class IDs should follow the format issuer ID.identifier where the former is
	// issued by Google and latter is chosen by you.
	ClassId string `json:"classId,omitempty"`
	// ClassReference: A copy of the inherited fields of the parent class. These
	// fields are retrieved during a GET.
	ClassReference *GiftCardClass `json:"classReference,omitempty"`
	// DisableExpirationNotification: Indicates if notifications should explicitly
	// be suppressed. If this field is set to true, regardless of the `messages`
	// field, expiration notifications to the user will be suppressed. By default,
	// this field is set to false. Currently, this can only be set for offers.
	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
	// EventNumber: The card's event number, an optional field used by some gift
	// cards.
	EventNumber string `json:"eventNumber,omitempty"`
	// GroupingInfo: Information that controls how passes are grouped together.
	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
	// HasLinkedDevice: Whether this object is currently linked to a single device.
	// This field is set by the platform when a user saves the object, linking it
	// to their device. Intended for use by select partners. Contact support for
	// additional information.
	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
	// HasUsers: Indicates if the object has users. This field is set by the
	// platform.
	HasUsers bool `json:"hasUsers,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, hero image of the class, if present, will be displayed. If hero
	// image of the class is also not present, nothing will be displayed.
	HeroImage *Image `json:"heroImage,omitempty"`
	// Id: Required. The unique identifier for an object. This ID must be unique
	// across all objects from an issuer. This value should follow the format
	// issuer ID.identifier where the former is issued by Google and latter is
	// chosen by you. The unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#giftCardObject".
	Kind string `json:"kind,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the class, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
	// screenshot behaviors.
	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
	// Pin: The card's PIN.
	Pin string `json:"pin,omitempty"`
	// RotatingBarcode: The rotating barcode type and value.
	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
	// SaveRestrictions: Restrictions on the object that needs to be verified
	// before the user tries to save the pass. Note that this restrictions will
	// only be applied during save time. If the restrictions changed after a user
	// saves the pass, the new restrictions will not be applied to an already saved
	// pass.
	SaveRestrictions *SaveRestrictions `json:"saveRestrictions,omitempty"`
	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
	// certified terminal over NFC for this object. The class level fields
	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
	// order for the pass to support Smart Tap. Only ASCII characters are
	// supported.
	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
	// State: Required. The state of the object. This field is used to determine
	// how an object is displayed in the app. For example, an `inactive` object is
	// moved to the "Expired passes" section.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "ACTIVE" - Object is active and displayed to with other active objects.
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "COMPLETED"
	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
	//   "INACTIVE"
	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
	State string `json:"state,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// ValidTimeInterval: The time period this object will be `active` and object
	// can be used. An object's state will be changed to `expired` when this time
	// period has passed.
	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (GiftCardObject) MarshalJSON

func (s GiftCardObject) MarshalJSON() ([]byte, error)

type GiftCardObjectAddMessageResponse

type GiftCardObjectAddMessageResponse struct {
	// Resource: The updated GiftCardObject resource.
	Resource *GiftCardObject `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (GiftCardObjectAddMessageResponse) MarshalJSON

func (s GiftCardObjectAddMessageResponse) MarshalJSON() ([]byte, error)

type GiftCardObjectListResponse

type GiftCardObjectListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*GiftCardObject `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (GiftCardObjectListResponse) MarshalJSON

func (s GiftCardObjectListResponse) MarshalJSON() ([]byte, error)

type GiftcardclassAddmessageCall

type GiftcardclassAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardclassAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardclassAddmessageCall) Do

Do executes the "walletobjects.giftcardclass.addmessage" call. Any non-2xx status code is an error. Response headers are in either *GiftCardClassAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardclassAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardclassAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftcardclassGetCall

type GiftcardclassGetCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardclassGetCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardclassGetCall) Do

Do executes the "walletobjects.giftcardclass.get" call. Any non-2xx status code is an error. Response headers are in either *GiftCardClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardclassGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardclassGetCall) Header

func (c *GiftcardclassGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GiftcardclassGetCall) IfNoneMatch

func (c *GiftcardclassGetCall) IfNoneMatch(entityTag string) *GiftcardclassGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type GiftcardclassInsertCall

type GiftcardclassInsertCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardclassInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardclassInsertCall) Do

Do executes the "walletobjects.giftcardclass.insert" call. Any non-2xx status code is an error. Response headers are in either *GiftCardClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardclassInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardclassInsertCall) Header

func (c *GiftcardclassInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftcardclassListCall

type GiftcardclassListCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardclassListCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardclassListCall) Do

Do executes the "walletobjects.giftcardclass.list" call. Any non-2xx status code is an error. Response headers are in either *GiftCardClassListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardclassListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardclassListCall) Header

func (c *GiftcardclassListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GiftcardclassListCall) IfNoneMatch

func (c *GiftcardclassListCall) IfNoneMatch(entityTag string) *GiftcardclassListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*GiftcardclassListCall) IssuerId

func (c *GiftcardclassListCall) IssuerId(issuerId int64) *GiftcardclassListCall

IssuerId sets the optional parameter "issuerId": The ID of the issuer authorized to list classes.

func (*GiftcardclassListCall) MaxResults

func (c *GiftcardclassListCall) MaxResults(maxResults int64) *GiftcardclassListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*GiftcardclassListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes.

type GiftcardclassPatchCall

type GiftcardclassPatchCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardclassPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardclassPatchCall) Do

Do executes the "walletobjects.giftcardclass.patch" call. Any non-2xx status code is an error. Response headers are in either *GiftCardClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardclassPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardclassPatchCall) Header

func (c *GiftcardclassPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftcardclassService

type GiftcardclassService struct {
	// contains filtered or unexported fields
}

func NewGiftcardclassService

func NewGiftcardclassService(s *Service) *GiftcardclassService

func (*GiftcardclassService) Addmessage

func (r *GiftcardclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GiftcardclassAddmessageCall

Addmessage: Adds a message to the gift card class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GiftcardclassService) Get

func (r *GiftcardclassService) Get(resourceId string) *GiftcardclassGetCall

Get: Returns the gift card class with the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GiftcardclassService) Insert

func (r *GiftcardclassService) Insert(giftcardclass *GiftCardClass) *GiftcardclassInsertCall

Insert: Inserts an gift card class with the given ID and properties.

func (*GiftcardclassService) List

List: Returns a list of all gift card classes for a given issuer ID.

func (*GiftcardclassService) Patch

func (r *GiftcardclassService) Patch(resourceId string, giftcardclass *GiftCardClass) *GiftcardclassPatchCall

Patch: Updates the gift card class referenced by the given class ID. This method supports patch semantics.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GiftcardclassService) Update

func (r *GiftcardclassService) Update(resourceId string, giftcardclass *GiftCardClass) *GiftcardclassUpdateCall

Update: Updates the gift card class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type GiftcardclassUpdateCall

type GiftcardclassUpdateCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardclassUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardclassUpdateCall) Do

Do executes the "walletobjects.giftcardclass.update" call. Any non-2xx status code is an error. Response headers are in either *GiftCardClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardclassUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardclassUpdateCall) Header

func (c *GiftcardclassUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftcardobjectAddmessageCall

type GiftcardobjectAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardobjectAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardobjectAddmessageCall) Do

Do executes the "walletobjects.giftcardobject.addmessage" call. Any non-2xx status code is an error. Response headers are in either *GiftCardObjectAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardobjectAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardobjectAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftcardobjectGetCall

type GiftcardobjectGetCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardobjectGetCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardobjectGetCall) Do

Do executes the "walletobjects.giftcardobject.get" call. Any non-2xx status code is an error. Response headers are in either *GiftCardObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardobjectGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardobjectGetCall) Header

func (c *GiftcardobjectGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GiftcardobjectGetCall) IfNoneMatch

func (c *GiftcardobjectGetCall) IfNoneMatch(entityTag string) *GiftcardobjectGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type GiftcardobjectInsertCall

type GiftcardobjectInsertCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardobjectInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardobjectInsertCall) Do

Do executes the "walletobjects.giftcardobject.insert" call. Any non-2xx status code is an error. Response headers are in either *GiftCardObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardobjectInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardobjectInsertCall) Header

func (c *GiftcardobjectInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftcardobjectListCall

type GiftcardobjectListCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardobjectListCall) ClassId

ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.

func (*GiftcardobjectListCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardobjectListCall) Do

Do executes the "walletobjects.giftcardobject.list" call. Any non-2xx status code is an error. Response headers are in either *GiftCardObjectListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardobjectListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardobjectListCall) Header

func (c *GiftcardobjectListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*GiftcardobjectListCall) IfNoneMatch

func (c *GiftcardobjectListCall) IfNoneMatch(entityTag string) *GiftcardobjectListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*GiftcardobjectListCall) MaxResults

func (c *GiftcardobjectListCall) MaxResults(maxResults int64) *GiftcardobjectListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*GiftcardobjectListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects.

type GiftcardobjectPatchCall

type GiftcardobjectPatchCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardobjectPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardobjectPatchCall) Do

Do executes the "walletobjects.giftcardobject.patch" call. Any non-2xx status code is an error. Response headers are in either *GiftCardObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardobjectPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardobjectPatchCall) Header

func (c *GiftcardobjectPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GiftcardobjectService

type GiftcardobjectService struct {
	// contains filtered or unexported fields
}

func NewGiftcardobjectService

func NewGiftcardobjectService(s *Service) *GiftcardobjectService

func (*GiftcardobjectService) Addmessage

func (r *GiftcardobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GiftcardobjectAddmessageCall

Addmessage: Adds a message to the gift card object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GiftcardobjectService) Get

Get: Returns the gift card object with the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GiftcardobjectService) Insert

Insert: Inserts an gift card object with the given ID and properties.

func (*GiftcardobjectService) List

List: Returns a list of all gift card objects for a given issuer ID.

func (*GiftcardobjectService) Patch

func (r *GiftcardobjectService) Patch(resourceId string, giftcardobject *GiftCardObject) *GiftcardobjectPatchCall

Patch: Updates the gift card object referenced by the given object ID. This method supports patch semantics.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*GiftcardobjectService) Update

func (r *GiftcardobjectService) Update(resourceId string, giftcardobject *GiftCardObject) *GiftcardobjectUpdateCall

Update: Updates the gift card object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type GiftcardobjectUpdateCall

type GiftcardobjectUpdateCall struct {
	// contains filtered or unexported fields
}

func (*GiftcardobjectUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*GiftcardobjectUpdateCall) Do

Do executes the "walletobjects.giftcardobject.update" call. Any non-2xx status code is an error. Response headers are in either *GiftCardObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GiftcardobjectUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*GiftcardobjectUpdateCall) Header

func (c *GiftcardobjectUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type GroupingInfo

type GroupingInfo struct {
	// GroupingId: Optional grouping ID for grouping the passes with the same ID
	// visually together. Grouping with different types of passes is allowed.
	GroupingId string `json:"groupingId,omitempty"`
	// SortIndex: Optional index for sorting the passes when they are grouped with
	// other passes. Passes with lower sort index are shown before passes with
	// higher sort index. If unspecified, the value is assumed to be INT_MAX. For
	// two passes with the same sort index, the sorting behavior is undefined.
	SortIndex int64 `json:"sortIndex,omitempty"`
	// ForceSendFields is a list of field names (e.g. "GroupingId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "GroupingId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (GroupingInfo) MarshalJSON

func (s GroupingInfo) MarshalJSON() ([]byte, error)

type Image

type Image struct {
	// ContentDescription: Description of the image used for accessibility.
	ContentDescription *LocalizedString `json:"contentDescription,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#image".
	Kind string `json:"kind,omitempty"`
	// SourceUri: The URI for the image.
	SourceUri *ImageUri `json:"sourceUri,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ContentDescription") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ContentDescription") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Image: Wrapping type for Google hosted images. Next ID: 7

func (Image) MarshalJSON

func (s Image) MarshalJSON() ([]byte, error)

type ImageModuleData

type ImageModuleData struct {
	// Id: The ID associated with an image module. This field is here to enable
	// ease of management of image modules.
	Id string `json:"id,omitempty"`
	// MainImage: A 100% width image.
	MainImage *Image `json:"mainImage,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Id") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ImageModuleData) MarshalJSON

func (s ImageModuleData) MarshalJSON() ([]byte, error)

type ImageUri

type ImageUri struct {
	// Description: Additional information about the image, which is unused and
	// retained only for backward compatibility.
	Description string `json:"description,omitempty"`
	// LocalizedDescription: Translated strings for the description, which are
	// unused and retained only for backward compatibility.
	LocalizedDescription *LocalizedString `json:"localizedDescription,omitempty"`
	// Uri: The location of the image. URIs must have a scheme.
	Uri string `json:"uri,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Description") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ImageUri) MarshalJSON

func (s ImageUri) MarshalJSON() ([]byte, error)

type InfoModuleData

type InfoModuleData struct {
	// LabelValueRows: A list of collections of labels and values. These will be
	// displayed one after the other in a singular column.
	LabelValueRows     []*LabelValueRow `json:"labelValueRows,omitempty"`
	ShowLastUpdateTime bool             `json:"showLastUpdateTime,omitempty"`
	// ForceSendFields is a list of field names (e.g. "LabelValueRows") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "LabelValueRows") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (InfoModuleData) MarshalJSON

func (s InfoModuleData) MarshalJSON() ([]byte, error)

type Issuer

type Issuer struct {
	// CallbackOptions: Allows the issuer to provide their callback settings.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// ContactInfo: Issuer contact information.
	ContactInfo *IssuerContactInfo `json:"contactInfo,omitempty"`
	// HomepageUrl: URL for the issuer's home page.
	HomepageUrl string `json:"homepageUrl,omitempty"`
	// IssuerId: The unique identifier for an issuer account. This is automatically
	// generated when the issuer is inserted.
	IssuerId int64 `json:"issuerId,omitempty,string"`
	// Name: The account name of the issuer.
	Name string `json:"name,omitempty"`
	// SmartTapMerchantData: Available only to Smart Tap enabled partners. Contact
	// support for additional guidance.
	SmartTapMerchantData *SmartTapMerchantData `json:"smartTapMerchantData,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "CallbackOptions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CallbackOptions") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Issuer) MarshalJSON

func (s Issuer) MarshalJSON() ([]byte, error)

type IssuerContactInfo

type IssuerContactInfo struct {
	// AlertsEmails: Email addresses which will receive alerts.
	AlertsEmails []string `json:"alertsEmails,omitempty"`
	// Email: The primary contact email address.
	Email string `json:"email,omitempty"`
	// Name: The primary contact name.
	Name string `json:"name,omitempty"`
	// Phone: The primary contact phone number.
	Phone string `json:"phone,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AlertsEmails") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AlertsEmails") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (IssuerContactInfo) MarshalJSON

func (s IssuerContactInfo) MarshalJSON() ([]byte, error)

type IssuerGetCall

type IssuerGetCall struct {
	// contains filtered or unexported fields
}

func (*IssuerGetCall) Context

func (c *IssuerGetCall) Context(ctx context.Context) *IssuerGetCall

Context sets the context to be used in this call's Do method.

func (*IssuerGetCall) Do

func (c *IssuerGetCall) Do(opts ...googleapi.CallOption) (*Issuer, error)

Do executes the "walletobjects.issuer.get" call. Any non-2xx status code is an error. Response headers are in either *Issuer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuerGetCall) Fields

func (c *IssuerGetCall) Fields(s ...googleapi.Field) *IssuerGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*IssuerGetCall) Header

func (c *IssuerGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*IssuerGetCall) IfNoneMatch

func (c *IssuerGetCall) IfNoneMatch(entityTag string) *IssuerGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type IssuerInsertCall

type IssuerInsertCall struct {
	// contains filtered or unexported fields
}

func (*IssuerInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*IssuerInsertCall) Do

func (c *IssuerInsertCall) Do(opts ...googleapi.CallOption) (*Issuer, error)

Do executes the "walletobjects.issuer.insert" call. Any non-2xx status code is an error. Response headers are in either *Issuer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuerInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*IssuerInsertCall) Header

func (c *IssuerInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type IssuerListCall

type IssuerListCall struct {
	// contains filtered or unexported fields
}

func (*IssuerListCall) Context

func (c *IssuerListCall) Context(ctx context.Context) *IssuerListCall

Context sets the context to be used in this call's Do method.

func (*IssuerListCall) Do

Do executes the "walletobjects.issuer.list" call. Any non-2xx status code is an error. Response headers are in either *IssuerListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuerListCall) Fields

func (c *IssuerListCall) Fields(s ...googleapi.Field) *IssuerListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*IssuerListCall) Header

func (c *IssuerListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*IssuerListCall) IfNoneMatch

func (c *IssuerListCall) IfNoneMatch(entityTag string) *IssuerListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type IssuerListResponse

type IssuerListResponse struct {
	// Resources: Resources corresponding to the list request.
	Resources []*Issuer `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resources") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resources") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (IssuerListResponse) MarshalJSON

func (s IssuerListResponse) MarshalJSON() ([]byte, error)

type IssuerPatchCall

type IssuerPatchCall struct {
	// contains filtered or unexported fields
}

func (*IssuerPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*IssuerPatchCall) Do

func (c *IssuerPatchCall) Do(opts ...googleapi.CallOption) (*Issuer, error)

Do executes the "walletobjects.issuer.patch" call. Any non-2xx status code is an error. Response headers are in either *Issuer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuerPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*IssuerPatchCall) Header

func (c *IssuerPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type IssuerService

type IssuerService struct {
	// contains filtered or unexported fields
}

func NewIssuerService

func NewIssuerService(s *Service) *IssuerService

func (*IssuerService) Get

func (r *IssuerService) Get(resourceId int64) *IssuerGetCall

Get: Returns the issuer with the given issuer ID.

- resourceId: The unique identifier for an issuer.

func (*IssuerService) Insert

func (r *IssuerService) Insert(issuer *Issuer) *IssuerInsertCall

Insert: Inserts an issuer with the given ID and properties.

func (*IssuerService) List

func (r *IssuerService) List() *IssuerListCall

List: Returns a list of all issuers shared to the caller.

func (*IssuerService) Patch

func (r *IssuerService) Patch(resourceId int64, issuer *Issuer) *IssuerPatchCall

Patch: Updates the issuer referenced by the given issuer ID. This method supports patch semantics.

- resourceId: The unique identifier for an issuer.

func (*IssuerService) Update

func (r *IssuerService) Update(resourceId int64, issuer *Issuer) *IssuerUpdateCall

Update: Updates the issuer referenced by the given issuer ID.

- resourceId: The unique identifier for an issuer.

type IssuerToUserInfo

type IssuerToUserInfo struct {
	// Possible values:
	//   "ACTION_UNSPECIFIED"
	//   "S2AP"
	//   "s2ap" - Legacy alias for `S2AP`. Deprecated.
	//   "SIGN_UP"
	//   "signUp" - Legacy alias for `SIGN_UP`. Deprecated.
	Action     string      `json:"action,omitempty"`
	SignUpInfo *SignUpInfo `json:"signUpInfo,omitempty"`
	// Url: Currently not used, consider deprecating.
	Url string `json:"url,omitempty"`
	// Value: JSON web token for action S2AP.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Action") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (IssuerToUserInfo) MarshalJSON

func (s IssuerToUserInfo) MarshalJSON() ([]byte, error)

type IssuerUpdateCall

type IssuerUpdateCall struct {
	// contains filtered or unexported fields
}

func (*IssuerUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*IssuerUpdateCall) Do

func (c *IssuerUpdateCall) Do(opts ...googleapi.CallOption) (*Issuer, error)

Do executes the "walletobjects.issuer.update" call. Any non-2xx status code is an error. Response headers are in either *Issuer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuerUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*IssuerUpdateCall) Header

func (c *IssuerUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type JwtInsertCall

type JwtInsertCall struct {
	// contains filtered or unexported fields
}

func (*JwtInsertCall) Context

func (c *JwtInsertCall) Context(ctx context.Context) *JwtInsertCall

Context sets the context to be used in this call's Do method.

func (*JwtInsertCall) Do

Do executes the "walletobjects.jwt.insert" call. Any non-2xx status code is an error. Response headers are in either *JwtInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JwtInsertCall) Fields

func (c *JwtInsertCall) Fields(s ...googleapi.Field) *JwtInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*JwtInsertCall) Header

func (c *JwtInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type JwtInsertResponse

type JwtInsertResponse struct {
	// Resources: Data that corresponds to the ids of the provided classes and
	// objects in the JWT. resources will only include the non-empty arrays (i.e.
	// if the JWT only includes eventTicketObjects, then that is the only field
	// that will be present in resources).
	Resources *Resources `json:"resources,omitempty"`
	// SaveUri: A URI that, when opened, will allow the end user to save the
	// object(s) identified in the JWT to their Google account.
	SaveUri string `json:"saveUri,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resources") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resources") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (JwtInsertResponse) MarshalJSON

func (s JwtInsertResponse) MarshalJSON() ([]byte, error)

type JwtResource

type JwtResource struct {
	// Jwt: A string representing a JWT of the format described at
	// https://developers.google.com/wallet/reference/rest/v1/Jwt
	Jwt string `json:"jwt,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Jwt") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Jwt") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (JwtResource) MarshalJSON

func (s JwtResource) MarshalJSON() ([]byte, error)

type JwtService

type JwtService struct {
	// contains filtered or unexported fields
}

func NewJwtService

func NewJwtService(s *Service) *JwtService

func (*JwtService) Insert

func (r *JwtService) Insert(jwtresource *JwtResource) *JwtInsertCall

Insert: Inserts the resources in the JWT.

type LabelValue

type LabelValue struct {
	// Label: The label for a specific row and column. Recommended maximum is 15
	// characters for a two-column layout and 30 characters for a one-column
	// layout.
	Label string `json:"label,omitempty"`
	// LocalizedLabel: Translated strings for the label. Recommended maximum is 15
	// characters for a two-column layout and 30 characters for a one-column
	// layout.
	LocalizedLabel *LocalizedString `json:"localizedLabel,omitempty"`
	// LocalizedValue: Translated strings for the value. Recommended maximum is 15
	// characters for a two-column layout and 30 characters for a one-column
	// layout.
	LocalizedValue *LocalizedString `json:"localizedValue,omitempty"`
	// Value: The value for a specific row and column. Recommended maximum is 15
	// characters for a two-column layout and 30 characters for a one-column
	// layout.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Label") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

LabelValue: A pair of text strings to be displayed in the details view. Note we no longer display LabelValue/LabelValueRow as a table, instead a list of items.

func (LabelValue) MarshalJSON

func (s LabelValue) MarshalJSON() ([]byte, error)

type LabelValueRow

type LabelValueRow struct {
	// Columns: A list of labels and values. These will be displayed in a singular
	// column, one after the other, not in multiple columns, despite the field
	// name.
	Columns []*LabelValue `json:"columns,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Columns") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LabelValueRow) MarshalJSON

func (s LabelValueRow) MarshalJSON() ([]byte, error)

type LatLongPoint

type LatLongPoint struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#latLongPoint".
	Kind string `json:"kind,omitempty"`
	// Latitude: The latitude specified as any value in the range of -90.0 through
	// +90.0, both inclusive. Values outside these bounds will be rejected.
	Latitude float64 `json:"latitude,omitempty"`
	// Longitude: The longitude specified in the range -180.0 through +180.0, both
	// inclusive. Values outside these bounds will be rejected.
	Longitude float64 `json:"longitude,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Kind") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LatLongPoint) MarshalJSON

func (s LatLongPoint) MarshalJSON() ([]byte, error)

func (*LatLongPoint) UnmarshalJSON

func (s *LatLongPoint) UnmarshalJSON(data []byte) error

type LinksModuleData

type LinksModuleData struct {
	// Uris: The list of URIs.
	Uris []*Uri `json:"uris,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Uris") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LinksModuleData) MarshalJSON

func (s LinksModuleData) MarshalJSON() ([]byte, error)

type ListTemplateOverride

type ListTemplateOverride struct {
	// FirstRowOption: Specifies from a predefined set of options or from a
	// reference to the field what will be displayed in the first row. To set this
	// override, set the FirstRowOption.fieldOption to the FieldSelector of your
	// choice.
	FirstRowOption *FirstRowOption `json:"firstRowOption,omitempty"`
	// SecondRowOption: A reference to the field to be displayed in the second row.
	// This option is only displayed if there are not multiple user objects in a
	// group. If there is a group, the second row will always display a field
	// shared by all objects. To set this override, please set secondRowOption to
	// the FieldSelector of you choice.
	SecondRowOption *FieldSelector `json:"secondRowOption,omitempty"`
	// ThirdRowOption: An unused/deprecated field. Setting it will have no effect
	// on what the user sees.
	ThirdRowOption *FieldSelector `json:"thirdRowOption,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FirstRowOption") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FirstRowOption") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ListTemplateOverride) MarshalJSON

func (s ListTemplateOverride) MarshalJSON() ([]byte, error)

type LocalizedString

type LocalizedString struct {
	// DefaultValue: Contains the string to be displayed if no appropriate
	// translation is available.
	DefaultValue *TranslatedString `json:"defaultValue,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#localizedString".
	Kind string `json:"kind,omitempty"`
	// TranslatedValues: Contains the translations for the string.
	TranslatedValues []*TranslatedString `json:"translatedValues,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LocalizedString) MarshalJSON

func (s LocalizedString) MarshalJSON() ([]byte, error)

type LoyaltyClass

type LoyaltyClass struct {
	// AccountIdLabel: The account ID label, such as "Member ID." Recommended
	// maximum length is 15 characters to ensure full string is displayed on
	// smaller screens.
	AccountIdLabel string `json:"accountIdLabel,omitempty"`
	// AccountNameLabel: The account name label, such as "Member Name." Recommended
	// maximum length is 15 characters to ensure full string is displayed on
	// smaller screens.
	AccountNameLabel string `json:"accountNameLabel,omitempty"`
	// AllowMultipleUsersPerObject: Deprecated. Use
	// `multipleDevicesAndHoldersAllowedStatus` instead.
	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// object that will be used instead.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// CallbackOptions: Callback options to be used to call the issuer back for
	// every save/delete of an object for this class by the end-user. All objects
	// of this class are eligible for the callback.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// ClassTemplateInfo: Template information about how the class should be
	// displayed. If unset, Google will fallback to a default set of fields to
	// display.
	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
	// CountryCode: Country code used to display the card's country (when the user
	// is not in that country), as well as to display localized content when
	// content is not available in the user's locale.
	CountryCode string `json:"countryCode,omitempty"`
	// DiscoverableProgram: Information about how the class may be discovered and
	// instantiated from within the Google Pay app.
	DiscoverableProgram *DiscoverableProgram `json:"discoverableProgram,omitempty"`
	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
	// `redemptionIssuers` and one of object level `smartTapRedemptionLevel`,
	// barcode.value`, or `accountId` fields must also be set up correctly in order
	// for a pass to support Smart Tap.
	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, nothing will be displayed. The image will display at 100% width.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// HomepageUri: The URI of your application's home page. Populating the URI in
	// this field results in the exact same behavior as populating an URI in
	// linksModuleData (when an object is rendered, a link to the homepage is shown
	// in what would usually be thought of as the linksModuleData section of the
	// object).
	HomepageUri *Uri `json:"homepageUri,omitempty"`
	// Id: Required. The unique identifier for a class. This ID must be unique
	// across all classes from an issuer. This value should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you. Your unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// IssuerName: Required. The issuer name. Recommended maximum length is 20
	// characters to ensure full string is displayed on smaller screens.
	IssuerName string `json:"issuerName,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#loyaltyClass".
	Kind string `json:"kind,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the object, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// LocalizedAccountIdLabel: Translated strings for the account_id_label.
	// Recommended maximum length is 15 characters to ensure full string is
	// displayed on smaller screens.
	LocalizedAccountIdLabel *LocalizedString `json:"localizedAccountIdLabel,omitempty"`
	// LocalizedAccountNameLabel: Translated strings for the account_name_label.
	// Recommended maximum length is 15 characters to ensure full string is
	// displayed on smaller screens.
	LocalizedAccountNameLabel *LocalizedString `json:"localizedAccountNameLabel,omitempty"`
	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
	// maximum length is 20 characters to ensure full string is displayed on
	// smaller screens.
	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
	// LocalizedProgramName: Translated strings for the program_name. The app may
	// display an ellipsis after the first 20 characters to ensure full string is
	// displayed on smaller screens.
	LocalizedProgramName *LocalizedString `json:"localizedProgramName,omitempty"`
	// LocalizedRewardsTier: Translated strings for the rewards_tier. Recommended
	// maximum length is 7 characters to ensure full string is displayed on smaller
	// screens.
	LocalizedRewardsTier *LocalizedString `json:"localizedRewardsTier,omitempty"`
	// LocalizedRewardsTierLabel: Translated strings for the rewards_tier_label.
	// Recommended maximum length is 9 characters to ensure full string is
	// displayed on smaller screens.
	LocalizedRewardsTierLabel *LocalizedString `json:"localizedRewardsTierLabel,omitempty"`
	// LocalizedSecondaryRewardsTier: Translated strings for the
	// secondary_rewards_tier.
	LocalizedSecondaryRewardsTier *LocalizedString `json:"localizedSecondaryRewardsTier,omitempty"`
	// LocalizedSecondaryRewardsTierLabel: Translated strings for the
	// secondary_rewards_tier_label.
	LocalizedSecondaryRewardsTierLabel *LocalizedString `json:"localizedSecondaryRewardsTierLabel,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
	// and devices will save the same object referencing this class.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified preference.
	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
	// saved by any number of different users, and on any number of devices.
	// Partners typically use this setup for passes that do not need to be
	// restricted to a single user or pinned to a single device.
	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
	// user can view and use it on multiple of their devices. Once the first user
	// saves the object, no other user will be allowed to view or save it.
	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
	// single device. Intended for use by select partners in limited circumstances.
	// An example use case is a transit ticket that should be "device pinned",
	// meaning it can be saved, viewed and used only by a single user on a single
	// device. Contact support for additional information.
	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
	// is displayed in both the details and list views of the app.
	ProgramLogo *Image `json:"programLogo,omitempty"`
	// ProgramName: Required. The program name, such as "Adam's Apparel". The app
	// may display an ellipsis after the first 20 characters to ensure full string
	// is displayed on smaller screens.
	ProgramName string `json:"programName,omitempty"`
	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
	// over Smart Tap. Redemption issuers are identified by their issuer ID.
	// Redemption issuers must have at least one Smart Tap key configured. The
	// `enableSmartTap` and one of object level `smartTapRedemptionValue`,
	// barcode.value`, or `accountId` fields must also be set up correctly in order
	// for a pass to support Smart Tap.
	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
	// Review: The review comments set by the platform when a class is marked
	// `approved` or `rejected`.
	Review *Review `json:"review,omitempty"`
	// ReviewStatus: Required. The status of the class. This field can be set to
	// `draft` or `underReview` using the insert, patch, or update API calls. Once
	// the review state is changed from `draft` it may not be changed back to
	// `draft`. You should keep this field to `draft` when the class is under
	// development. A `draft` class cannot be used to create any object. You should
	// set this field to `underReview` when you believe the class is ready for use.
	// The platform will automatically set this field to `approved` and it can be
	// immediately used to create or migrate objects. When updating an already
	// `approved` class you should keep setting this field to `underReview`.
	//
	// Possible values:
	//   "REVIEW_STATUS_UNSPECIFIED"
	//   "UNDER_REVIEW"
	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
	//   "APPROVED"
	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
	//   "REJECTED"
	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
	//   "DRAFT"
	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
	ReviewStatus string `json:"reviewStatus,omitempty"`
	// RewardsTier: The rewards tier, such as "Gold" or "Platinum." Recommended
	// maximum length is 7 characters to ensure full string is displayed on smaller
	// screens.
	RewardsTier string `json:"rewardsTier,omitempty"`
	// RewardsTierLabel: The rewards tier label, such as "Rewards Tier."
	// Recommended maximum length is 9 characters to ensure full string is
	// displayed on smaller screens.
	RewardsTierLabel string `json:"rewardsTierLabel,omitempty"`
	// SecondaryRewardsTier: The secondary rewards tier, such as "Gold" or
	// "Platinum."
	SecondaryRewardsTier string `json:"secondaryRewardsTier,omitempty"`
	// SecondaryRewardsTierLabel: The secondary rewards tier label, such as
	// "Rewards Tier."
	SecondaryRewardsTierLabel string `json:"secondaryRewardsTierLabel,omitempty"`
	// SecurityAnimation: Optional information about the security animation. If
	// this is set a security animation will be rendered on pass details.
	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`
	// ViewUnlockRequirement: View Unlock Requirement options for the loyalty card.
	//
	// Possible values:
	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
	// UNLOCK_NOT_REQUIRED.
	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
	// ViewUnlockRequirement is not set.
	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
	// time the pass is viewed. If the user removes their device lock after saving
	// the pass, then they will be prompted to create a device lock before the pass
	// can be viewed.
	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
	// provided, this will be used in place of the program logo in the top left of
	// the card view.
	WideProgramLogo *Image `json:"wideProgramLogo,omitempty"`
	// WordMark: Deprecated.
	WordMark *Image `json:"wordMark,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AccountIdLabel") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccountIdLabel") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyClass) MarshalJSON

func (s LoyaltyClass) MarshalJSON() ([]byte, error)

type LoyaltyClassAddMessageResponse

type LoyaltyClassAddMessageResponse struct {
	// Resource: The updated LoyaltyClass resource.
	Resource *LoyaltyClass `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyClassAddMessageResponse) MarshalJSON

func (s LoyaltyClassAddMessageResponse) MarshalJSON() ([]byte, error)

type LoyaltyClassListResponse

type LoyaltyClassListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*LoyaltyClass `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyClassListResponse) MarshalJSON

func (s LoyaltyClassListResponse) MarshalJSON() ([]byte, error)

type LoyaltyObject

type LoyaltyObject struct {
	// AccountId: The loyalty account identifier. Recommended maximum length is 20
	// characters.
	AccountId string `json:"accountId,omitempty"`
	// AccountName: The loyalty account holder name, such as "John Smith."
	// Recommended maximum length is 20 characters to ensure full string is
	// displayed on smaller screens.
	AccountName string `json:"accountName,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// class only object AppLinkData will be displayed.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// Barcode: The barcode type and value.
	Barcode *Barcode `json:"barcode,omitempty"`
	// ClassId: Required. The class associated with this object. The class must be
	// of the same type as this object, must already exist, and must be approved.
	// Class IDs should follow the format issuer ID.identifier where the former is
	// issued by Google and latter is chosen by you.
	ClassId string `json:"classId,omitempty"`
	// ClassReference: A copy of the inherited fields of the parent class. These
	// fields are retrieved during a GET.
	ClassReference *LoyaltyClass `json:"classReference,omitempty"`
	// DisableExpirationNotification: Indicates if notifications should explicitly
	// be suppressed. If this field is set to true, regardless of the `messages`
	// field, expiration notifications to the user will be suppressed. By default,
	// this field is set to false. Currently, this can only be set for offers.
	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
	// GroupingInfo: Information that controls how passes are grouped together.
	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
	// HasLinkedDevice: Whether this object is currently linked to a single device.
	// This field is set by the platform when a user saves the object, linking it
	// to their device. Intended for use by select partners. Contact support for
	// additional information.
	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
	// HasUsers: Indicates if the object has users. This field is set by the
	// platform.
	HasUsers bool `json:"hasUsers,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, hero image of the class, if present, will be displayed. If hero
	// image of the class is also not present, nothing will be displayed.
	HeroImage *Image `json:"heroImage,omitempty"`
	// Id: Required. The unique identifier for an object. This ID must be unique
	// across all objects from an issuer. This value should follow the format
	// issuer ID.identifier where the former is issued by Google and latter is
	// chosen by you. The unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#loyaltyObject".
	Kind string `json:"kind,omitempty"`
	// LinkedOfferIds: A list of offer objects linked to this loyalty card. The
	// offer objects must already exist. Offer object IDs should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you.
	LinkedOfferIds []string `json:"linkedOfferIds,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the class, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// LoyaltyPoints: The loyalty reward points label, balance, and type.
	LoyaltyPoints *LoyaltyPoints `json:"loyaltyPoints,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
	// screenshot behaviors.
	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
	// RotatingBarcode: The rotating barcode type and value.
	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
	// SaveRestrictions: Restrictions on the object that needs to be verified
	// before the user tries to save the pass. Note that this restrictions will
	// only be applied during save time. If the restrictions changed after a user
	// saves the pass, the new restrictions will not be applied to an already saved
	// pass.
	SaveRestrictions *SaveRestrictions `json:"saveRestrictions,omitempty"`
	// SecondaryLoyaltyPoints: The secondary loyalty reward points label, balance,
	// and type. Shown in addition to the primary loyalty points.
	SecondaryLoyaltyPoints *LoyaltyPoints `json:"secondaryLoyaltyPoints,omitempty"`
	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
	// certified terminal over NFC for this object. The class level fields
	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
	// order for the pass to support Smart Tap. Only ASCII characters are
	// supported. If this value is not set but the class level fields
	// `enableSmartTap` and `redemptionIssuers` are set up correctly, the
	// `barcode.value` or the `accountId` fields are used as fallback if present.
	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
	// State: Required. The state of the object. This field is used to determine
	// how an object is displayed in the app. For example, an `inactive` object is
	// moved to the "Expired passes" section.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "ACTIVE" - Object is active and displayed to with other active objects.
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "COMPLETED"
	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
	//   "INACTIVE"
	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
	State string `json:"state,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// ValidTimeInterval: The time period this object will be `active` and object
	// can be used. An object's state will be changed to `expired` when this time
	// period has passed.
	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccountId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyObject) MarshalJSON

func (s LoyaltyObject) MarshalJSON() ([]byte, error)

type LoyaltyObjectAddMessageResponse

type LoyaltyObjectAddMessageResponse struct {
	// Resource: The updated LoyaltyObject resource.
	Resource *LoyaltyObject `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyObjectAddMessageResponse) MarshalJSON

func (s LoyaltyObjectAddMessageResponse) MarshalJSON() ([]byte, error)

type LoyaltyObjectListResponse

type LoyaltyObjectListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*LoyaltyObject `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyObjectListResponse) MarshalJSON

func (s LoyaltyObjectListResponse) MarshalJSON() ([]byte, error)

type LoyaltyPoints

type LoyaltyPoints struct {
	// Balance: The account holder's loyalty point balance, such as "500" or
	// "$10.00". Recommended maximum length is 7 characters. This is a required
	// field of `loyaltyPoints` and `secondaryLoyaltyPoints`.
	Balance *LoyaltyPointsBalance `json:"balance,omitempty"`
	// Label: The loyalty points label, such as "Points". Recommended maximum
	// length is 9 characters.
	Label string `json:"label,omitempty"`
	// LocalizedLabel: Translated strings for the label. Recommended maximum length
	// is 9 characters.
	LocalizedLabel *LocalizedString `json:"localizedLabel,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Balance") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Balance") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyPoints) MarshalJSON

func (s LoyaltyPoints) MarshalJSON() ([]byte, error)

type LoyaltyPointsBalance

type LoyaltyPointsBalance struct {
	// Double: The double form of a balance. Only one of these subtypes (string,
	// int, double, money) should be populated.
	Double float64 `json:"double,omitempty"`
	// Int: The integer form of a balance. Only one of these subtypes (string, int,
	// double, money) should be populated.
	Int int64 `json:"int,omitempty"`
	// Money: The money form of a balance. Only one of these subtypes (string, int,
	// double, money) should be populated.
	Money *Money `json:"money,omitempty"`
	// String: The string form of a balance. Only one of these subtypes (string,
	// int, double, money) should be populated.
	String string `json:"string,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Double") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Double") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LoyaltyPointsBalance) MarshalJSON

func (s LoyaltyPointsBalance) MarshalJSON() ([]byte, error)

func (*LoyaltyPointsBalance) UnmarshalJSON

func (s *LoyaltyPointsBalance) UnmarshalJSON(data []byte) error

type LoyaltyclassAddmessageCall

type LoyaltyclassAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyclassAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyclassAddmessageCall) Do

Do executes the "walletobjects.loyaltyclass.addmessage" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyClassAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyclassAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyclassAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyclassGetCall

type LoyaltyclassGetCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyclassGetCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyclassGetCall) Do

Do executes the "walletobjects.loyaltyclass.get" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyclassGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyclassGetCall) Header

func (c *LoyaltyclassGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*LoyaltyclassGetCall) IfNoneMatch

func (c *LoyaltyclassGetCall) IfNoneMatch(entityTag string) *LoyaltyclassGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type LoyaltyclassInsertCall

type LoyaltyclassInsertCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyclassInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyclassInsertCall) Do

Do executes the "walletobjects.loyaltyclass.insert" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyclassInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyclassInsertCall) Header

func (c *LoyaltyclassInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyclassListCall

type LoyaltyclassListCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyclassListCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyclassListCall) Do

Do executes the "walletobjects.loyaltyclass.list" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyClassListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyclassListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyclassListCall) Header

func (c *LoyaltyclassListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*LoyaltyclassListCall) IfNoneMatch

func (c *LoyaltyclassListCall) IfNoneMatch(entityTag string) *LoyaltyclassListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*LoyaltyclassListCall) IssuerId

func (c *LoyaltyclassListCall) IssuerId(issuerId int64) *LoyaltyclassListCall

IssuerId sets the optional parameter "issuerId": The ID of the issuer authorized to list classes.

func (*LoyaltyclassListCall) MaxResults

func (c *LoyaltyclassListCall) MaxResults(maxResults int64) *LoyaltyclassListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*LoyaltyclassListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes.

type LoyaltyclassPatchCall

type LoyaltyclassPatchCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyclassPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyclassPatchCall) Do

Do executes the "walletobjects.loyaltyclass.patch" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyclassPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyclassPatchCall) Header

func (c *LoyaltyclassPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyclassService

type LoyaltyclassService struct {
	// contains filtered or unexported fields
}

func NewLoyaltyclassService

func NewLoyaltyclassService(s *Service) *LoyaltyclassService

func (*LoyaltyclassService) Addmessage

func (r *LoyaltyclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *LoyaltyclassAddmessageCall

Addmessage: Adds a message to the loyalty class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*LoyaltyclassService) Get

func (r *LoyaltyclassService) Get(resourceId string) *LoyaltyclassGetCall

Get: Returns the loyalty class with the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*LoyaltyclassService) Insert

func (r *LoyaltyclassService) Insert(loyaltyclass *LoyaltyClass) *LoyaltyclassInsertCall

Insert: Inserts an loyalty class with the given ID and properties.

func (*LoyaltyclassService) List

List: Returns a list of all loyalty classes for a given issuer ID.

func (*LoyaltyclassService) Patch

func (r *LoyaltyclassService) Patch(resourceId string, loyaltyclass *LoyaltyClass) *LoyaltyclassPatchCall

Patch: Updates the loyalty class referenced by the given class ID. This method supports patch semantics.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*LoyaltyclassService) Update

func (r *LoyaltyclassService) Update(resourceId string, loyaltyclass *LoyaltyClass) *LoyaltyclassUpdateCall

Update: Updates the loyalty class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type LoyaltyclassUpdateCall

type LoyaltyclassUpdateCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyclassUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyclassUpdateCall) Do

Do executes the "walletobjects.loyaltyclass.update" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyclassUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyclassUpdateCall) Header

func (c *LoyaltyclassUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyobjectAddmessageCall

type LoyaltyobjectAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyobjectAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyobjectAddmessageCall) Do

Do executes the "walletobjects.loyaltyobject.addmessage" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyObjectAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyobjectAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyobjectAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyobjectGetCall

type LoyaltyobjectGetCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyobjectGetCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyobjectGetCall) Do

Do executes the "walletobjects.loyaltyobject.get" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyobjectGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyobjectGetCall) Header

func (c *LoyaltyobjectGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*LoyaltyobjectGetCall) IfNoneMatch

func (c *LoyaltyobjectGetCall) IfNoneMatch(entityTag string) *LoyaltyobjectGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type LoyaltyobjectInsertCall

type LoyaltyobjectInsertCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyobjectInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyobjectInsertCall) Do

Do executes the "walletobjects.loyaltyobject.insert" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyobjectInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyobjectInsertCall) Header

func (c *LoyaltyobjectInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyobjectListCall

type LoyaltyobjectListCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyobjectListCall) ClassId

func (c *LoyaltyobjectListCall) ClassId(classId string) *LoyaltyobjectListCall

ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.

func (*LoyaltyobjectListCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyobjectListCall) Do

Do executes the "walletobjects.loyaltyobject.list" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyObjectListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyobjectListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyobjectListCall) Header

func (c *LoyaltyobjectListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*LoyaltyobjectListCall) IfNoneMatch

func (c *LoyaltyobjectListCall) IfNoneMatch(entityTag string) *LoyaltyobjectListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*LoyaltyobjectListCall) MaxResults

func (c *LoyaltyobjectListCall) MaxResults(maxResults int64) *LoyaltyobjectListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*LoyaltyobjectListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects.

type LoyaltyobjectModifylinkedofferobjectsCall

type LoyaltyobjectModifylinkedofferobjectsCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyobjectModifylinkedofferobjectsCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyobjectModifylinkedofferobjectsCall) Do

Do executes the "walletobjects.loyaltyobject.modifylinkedofferobjects" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyobjectModifylinkedofferobjectsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyobjectModifylinkedofferobjectsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyobjectPatchCall

type LoyaltyobjectPatchCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyobjectPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyobjectPatchCall) Do

Do executes the "walletobjects.loyaltyobject.patch" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyobjectPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyobjectPatchCall) Header

func (c *LoyaltyobjectPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type LoyaltyobjectService

type LoyaltyobjectService struct {
	// contains filtered or unexported fields
}

func NewLoyaltyobjectService

func NewLoyaltyobjectService(s *Service) *LoyaltyobjectService

func (*LoyaltyobjectService) Addmessage

func (r *LoyaltyobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *LoyaltyobjectAddmessageCall

Addmessage: Adds a message to the loyalty object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*LoyaltyobjectService) Get

func (r *LoyaltyobjectService) Get(resourceId string) *LoyaltyobjectGetCall

Get: Returns the loyalty object with the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*LoyaltyobjectService) Insert

func (r *LoyaltyobjectService) Insert(loyaltyobject *LoyaltyObject) *LoyaltyobjectInsertCall

Insert: Inserts an loyalty object with the given ID and properties.

func (*LoyaltyobjectService) List

List: Returns a list of all loyalty objects for a given issuer ID.

func (*LoyaltyobjectService) Modifylinkedofferobjects

func (r *LoyaltyobjectService) Modifylinkedofferobjects(resourceId string, modifylinkedofferobjectsrequest *ModifyLinkedOfferObjectsRequest) *LoyaltyobjectModifylinkedofferobjectsCall

Modifylinkedofferobjects: Modifies linked offer objects for the loyalty object with the given ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*LoyaltyobjectService) Patch

func (r *LoyaltyobjectService) Patch(resourceId string, loyaltyobject *LoyaltyObject) *LoyaltyobjectPatchCall

Patch: Updates the loyalty object referenced by the given object ID. This method supports patch semantics.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*LoyaltyobjectService) Update

func (r *LoyaltyobjectService) Update(resourceId string, loyaltyobject *LoyaltyObject) *LoyaltyobjectUpdateCall

Update: Updates the loyalty object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type LoyaltyobjectUpdateCall

type LoyaltyobjectUpdateCall struct {
	// contains filtered or unexported fields
}

func (*LoyaltyobjectUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*LoyaltyobjectUpdateCall) Do

Do executes the "walletobjects.loyaltyobject.update" call. Any non-2xx status code is an error. Response headers are in either *LoyaltyObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LoyaltyobjectUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*LoyaltyobjectUpdateCall) Header

func (c *LoyaltyobjectUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type Media

type Media struct {
	// Algorithm: Deprecated, use one of explicit hash type fields instead.
	// Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only
	// possible value for this field. New values may be added at any time.
	Algorithm string `json:"algorithm,omitempty"`
	// BigstoreObjectRef: Use object_id instead.
	BigstoreObjectRef string `json:"bigstoreObjectRef,omitempty"`
	// BlobRef: Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This
	// should be the byte representation of a blobstore.BlobRef. Since Blobstore is
	// deprecating v1, use blobstore2_info instead. For now, any v2 blob will also
	// be represented in this field as v1 BlobRef.
	BlobRef string `json:"blobRef,omitempty"`
	// Blobstore2Info: Blobstore v2 info, set if reference_type is BLOBSTORE_REF
	// and it refers to a v2 blob.
	Blobstore2Info *Blobstore2Info `json:"blobstore2Info,omitempty"`
	// CompositeMedia: A composite media composed of one or more media objects, set
	// if reference_type is COMPOSITE_MEDIA. The media length field must be set to
	// the sum of the lengths of all composite media objects. Note: All composite
	// media must have length specified.
	CompositeMedia []*CompositeMedia `json:"compositeMedia,omitempty"`
	// ContentType: MIME type of the data
	ContentType string `json:"contentType,omitempty"`
	// ContentTypeInfo: Extended content type information provided for Scotty
	// uploads.
	ContentTypeInfo *ContentTypeInfo `json:"contentTypeInfo,omitempty"`
	// CosmoBinaryReference: A binary data reference for a media download. Serves
	// as a technology-agnostic binary reference in some Google infrastructure.
	// This value is a serialized storage_cosmo.BinaryReference proto. Storing it
	// as bytes is a hack to get around the fact that the cosmo proto (as well as
	// others it includes) doesn't support JavaScript. This prevents us from
	// including the actual type of this field.
	CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`
	// Crc32cHash: For Scotty Uploads: Scotty-provided hashes for uploads For
	// Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY
	// TEAM.) A Hash provided by the agent to be used to verify the data being
	// downloaded. Currently only supported for inline payloads. Further, only
	// crc32c_hash is currently supported.
	Crc32cHash int64 `json:"crc32cHash,omitempty"`
	// DiffChecksumsResponse: Set if reference_type is DIFF_CHECKSUMS_RESPONSE.
	DiffChecksumsResponse *DiffChecksumsResponse `json:"diffChecksumsResponse,omitempty"`
	// DiffDownloadResponse: Set if reference_type is DIFF_DOWNLOAD_RESPONSE.
	DiffDownloadResponse *DiffDownloadResponse `json:"diffDownloadResponse,omitempty"`
	// DiffUploadRequest: Set if reference_type is DIFF_UPLOAD_REQUEST.
	DiffUploadRequest *DiffUploadRequest `json:"diffUploadRequest,omitempty"`
	// DiffUploadResponse: Set if reference_type is DIFF_UPLOAD_RESPONSE.
	DiffUploadResponse *DiffUploadResponse `json:"diffUploadResponse,omitempty"`
	// DiffVersionResponse: Set if reference_type is DIFF_VERSION_RESPONSE.
	DiffVersionResponse *DiffVersionResponse `json:"diffVersionResponse,omitempty"`
	// DownloadParameters: Parameters for a media download.
	DownloadParameters *DownloadParameters `json:"downloadParameters,omitempty"`
	// Filename: Original file name
	Filename string `json:"filename,omitempty"`
	// Hash: Deprecated, use one of explicit hash type fields instead. These two
	// hash related fields will only be populated on Scotty based media uploads and
	// will contain the content of the hash group in the NotificationRequest:
	// http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash
	// Hex encoded hash value of the uploaded media.
	Hash string `json:"hash,omitempty"`
	// HashVerified: For Scotty uploads only. If a user sends a hash code and the
	// backend has requested that Scotty verify the upload against the client hash,
	// Scotty will perform the check on behalf of the backend and will reject it if
	// the hashes don't match. This is set to true if Scotty performed this
	// verification.
	HashVerified bool `json:"hashVerified,omitempty"`
	// Inline: Media data, set if reference_type is INLINE
	Inline string `json:"inline,omitempty"`
	// IsPotentialRetry: |is_potential_retry| is set false only when Scotty is
	// certain that it has not sent the request before. When a client resumes an
	// upload, this field must be set true in agent calls, because Scotty cannot be
	// certain that it has never sent the request before due to potential failure
	// in the session state persistence.
	IsPotentialRetry bool `json:"isPotentialRetry,omitempty"`
	// Length: Size of the data, in bytes
	Length int64 `json:"length,omitempty,string"`
	// Md5Hash: Scotty-provided MD5 hash for an upload.
	Md5Hash string `json:"md5Hash,omitempty"`
	// MediaId: Media id to forward to the operation GetMedia. Can be set if
	// reference_type is GET_MEDIA.
	MediaId string `json:"mediaId,omitempty"`
	// ObjectId: Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
	ObjectId *ObjectId `json:"objectId,omitempty"`
	// Path: Path to the data, set if reference_type is PATH
	Path string `json:"path,omitempty"`
	// ReferenceType: Describes what the field reference contains.
	//
	// Possible values:
	//   "PATH" - Reference contains a GFS path or a local path.
	//   "BLOB_REF" - Reference points to a blobstore object. This could be either
	// a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info
	// first, since v1 is being deprecated.
	//   "INLINE" - Data is included into this proto buffer
	//   "GET_MEDIA" - Data should be accessed from the current service using the
	// operation GetMedia.
	//   "COMPOSITE_MEDIA" - The content for this media object is stored across
	// multiple partial media objects under the composite_media field.
	//   "BIGSTORE_REF" - Reference points to a bigstore object
	//   "DIFF_VERSION_RESPONSE" - Indicates the data is stored in
	// diff_version_response.
	//   "DIFF_CHECKSUMS_RESPONSE" - Indicates the data is stored in
	// diff_checksums_response.
	//   "DIFF_DOWNLOAD_RESPONSE" - Indicates the data is stored in
	// diff_download_response.
	//   "DIFF_UPLOAD_REQUEST" - Indicates the data is stored in
	// diff_upload_request.
	//   "DIFF_UPLOAD_RESPONSE" - Indicates the data is stored in
	// diff_upload_response.
	//   "COSMO_BINARY_REFERENCE" - Indicates the data is stored in
	// cosmo_binary_reference.
	//   "ARBITRARY_BYTES" - Informs Scotty to generate a response payload with the
	// size specified in the length field. The contents of the payload are
	// generated by Scotty and are undefined. This is useful for testing download
	// speeds between the user and Scotty without involving a real payload source.
	// Note: range is not supported when using arbitrary_bytes.
	ReferenceType string `json:"referenceType,omitempty"`
	// Sha1Hash: Scotty-provided SHA1 hash for an upload.
	Sha1Hash string `json:"sha1Hash,omitempty"`
	// Sha256Hash: Scotty-provided SHA256 hash for an upload.
	Sha256Hash string `json:"sha256Hash,omitempty"`
	// Timestamp: Time at which the media data was last updated, in milliseconds
	// since UNIX epoch
	Timestamp uint64 `json:"timestamp,omitempty,string"`
	// Token: A unique fingerprint/version id for the media data
	Token string `json:"token,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Algorithm") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Algorithm") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Media: A reference to data stored on the filesystem, on GFS or in blobstore.

func (Media) MarshalJSON

func (s Media) MarshalJSON() ([]byte, error)

type MediaDownloadCall

type MediaDownloadCall struct {
	// contains filtered or unexported fields
}

func (*MediaDownloadCall) Context

Context sets the context to be used in this call's Do and Download methods.

func (*MediaDownloadCall) Do

func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error)

Do executes the "walletobjects.media.download" call. Any non-2xx status code is an error. Response headers are in either *Media.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MediaDownloadCall) Download

func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error)

Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

func (*MediaDownloadCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*MediaDownloadCall) Header

func (c *MediaDownloadCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*MediaDownloadCall) IfNoneMatch

func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type MediaRequestInfo

type MediaRequestInfo struct {
	// CurrentBytes: The number of current bytes uploaded or downloaded.
	CurrentBytes int64 `json:"currentBytes,omitempty,string"`
	// CustomData: Data to be copied to backend requests. Custom data is returned
	// to Scotty in the agent_state field, which Scotty will then provide in
	// subsequent upload notifications.
	CustomData string `json:"customData,omitempty"`
	// DiffObjectVersion: Set if the http request info is diff encoded. The value
	// of this field is the version number of the base revision. This is
	// corresponding to Apiary's mediaDiffObjectVersion
	// (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionV
	// ariable.java). See go/esf-scotty-diff-upload for more information.
	DiffObjectVersion string `json:"diffObjectVersion,omitempty"`
	// FinalStatus: The existence of the final_status field indicates that this is
	// the last call to the agent for this request_id.
	// http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929
	FinalStatus int64 `json:"finalStatus,omitempty"`
	// NotificationType: The type of notification received from Scotty.
	//
	// Possible values:
	//   "START" - Such requests signals the start of a request containing media
	// upload. Only the media field(s) in the inserted/updated resource are set.
	// The response should either return an error or succeed. On success, responses
	// don't need to contain anything.
	//   "PROGRESS" - Such requests signals that the upload has progressed and that
	// the backend might want to access the media file specified in relevant fields
	// in the resource. Only the media field(s) in the inserted/updated resource
	// are set. The response should either return an error or succeed. On success,
	// responses don't need to contain anything.
	//   "END" - Such requests signals the end of a request containing media
	// upload. END should be handled just like normal Insert/Upload requests, that
	// is, they should process the request and return a complete resource in the
	// response. Pointers to media data (a GFS path usually) appear in the relevant
	// fields in the inserted/updated resource. See gdata.Media in data.proto.
	//   "RESPONSE_SENT" - Such requests occur after an END and signal that the
	// response has been sent back to the client. RESPONSE_SENT is only sent to the
	// backend if it is configured to receive them. The response does not need to
	// contain anything.
	//   "ERROR" - Such requests indicate that an error occurred while processing
	// the request. ERROR is only sent to the backend if it is configured to
	// receive them. It is not guaranteed that all errors will result in this
	// notification to the backend, even if the backend requests them. Since these
	// requests are just for informational purposes, the response does not need to
	// contain anything.
	NotificationType string `json:"notificationType,omitempty"`
	// RequestId: The Scotty request ID.
	RequestId string `json:"requestId,omitempty"`
	// RequestReceivedParamsServingInfo: The partition of the Scotty server
	// handling this request. type is
	// uploader_service.RequestReceivedParamsServingInfo
	// LINT.IfChange(request_received_params_serving_info_annotations)
	// LINT.ThenChange()
	RequestReceivedParamsServingInfo string `json:"requestReceivedParamsServingInfo,omitempty"`
	// TotalBytes: The total size of the file.
	TotalBytes int64 `json:"totalBytes,omitempty,string"`
	// TotalBytesIsEstimated: Whether the total bytes field contains an estimated
	// data.
	TotalBytesIsEstimated bool `json:"totalBytesIsEstimated,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CurrentBytes") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CurrentBytes") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

MediaRequestInfo: Extra information added to operations that support Scotty media requests.

func (MediaRequestInfo) MarshalJSON

func (s MediaRequestInfo) MarshalJSON() ([]byte, error)

type MediaService

type MediaService struct {
	// contains filtered or unexported fields
}

func NewMediaService

func NewMediaService(s *Service) *MediaService

func (*MediaService) Download

func (r *MediaService) Download(resourceId string) *MediaDownloadCall

Download: Downloads rotating barcode values for the transit object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*MediaService) Upload

func (r *MediaService) Upload(resourceId string, transitobjectuploadrotatingbarcodevaluesrequest *TransitObjectUploadRotatingBarcodeValuesRequest) *MediaUploadCall

Upload: Uploads rotating barcode values for the transit object referenced by the given object ID. Note the max upload size is specified in google3/production/config/cdd/apps-upload/customers/payments-consumer-passes/ config.gcl and enforced by Scotty.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type MediaUploadCall

type MediaUploadCall struct {
	// contains filtered or unexported fields
}

func (*MediaUploadCall) Context

Context sets the context to be used in this call's Do method. This context will supersede any context previously provided to the ResumableMedia method.

func (*MediaUploadCall) Do

Do executes the "walletobjects.media.upload" call. Any non-2xx status code is an error. Response headers are in either *TransitObjectUploadRotatingBarcodeValuesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MediaUploadCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*MediaUploadCall) Header

func (c *MediaUploadCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*MediaUploadCall) Media

func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*MediaUploadCall) ProgressUpdater

func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*MediaUploadCall) ResumableMedia deprecated

func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type Message

type Message struct {
	// Body: The message body.
	Body string `json:"body,omitempty"`
	// DisplayInterval: The period of time that the message will be displayed to
	// users. You can define both a `startTime` and `endTime` for each message. A
	// message is displayed immediately after a Wallet Object is inserted unless a
	// `startTime` is set. The message will appear in a list of messages
	// indefinitely if `endTime` is not provided.
	DisplayInterval *TimeInterval `json:"displayInterval,omitempty"`
	// Header: The message header.
	Header string `json:"header,omitempty"`
	// Id: The ID associated with a message. This field is here to enable ease of
	// management of messages. Notice ID values could possibly duplicate across
	// multiple messages in the same class/instance, and care must be taken to
	// select a reasonable ID for each message.
	Id string `json:"id,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#walletObjectMessage".
	Kind string `json:"kind,omitempty"`
	// LocalizedBody: Translated strings for the message body.
	LocalizedBody *LocalizedString `json:"localizedBody,omitempty"`
	// LocalizedHeader: Translated strings for the message header.
	LocalizedHeader *LocalizedString `json:"localizedHeader,omitempty"`
	// MessageType: The message type.
	//
	// Possible values:
	//   "MESSAGE_TYPE_UNSPECIFIED"
	//   "TEXT" - Renders the message as text on the card details screen. This is
	// the default message type.
	//   "text" - Legacy alias for `TEXT`. Deprecated.
	//   "EXPIRATION_NOTIFICATION" - Note: This enum is currently not supported.
	//   "expirationNotification" - Legacy alias for `EXPIRATION_NOTIFICATION`.
	// Deprecated.
	//   "TEXT_AND_NOTIFY" - Renders the message as text on the card details screen
	// and as an Android notification.
	MessageType string `json:"messageType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Body") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Message: A message that will be displayed with a Valuable

func (Message) MarshalJSON

func (s Message) MarshalJSON() ([]byte, error)

type ModifyLinkedOfferObjects

type ModifyLinkedOfferObjects struct {
	// AddLinkedOfferObjectIds: The linked offer object ids to add to the object.
	AddLinkedOfferObjectIds []string `json:"addLinkedOfferObjectIds,omitempty"`
	// RemoveLinkedOfferObjectIds: The linked offer object ids to remove from the
	// object.
	RemoveLinkedOfferObjectIds []string `json:"removeLinkedOfferObjectIds,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AddLinkedOfferObjectIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AddLinkedOfferObjectIds") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ModifyLinkedOfferObjects) MarshalJSON

func (s ModifyLinkedOfferObjects) MarshalJSON() ([]byte, error)

type ModifyLinkedOfferObjectsRequest

type ModifyLinkedOfferObjectsRequest struct {
	// LinkedOfferObjectIds: The linked offer object ids to add or remove from the
	// object.
	LinkedOfferObjectIds *ModifyLinkedOfferObjects `json:"linkedOfferObjectIds,omitempty"`
	// ForceSendFields is a list of field names (e.g. "LinkedOfferObjectIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "LinkedOfferObjectIds") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ModifyLinkedOfferObjectsRequest) MarshalJSON

func (s ModifyLinkedOfferObjectsRequest) MarshalJSON() ([]byte, error)

type Money

type Money struct {
	// CurrencyCode: The currency code, such as "USD" or "EUR."
	CurrencyCode string `json:"currencyCode,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#money".
	Kind string `json:"kind,omitempty"`
	// Micros: The unit of money amount in micros. For example, $1 USD would be
	// represented as 1000000 micros.
	Micros int64 `json:"micros,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Money) MarshalJSON

func (s Money) MarshalJSON() ([]byte, error)

type Notifications

type Notifications struct {
	// ExpiryNotification: A notification would be triggered at a specific time
	// before the card expires.
	ExpiryNotification *ExpiryNotification `json:"expiryNotification,omitempty"`
	// UpcomingNotification: A notification would be triggered at a specific time
	// before the card becomes usable.
	UpcomingNotification *UpcomingNotification `json:"upcomingNotification,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ExpiryNotification") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ExpiryNotification") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Notifications: Indicates if the object needs to have notification enabled. We support only one of ExpiryNotification/UpcomingNotification. `expiryNotification` takes precedence over `upcomingNotification`. In other words if `expiryNotification` is set, we ignore the `upcomingNotification` field.

func (Notifications) MarshalJSON

func (s Notifications) MarshalJSON() ([]byte, error)

type ObjectId

type ObjectId struct {
	// BucketName: The name of the bucket to which this object belongs.
	BucketName string `json:"bucketName,omitempty"`
	// Generation: Generation of the object. Generations are monotonically
	// increasing across writes, allowing them to be be compared to determine which
	// generation is newer. If this is omitted in a request, then you are
	// requesting the live object. See http://go/bigstore-versions
	Generation int64 `json:"generation,omitempty,string"`
	// ObjectName: The name of the object.
	ObjectName string `json:"objectName,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BucketName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BucketName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ObjectId: This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763.

func (ObjectId) MarshalJSON

func (s ObjectId) MarshalJSON() ([]byte, error)

type OfferClass

type OfferClass struct {
	// AllowMultipleUsersPerObject: Deprecated. Use
	// `multipleDevicesAndHoldersAllowedStatus` instead.
	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// object that will be used instead.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// CallbackOptions: Callback options to be used to call the issuer back for
	// every save/delete of an object for this class by the end-user. All objects
	// of this class are eligible for the callback.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// ClassTemplateInfo: Template information about how the class should be
	// displayed. If unset, Google will fallback to a default set of fields to
	// display.
	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
	// CountryCode: Country code used to display the card's country (when the user
	// is not in that country), as well as to display localized content when
	// content is not available in the user's locale.
	CountryCode string `json:"countryCode,omitempty"`
	// Details: The details of the offer.
	Details string `json:"details,omitempty"`
	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
	// also be set up correctly in order for a pass to support Smart Tap.
	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
	// FinePrint: The fine print or terms of the offer, such as "20% off any
	// t-shirt at Adam's Apparel."
	FinePrint string `json:"finePrint,omitempty"`
	// HelpUri: The help link for the offer, such as
	// `http://myownpersonaldomain.com/help`
	HelpUri *Uri `json:"helpUri,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, nothing will be displayed. The image will display at 100% width.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// HomepageUri: The URI of your application's home page. Populating the URI in
	// this field results in the exact same behavior as populating an URI in
	// linksModuleData (when an object is rendered, a link to the homepage is shown
	// in what would usually be thought of as the linksModuleData section of the
	// object).
	HomepageUri *Uri `json:"homepageUri,omitempty"`
	// Id: Required. The unique identifier for a class. This ID must be unique
	// across all classes from an issuer. This value should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you. Your unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// IssuerName: Required. The issuer name. Recommended maximum length is 20
	// characters to ensure full string is displayed on smaller screens.
	IssuerName string `json:"issuerName,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#offerClass".
	Kind string `json:"kind,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the object, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// LocalizedDetails: Translated strings for the details.
	LocalizedDetails *LocalizedString `json:"localizedDetails,omitempty"`
	// LocalizedFinePrint: Translated strings for the fine_print.
	LocalizedFinePrint *LocalizedString `json:"localizedFinePrint,omitempty"`
	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
	// maximum length is 20 characters to ensure full string is displayed on
	// smaller screens.
	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
	// LocalizedProvider: Translated strings for the provider. Recommended maximum
	// length is 12 characters to ensure full string is displayed on smaller
	// screens.
	LocalizedProvider *LocalizedString `json:"localizedProvider,omitempty"`
	// LocalizedShortTitle: Translated strings for the short title. Recommended
	// maximum length is 20 characters.
	LocalizedShortTitle *LocalizedString `json:"localizedShortTitle,omitempty"`
	// LocalizedTitle: Translated strings for the title. Recommended maximum length
	// is 60 characters to ensure full string is displayed on smaller screens.
	LocalizedTitle *LocalizedString `json:"localizedTitle,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
	// and devices will save the same object referencing this class.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified preference.
	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
	// saved by any number of different users, and on any number of devices.
	// Partners typically use this setup for passes that do not need to be
	// restricted to a single user or pinned to a single device.
	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
	// user can view and use it on multiple of their devices. Once the first user
	// saves the object, no other user will be allowed to view or save it.
	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
	// single device. Intended for use by select partners in limited circumstances.
	// An example use case is a transit ticket that should be "device pinned",
	// meaning it can be saved, viewed and used only by a single user on a single
	// device. Contact support for additional information.
	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
	// Provider: Required. The offer provider (either the aggregator name or
	// merchant name). Recommended maximum length is 12 characters to ensure full
	// string is displayed on smaller screens.
	Provider string `json:"provider,omitempty"`
	// RedemptionChannel: Required. The redemption channels applicable to this
	// offer.
	//
	// Possible values:
	//   "REDEMPTION_CHANNEL_UNSPECIFIED"
	//   "INSTORE"
	//   "instore" - Legacy alias for `INSTORE`. Deprecated.
	//   "ONLINE"
	//   "online" - Legacy alias for `ONLINE`. Deprecated.
	//   "BOTH"
	//   "both" - Legacy alias for `BOTH`. Deprecated.
	//   "TEMPORARY_PRICE_REDUCTION"
	//   "temporaryPriceReduction" - Legacy alias for `TEMPORARY_PRICE_REDUCTION`.
	// Deprecated.
	RedemptionChannel string `json:"redemptionChannel,omitempty"`
	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
	// over Smart Tap. Redemption issuers are identified by their issuer ID.
	// Redemption issuers must have at least one Smart Tap key configured. The
	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
	// be set up correctly in order for a pass to support Smart Tap.
	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
	// Review: The review comments set by the platform when a class is marked
	// `approved` or `rejected`.
	Review *Review `json:"review,omitempty"`
	// ReviewStatus: Required. The status of the class. This field can be set to
	// `draft` or The status of the class. This field can be set to `draft` or
	// `underReview` using the insert, patch, or update API calls. Once the review
	// state is changed from `draft` it may not be changed back to `draft`. You
	// should keep this field to `draft` when the class is under development. A
	// `draft` class cannot be used to create any object. You should set this field
	// to `underReview` when you believe the class is ready for use. The platform
	// will automatically set this field to `approved` and it can be immediately
	// used to create or migrate objects. When updating an already `approved` class
	// you should keep setting this field to `underReview`.
	//
	// Possible values:
	//   "REVIEW_STATUS_UNSPECIFIED"
	//   "UNDER_REVIEW"
	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
	//   "APPROVED"
	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
	//   "REJECTED"
	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
	//   "DRAFT"
	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
	ReviewStatus string `json:"reviewStatus,omitempty"`
	// SecurityAnimation: Optional information about the security animation. If
	// this is set a security animation will be rendered on pass details.
	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
	// ShortTitle: A shortened version of the title of the offer, such as "20%
	// off," shown to users as a quick reference to the offer contents. Recommended
	// maximum length is 20 characters.
	ShortTitle string `json:"shortTitle,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// Title: Required. The title of the offer, such as "20% off any t-shirt."
	// Recommended maximum length is 60 characters to ensure full string is
	// displayed on smaller screens.
	Title string `json:"title,omitempty"`
	// TitleImage: The title image of the offer. This image is displayed in both
	// the details and list views of the app.
	TitleImage *Image `json:"titleImage,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`
	// ViewUnlockRequirement: View Unlock Requirement options for the offer.
	//
	// Possible values:
	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
	// UNLOCK_NOT_REQUIRED.
	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
	// ViewUnlockRequirement is not set.
	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
	// time the pass is viewed. If the user removes their device lock after saving
	// the pass, then they will be prompted to create a device lock before the pass
	// can be viewed.
	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
	// WideTitleImage: The wide title image of the offer. When provided, this will
	// be used in place of the title image in the top left of the card view.
	WideTitleImage *Image `json:"wideTitleImage,omitempty"`
	// WordMark: Deprecated.
	WordMark *Image `json:"wordMark,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g.
	// "AllowMultipleUsersPerObject") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
	// for more details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AllowMultipleUsersPerObject") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (OfferClass) MarshalJSON

func (s OfferClass) MarshalJSON() ([]byte, error)

type OfferClassAddMessageResponse

type OfferClassAddMessageResponse struct {
	// Resource: The updated OfferClass resource.
	Resource *OfferClass `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (OfferClassAddMessageResponse) MarshalJSON

func (s OfferClassAddMessageResponse) MarshalJSON() ([]byte, error)

type OfferClassListResponse

type OfferClassListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*OfferClass `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (OfferClassListResponse) MarshalJSON

func (s OfferClassListResponse) MarshalJSON() ([]byte, error)

type OfferObject

type OfferObject struct {
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// class only object AppLinkData will be displayed.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// Barcode: The barcode type and value.
	Barcode *Barcode `json:"barcode,omitempty"`
	// ClassId: Required. The class associated with this object. The class must be
	// of the same type as this object, must already exist, and must be approved.
	// Class IDs should follow the format issuer ID.identifier where the former is
	// issued by Google and latter is chosen by you.
	ClassId string `json:"classId,omitempty"`
	// ClassReference: A copy of the inherited fields of the parent class. These
	// fields are retrieved during a GET.
	ClassReference *OfferClass `json:"classReference,omitempty"`
	// DisableExpirationNotification: Indicates if notifications should explicitly
	// be suppressed. If this field is set to true, regardless of the `messages`
	// field, expiration notifications to the user will be suppressed. By default,
	// this field is set to false. Currently, this can only be set for offers.
	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
	// GroupingInfo: Information that controls how passes are grouped together.
	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
	// HasLinkedDevice: Whether this object is currently linked to a single device.
	// This field is set by the platform when a user saves the object, linking it
	// to their device. Intended for use by select partners. Contact support for
	// additional information.
	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
	// HasUsers: Indicates if the object has users. This field is set by the
	// platform.
	HasUsers bool `json:"hasUsers,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, hero image of the class, if present, will be displayed. If hero
	// image of the class is also not present, nothing will be displayed.
	HeroImage *Image `json:"heroImage,omitempty"`
	// Id: Required. The unique identifier for an object. This ID must be unique
	// across all objects from an issuer. This value should follow the format
	// issuer ID.identifier where the former is issued by Google and latter is
	// chosen by you. The unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#offerObject".
	Kind string `json:"kind,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the class, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
	// screenshot behaviors.
	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
	// RotatingBarcode: The rotating barcode type and value.
	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
	// SaveRestrictions: Restrictions on the object that needs to be verified
	// before the user tries to save the pass. Note that this restrictions will
	// only be applied during save time. If the restrictions changed after a user
	// saves the pass, the new restrictions will not be applied to an already saved
	// pass.
	SaveRestrictions *SaveRestrictions `json:"saveRestrictions,omitempty"`
	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
	// certified terminal over NFC for this object. The class level fields
	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
	// order for the pass to support Smart Tap. Only ASCII characters are
	// supported.
	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
	// State: Required. The state of the object. This field is used to determine
	// how an object is displayed in the app. For example, an `inactive` object is
	// moved to the "Expired passes" section.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "ACTIVE" - Object is active and displayed to with other active objects.
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "COMPLETED"
	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
	//   "INACTIVE"
	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
	State string `json:"state,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// ValidTimeInterval: The time period this object will be `active` and object
	// can be used. An object's state will be changed to `expired` when this time
	// period has passed.
	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (OfferObject) MarshalJSON

func (s OfferObject) MarshalJSON() ([]byte, error)

type OfferObjectAddMessageResponse

type OfferObjectAddMessageResponse struct {
	// Resource: The updated OfferObject resource.
	Resource *OfferObject `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (OfferObjectAddMessageResponse) MarshalJSON

func (s OfferObjectAddMessageResponse) MarshalJSON() ([]byte, error)

type OfferObjectListResponse

type OfferObjectListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*OfferObject `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (OfferObjectListResponse) MarshalJSON

func (s OfferObjectListResponse) MarshalJSON() ([]byte, error)

type OfferclassAddmessageCall

type OfferclassAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*OfferclassAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferclassAddmessageCall) Do

Do executes the "walletobjects.offerclass.addmessage" call. Any non-2xx status code is an error. Response headers are in either *OfferClassAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferclassAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferclassAddmessageCall) Header

func (c *OfferclassAddmessageCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type OfferclassGetCall

type OfferclassGetCall struct {
	// contains filtered or unexported fields
}

func (*OfferclassGetCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferclassGetCall) Do

Do executes the "walletobjects.offerclass.get" call. Any non-2xx status code is an error. Response headers are in either *OfferClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferclassGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferclassGetCall) Header

func (c *OfferclassGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*OfferclassGetCall) IfNoneMatch

func (c *OfferclassGetCall) IfNoneMatch(entityTag string) *OfferclassGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type OfferclassInsertCall

type OfferclassInsertCall struct {
	// contains filtered or unexported fields
}

func (*OfferclassInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferclassInsertCall) Do

Do executes the "walletobjects.offerclass.insert" call. Any non-2xx status code is an error. Response headers are in either *OfferClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferclassInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferclassInsertCall) Header

func (c *OfferclassInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type OfferclassListCall

type OfferclassListCall struct {
	// contains filtered or unexported fields
}

func (*OfferclassListCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferclassListCall) Do

Do executes the "walletobjects.offerclass.list" call. Any non-2xx status code is an error. Response headers are in either *OfferClassListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferclassListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferclassListCall) Header

func (c *OfferclassListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*OfferclassListCall) IfNoneMatch

func (c *OfferclassListCall) IfNoneMatch(entityTag string) *OfferclassListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*OfferclassListCall) IssuerId

func (c *OfferclassListCall) IssuerId(issuerId int64) *OfferclassListCall

IssuerId sets the optional parameter "issuerId": The ID of the issuer authorized to list classes.

func (*OfferclassListCall) MaxResults

func (c *OfferclassListCall) MaxResults(maxResults int64) *OfferclassListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*OfferclassListCall) Token

func (c *OfferclassListCall) Token(token string) *OfferclassListCall

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes.

type OfferclassPatchCall

type OfferclassPatchCall struct {
	// contains filtered or unexported fields
}

func (*OfferclassPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferclassPatchCall) Do

Do executes the "walletobjects.offerclass.patch" call. Any non-2xx status code is an error. Response headers are in either *OfferClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferclassPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferclassPatchCall) Header

func (c *OfferclassPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type OfferclassService

type OfferclassService struct {
	// contains filtered or unexported fields
}

func NewOfferclassService

func NewOfferclassService(s *Service) *OfferclassService

func (*OfferclassService) Addmessage

func (r *OfferclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *OfferclassAddmessageCall

Addmessage: Adds a message to the offer class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*OfferclassService) Get

func (r *OfferclassService) Get(resourceId string) *OfferclassGetCall

Get: Returns the offer class with the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*OfferclassService) Insert

func (r *OfferclassService) Insert(offerclass *OfferClass) *OfferclassInsertCall

Insert: Inserts an offer class with the given ID and properties.

func (*OfferclassService) List

List: Returns a list of all offer classes for a given issuer ID.

func (*OfferclassService) Patch

func (r *OfferclassService) Patch(resourceId string, offerclass *OfferClass) *OfferclassPatchCall

Patch: Updates the offer class referenced by the given class ID. This method supports patch semantics.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*OfferclassService) Update

func (r *OfferclassService) Update(resourceId string, offerclass *OfferClass) *OfferclassUpdateCall

Update: Updates the offer class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type OfferclassUpdateCall

type OfferclassUpdateCall struct {
	// contains filtered or unexported fields
}

func (*OfferclassUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferclassUpdateCall) Do

Do executes the "walletobjects.offerclass.update" call. Any non-2xx status code is an error. Response headers are in either *OfferClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferclassUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferclassUpdateCall) Header

func (c *OfferclassUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type OfferobjectAddmessageCall

type OfferobjectAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*OfferobjectAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferobjectAddmessageCall) Do

Do executes the "walletobjects.offerobject.addmessage" call. Any non-2xx status code is an error. Response headers are in either *OfferObjectAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferobjectAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferobjectAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type OfferobjectGetCall

type OfferobjectGetCall struct {
	// contains filtered or unexported fields
}

func (*OfferobjectGetCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferobjectGetCall) Do

Do executes the "walletobjects.offerobject.get" call. Any non-2xx status code is an error. Response headers are in either *OfferObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferobjectGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferobjectGetCall) Header

func (c *OfferobjectGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*OfferobjectGetCall) IfNoneMatch

func (c *OfferobjectGetCall) IfNoneMatch(entityTag string) *OfferobjectGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type OfferobjectInsertCall

type OfferobjectInsertCall struct {
	// contains filtered or unexported fields
}

func (*OfferobjectInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferobjectInsertCall) Do

Do executes the "walletobjects.offerobject.insert" call. Any non-2xx status code is an error. Response headers are in either *OfferObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferobjectInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferobjectInsertCall) Header

func (c *OfferobjectInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type OfferobjectListCall

type OfferobjectListCall struct {
	// contains filtered or unexported fields
}

func (*OfferobjectListCall) ClassId

func (c *OfferobjectListCall) ClassId(classId string) *OfferobjectListCall

ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.

func (*OfferobjectListCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferobjectListCall) Do

Do executes the "walletobjects.offerobject.list" call. Any non-2xx status code is an error. Response headers are in either *OfferObjectListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferobjectListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferobjectListCall) Header

func (c *OfferobjectListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*OfferobjectListCall) IfNoneMatch

func (c *OfferobjectListCall) IfNoneMatch(entityTag string) *OfferobjectListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*OfferobjectListCall) MaxResults

func (c *OfferobjectListCall) MaxResults(maxResults int64) *OfferobjectListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*OfferobjectListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects.

type OfferobjectPatchCall

type OfferobjectPatchCall struct {
	// contains filtered or unexported fields
}

func (*OfferobjectPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferobjectPatchCall) Do

Do executes the "walletobjects.offerobject.patch" call. Any non-2xx status code is an error. Response headers are in either *OfferObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferobjectPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferobjectPatchCall) Header

func (c *OfferobjectPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type OfferobjectService

type OfferobjectService struct {
	// contains filtered or unexported fields
}

func NewOfferobjectService

func NewOfferobjectService(s *Service) *OfferobjectService

func (*OfferobjectService) Addmessage

func (r *OfferobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *OfferobjectAddmessageCall

Addmessage: Adds a message to the offer object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*OfferobjectService) Get

func (r *OfferobjectService) Get(resourceId string) *OfferobjectGetCall

Get: Returns the offer object with the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*OfferobjectService) Insert

func (r *OfferobjectService) Insert(offerobject *OfferObject) *OfferobjectInsertCall

Insert: Inserts an offer object with the given ID and properties.

func (*OfferobjectService) List

List: Returns a list of all offer objects for a given issuer ID.

func (*OfferobjectService) Patch

func (r *OfferobjectService) Patch(resourceId string, offerobject *OfferObject) *OfferobjectPatchCall

Patch: Updates the offer object referenced by the given object ID. This method supports patch semantics.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*OfferobjectService) Update

func (r *OfferobjectService) Update(resourceId string, offerobject *OfferObject) *OfferobjectUpdateCall

Update: Updates the offer object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type OfferobjectUpdateCall

type OfferobjectUpdateCall struct {
	// contains filtered or unexported fields
}

func (*OfferobjectUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*OfferobjectUpdateCall) Do

Do executes the "walletobjects.offerobject.update" call. Any non-2xx status code is an error. Response headers are in either *OfferObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OfferobjectUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*OfferobjectUpdateCall) Header

func (c *OfferobjectUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type Pagination

type Pagination struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#pagination".
	Kind string `json:"kind,omitempty"`
	// NextPageToken: Page token to send to fetch the next page.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// ResultsPerPage: Number of results returned in this page.
	ResultsPerPage int64 `json:"resultsPerPage,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Kind") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Pagination) MarshalJSON

func (s Pagination) MarshalJSON() ([]byte, error)

type PassConstraints

type PassConstraints struct {
	// NfcConstraint: The NFC constraints for the pass.
	//
	// Possible values:
	//   "NFC_CONSTRAINT_UNSPECIFIED" - Default value, no specified constraint.
	//   "BLOCK_PAYMENT" - Payment cards will not be conveyed while the pass is
	// open.
	//   "BLOCK_CLOSED_LOOP_TRANSIT" - Closed loop transit cards will not be
	// conveyed while the pass is open.
	NfcConstraint []string `json:"nfcConstraint,omitempty"`
	// ScreenshotEligibility: The screenshot eligibility for the pass.
	//
	// Possible values:
	//   "SCREENSHOT_ELIGIBILITY_UNSPECIFIED" - Default value, same as ELIGIBLE.
	//   "ELIGIBLE" - Default behavior for all existing Passes if
	// ScreenshotEligibility is not set. Allows screenshots to be taken on Android
	// devices.
	//   "INELIGIBLE" - Disallows screenshots to be taken on Android devices. Note
	// that older versions of Wallet may still allow screenshots to be taken.
	ScreenshotEligibility string `json:"screenshotEligibility,omitempty"`
	// ForceSendFields is a list of field names (e.g. "NfcConstraint") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NfcConstraint") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PassConstraints: Container for any constraints that may be placed on passes.

func (PassConstraints) MarshalJSON

func (s PassConstraints) MarshalJSON() ([]byte, error)

type Permission

type Permission struct {
	// EmailAddress: The email address of the user, group, or service account to
	// which this permission refers to.
	EmailAddress string `json:"emailAddress,omitempty"`
	// Role: The role granted by this permission.
	//
	// Possible values:
	//   "ROLE_UNSPECIFIED"
	//   "OWNER"
	//   "owner" - Legacy alias for `OWNER`. Deprecated.
	//   "READER"
	//   "reader" - Legacy alias for `READER`. Deprecated.
	//   "WRITER"
	//   "writer" - Legacy alias for `WRITER`. Deprecated.
	Role string `json:"role,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EmailAddress") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EmailAddress") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Permission) MarshalJSON

func (s Permission) MarshalJSON() ([]byte, error)

type Permissions

type Permissions struct {
	// IssuerId: ID of the issuer the list of permissions refer to.
	IssuerId int64 `json:"issuerId,omitempty,string"`
	// Permissions: The complete list of permissions for the issuer account.
	Permissions []*Permission `json:"permissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "IssuerId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "IssuerId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Permissions) MarshalJSON

func (s Permissions) MarshalJSON() ([]byte, error)

type PermissionsGetCall

type PermissionsGetCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*PermissionsGetCall) Do

Do executes the "walletobjects.permissions.get" call. Any non-2xx status code is an error. Response headers are in either *Permissions.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PermissionsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*PermissionsGetCall) Header

func (c *PermissionsGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*PermissionsGetCall) IfNoneMatch

func (c *PermissionsGetCall) IfNoneMatch(entityTag string) *PermissionsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type PermissionsService

type PermissionsService struct {
	// contains filtered or unexported fields
}

func NewPermissionsService

func NewPermissionsService(s *Service) *PermissionsService

func (*PermissionsService) Get

func (r *PermissionsService) Get(resourceId int64) *PermissionsGetCall

Get: Returns the permissions for the given issuer id.

  • resourceId: The unique identifier for an issuer. This ID must be unique across all issuers.

func (*PermissionsService) Update

func (r *PermissionsService) Update(resourceId int64, permissions *Permissions) *PermissionsUpdateCall

Update: Updates the permissions for the given issuer.

  • resourceId: The unique identifier for an issuer. This ID must be unique across all issuers.

type PermissionsUpdateCall

type PermissionsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*PermissionsUpdateCall) Do

Do executes the "walletobjects.permissions.update" call. Any non-2xx status code is an error. Response headers are in either *Permissions.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PermissionsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*PermissionsUpdateCall) Header

func (c *PermissionsUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type PurchaseDetails

type PurchaseDetails struct {
	// AccountId: ID of the account used to purchase the ticket.
	AccountId string `json:"accountId,omitempty"`
	// ConfirmationCode: The confirmation code for the purchase. This may be the
	// same for multiple different tickets and is used to group tickets together.
	ConfirmationCode string `json:"confirmationCode,omitempty"`
	// PurchaseDateTime: The purchase date/time of the ticket. This is an ISO 8601
	// extended format date/time, with or without an offset. Time may be specified
	// up to nanosecond precision. Offsets may be specified with seconds precision
	// (even though offset seconds is not part of ISO 8601). For example:
	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
	// hours before UTC (same instant in time as the above example). If the event
	// were in New York, this would be the equivalent of Eastern Daylight Time
	// (EDT). Remember that offset varies in regions that observe Daylight Saving
	// Time (or Summer Time), depending on the time of the year.
	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
	// 19th hour of April 12th, 1985 with no offset information. Without offset
	// information, some rich features may not be available.
	PurchaseDateTime string `json:"purchaseDateTime,omitempty"`
	// PurchaseReceiptNumber: Receipt number/identifier for tracking the ticket
	// purchase via the body that sold the ticket.
	PurchaseReceiptNumber string `json:"purchaseReceiptNumber,omitempty"`
	// TicketCost: The cost of the ticket.
	TicketCost *TicketCost `json:"ticketCost,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccountId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (PurchaseDetails) MarshalJSON

func (s PurchaseDetails) MarshalJSON() ([]byte, error)

type ReservationInfo

type ReservationInfo struct {
	// ConfirmationCode: Confirmation code needed to check into this flight. This
	// is the number that the passenger would enter into a kiosk at the airport to
	// look up the flight and print a boarding pass.
	ConfirmationCode string `json:"confirmationCode,omitempty"`
	// EticketNumber: E-ticket number.
	EticketNumber string `json:"eticketNumber,omitempty"`
	// FrequentFlyerInfo: Frequent flyer membership information.
	FrequentFlyerInfo *FrequentFlyerInfo `json:"frequentFlyerInfo,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#reservationInfo".
	Kind string `json:"kind,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ConfirmationCode") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ConfirmationCode") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ReservationInfo) MarshalJSON

func (s ReservationInfo) MarshalJSON() ([]byte, error)

type Resources

type Resources struct {
	// EventTicketClasses: A list of event ticket classes.
	EventTicketClasses []*EventTicketClass `json:"eventTicketClasses,omitempty"`
	// EventTicketObjects: A list of event ticket objects.
	EventTicketObjects []*EventTicketObject `json:"eventTicketObjects,omitempty"`
	// FlightClasses: A list of flight classes.
	FlightClasses []*FlightClass `json:"flightClasses,omitempty"`
	// FlightObjects: A list of flight objects.
	FlightObjects []*FlightObject `json:"flightObjects,omitempty"`
	// GenericClasses: A list of generic classes.
	GenericClasses []*GenericClass `json:"genericClasses,omitempty"`
	// GenericObjects: A list of generic objects.
	GenericObjects []*GenericObject `json:"genericObjects,omitempty"`
	// GiftCardClasses: A list of gift card classes.
	GiftCardClasses []*GiftCardClass `json:"giftCardClasses,omitempty"`
	// GiftCardObjects: A list of gift card objects.
	GiftCardObjects []*GiftCardObject `json:"giftCardObjects,omitempty"`
	// LoyaltyClasses: A list of loyalty classes.
	LoyaltyClasses []*LoyaltyClass `json:"loyaltyClasses,omitempty"`
	// LoyaltyObjects: A list of loyalty objects.
	LoyaltyObjects []*LoyaltyObject `json:"loyaltyObjects,omitempty"`
	// OfferClasses: A list of offer classes.
	OfferClasses []*OfferClass `json:"offerClasses,omitempty"`
	// OfferObjects: A list of offer objects.
	OfferObjects []*OfferObject `json:"offerObjects,omitempty"`
	// TransitClasses: A list of transit classes.
	TransitClasses []*TransitClass `json:"transitClasses,omitempty"`
	// TransitObjects: A list of transit objects.
	TransitObjects []*TransitObject `json:"transitObjects,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EventTicketClasses") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EventTicketClasses") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Resources) MarshalJSON

func (s Resources) MarshalJSON() ([]byte, error)

type Review

type Review struct {
	Comments string `json:"comments,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Comments") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Comments") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Review) MarshalJSON

func (s Review) MarshalJSON() ([]byte, error)

type RotatingBarcode

type RotatingBarcode struct {
	// AlternateText: An optional text that will override the default text that
	// shows under the barcode. This field is intended for a human readable
	// equivalent of the barcode value, used when the barcode cannot be scanned.
	AlternateText string `json:"alternateText,omitempty"`
	// InitialRotatingBarcodeValues: Input only. NOTE: This feature is only
	// available for the transit vertical. Optional set of initial rotating barcode
	// values. This allows a small subset of barcodes to be included with the
	// object. Further rotating barcode values must be uploaded with the
	// UploadRotatingBarcodeValues endpoint.
	InitialRotatingBarcodeValues *RotatingBarcodeValues `json:"initialRotatingBarcodeValues,omitempty"`
	// RenderEncoding: The render encoding for the barcode. When specified, barcode
	// is rendered in the given encoding. Otherwise best known encoding is chosen
	// by Google.
	//
	// Possible values:
	//   "RENDER_ENCODING_UNSPECIFIED"
	//   "UTF_8" - UTF_8 encoding for barcodes. This is only supported for barcode
	// type qrCode.
	RenderEncoding string `json:"renderEncoding,omitempty"`
	// ShowCodeText: Optional text that will be shown when the barcode is hidden
	// behind a click action. This happens in cases where a pass has Smart Tap
	// enabled. If not specified, a default is chosen by Google.
	ShowCodeText *LocalizedString `json:"showCodeText,omitempty"`
	// TotpDetails: Details used to evaluate the {totp_value_n} substitutions.
	TotpDetails *RotatingBarcodeTotpDetails `json:"totpDetails,omitempty"`
	// Type: The type of this barcode.
	//
	// Possible values:
	//   "BARCODE_TYPE_UNSPECIFIED"
	//   "AZTEC" - Not supported for Rotating Barcodes.
	//   "aztec" - Legacy alias for `AZTEC`. Deprecated. Not supported for Rotating
	// Barcodes.
	//   "CODE_39" - Not supported for Rotating Barcodes.
	//   "code39" - Legacy alias for `CODE_39`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "CODE_128" - Not supported for Rotating Barcodes.
	//   "code128" - Legacy alias for `CODE_128`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "CODABAR" - Not supported for Rotating Barcodes.
	//   "codabar" - Legacy alias for `CODABAR`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "DATA_MATRIX" - A 2D matrix barcode consisting of black and white. Cells
	// or modules are arranged in either a square or rectangle. Not supported for
	// Rotating Barcodes.
	//   "dataMatrix" - Legacy alias for `DATA_MATRIX`. Deprecated. Not supported
	// for Rotating Barcodes.
	//   "EAN_8" - Not supported for Rotating Barcodes.
	//   "ean8" - Legacy alias for `EAN_8`. Deprecated. Not supported for Rotating
	// Barcodes.
	//   "EAN_13" - Not supported for Rotating Barcodes.
	//   "ean13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "EAN13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "ITF_14" - 14 digit ITF code Not supported for Rotating Barcodes.
	//   "itf14" - Legacy alias for `ITF_14`. Deprecated. Not supported for
	// Rotating Barcodes.
	//   "PDF_417" - Supported for Rotating Barcodes.
	//   "pdf417" - Legacy alias for `PDF_417`. Deprecated.
	//   "PDF417" - Legacy alias for `PDF_417`. Deprecated.
	//   "QR_CODE" - Supported for Rotating Barcodes.
	//   "qrCode" - Legacy alias for `QR_CODE`. Deprecated.
	//   "qrcode" - Legacy alias for `QR_CODE`. Deprecated.
	//   "UPC_A" - 11 or 12 digit codes Not supported for Rotating Barcodes.
	//   "upcA" - Legacy alias for `UPC_A`. Deprecated. Not supported for Rotating
	// Barcodes.
	//   "TEXT_ONLY" - Renders the field as a text field. The `alternateText` field
	// may not be used with a barcode of type `textOnly`. Not supported for
	// Rotating Barcodes.
	//   "textOnly" - Legacy alias for `TEXT_ONLY`. Deprecated. Not supported for
	// Rotating Barcodes.
	Type string `json:"type,omitempty"`
	// ValuePattern: String encoded barcode value. This string supports the
	// following substitutions: * {totp_value_n}: Replaced with the TOTP value (see
	// TotpDetails.parameters). * {totp_timestamp_millis}: Replaced with the
	// timestamp (millis since epoch) at which the barcode was generated. *
	// {totp_timestamp_seconds}: Replaced with the timestamp (seconds since epoch)
	// at which the barcode was generated.
	ValuePattern string `json:"valuePattern,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AlternateText") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AlternateText") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (RotatingBarcode) MarshalJSON

func (s RotatingBarcode) MarshalJSON() ([]byte, error)

type RotatingBarcodeTotpDetails

type RotatingBarcodeTotpDetails struct {
	// Algorithm: The TOTP algorithm used to generate the OTP.
	//
	// Possible values:
	//   "TOTP_ALGORITHM_UNSPECIFIED"
	//   "TOTP_SHA1" - TOTP algorithm from RFC 6238 with the SHA1 hash function
	Algorithm string `json:"algorithm,omitempty"`
	// Parameters: The TOTP parameters for each of the {totp_value_*}
	// substitutions. The TotpParameters at index n is used for the {totp_value_n}
	// substitution.
	Parameters []*RotatingBarcodeTotpDetailsTotpParameters `json:"parameters,omitempty"`
	// PeriodMillis: The time interval used for the TOTP value generation, in
	// milliseconds.
	PeriodMillis int64 `json:"periodMillis,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "Algorithm") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Algorithm") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RotatingBarcodeTotpDetails: Configuration for the time-based OTP substitutions. See https://tools.ietf.org/html/rfc6238

func (RotatingBarcodeTotpDetails) MarshalJSON

func (s RotatingBarcodeTotpDetails) MarshalJSON() ([]byte, error)

type RotatingBarcodeTotpDetailsTotpParameters

type RotatingBarcodeTotpDetailsTotpParameters struct {
	// Key: The secret key used for the TOTP value generation, encoded as a Base16
	// string.
	Key string `json:"key,omitempty"`
	// ValueLength: The length of the TOTP value in decimal digits.
	ValueLength int64 `json:"valueLength,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Key") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RotatingBarcodeTotpDetailsTotpParameters: Configuration for the key and value length. See https://www.rfc-editor.org/rfc/rfc4226#section-5.3

func (RotatingBarcodeTotpDetailsTotpParameters) MarshalJSON

type RotatingBarcodeValues

type RotatingBarcodeValues struct {
	// PeriodMillis: Required. The amount of time each barcode is valid for.
	PeriodMillis int64 `json:"periodMillis,omitempty,string"`
	// StartDateTime: Required. The date/time the first barcode is valid from.
	// Barcodes will be rotated through using period_millis defined on the object's
	// RotatingBarcodeValueInfo. This is an ISO 8601 extended format date/time,
	// with an offset. Time may be specified up to nanosecond precision. Offsets
	// may be specified with seconds precision (even though offset seconds is not
	// part of ISO 8601). For example: `1985-04-12T23:20:50.52Z` would be 20
	// minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC.
	// `1985-04-12T19:20:50.52-04:00` would be 20 minutes and 50.52 seconds after
	// the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time
	// as the above example). If the event were in New York, this would be the
	// equivalent of Eastern Daylight Time (EDT). Remember that offset varies in
	// regions that observe Daylight Saving Time (or Summer Time), depending on the
	// time of the year.
	StartDateTime string `json:"startDateTime,omitempty"`
	// Values: Required. The values to encode in the barcode. At least one value is
	// required.
	Values []string `json:"values,omitempty"`
	// ForceSendFields is a list of field names (e.g. "PeriodMillis") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "PeriodMillis") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RotatingBarcodeValues: A payload containing many barcode values and start date/time.

func (RotatingBarcodeValues) MarshalJSON

func (s RotatingBarcodeValues) MarshalJSON() ([]byte, error)

type SaveRestrictions added in v0.190.0

type SaveRestrictions struct {
	// RestrictToEmailSha256: Restrict the save of the referencing object to the
	// given email address only. This is the hex output of SHA256 sum of the email
	// address, all lowercase and without any notations like "." or "+", except
	// "@". For example, for example@example.com, this value will be
	// 31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66 and for
	// Example@example.com, this value will be
	// bc34f262c93ad7122763684ccea6f07fb7f5d8a2d11e60ce15a6f43fe70ce632 If email
	// address of the logged-in user who tries to save this pass does not match
	// with the defined value here, users won't be allowed to save this pass. They
	// will instead be prompted with an error to contact the issuer. This
	// information should be gathered from the user with an explicit consent via
	// Sign in with Google integration
	// https://developers.google.com/identity/authentication. Please contact with
	// support before using Save Restrictions.
	RestrictToEmailSha256 string `json:"restrictToEmailSha256,omitempty"`
	// ForceSendFields is a list of field names (e.g. "RestrictToEmailSha256") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "RestrictToEmailSha256") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

SaveRestrictions: Defines restrictions on the object that will be verified during save. Note: this is an advanced feature, please contact Google for implementation support.

func (SaveRestrictions) MarshalJSON added in v0.190.0

func (s SaveRestrictions) MarshalJSON() ([]byte, error)

type SecurityAnimation

type SecurityAnimation struct {
	// AnimationType: Type of animation.
	//
	// Possible values:
	//   "ANIMATION_UNSPECIFIED"
	//   "FOIL_SHIMMER" - Default Foil & Shimmer animation
	//   "foilShimmer" - Legacy alias for `FOIL_SHIMMER`. Deprecated.
	AnimationType string `json:"animationType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AnimationType") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AnimationType") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (SecurityAnimation) MarshalJSON

func (s SecurityAnimation) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Eventticketclass *EventticketclassService

	Eventticketobject *EventticketobjectService

	Flightclass *FlightclassService

	Flightobject *FlightobjectService

	Genericclass *GenericclassService

	Genericobject *GenericobjectService

	Giftcardclass *GiftcardclassService

	Giftcardobject *GiftcardobjectService

	Issuer *IssuerService

	Jwt *JwtService

	Loyaltyclass *LoyaltyclassService

	Loyaltyobject *LoyaltyobjectService

	Media *MediaService

	Offerclass *OfferclassService

	Offerobject *OfferobjectService

	Permissions *PermissionsService

	Smarttap *SmarttapService

	Transitclass *TransitclassService

	Transitobject *TransitobjectService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SignUpInfo

type SignUpInfo struct {
	// ClassId: ID of the class the user can sign up for.
	ClassId string `json:"classId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ClassId") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ClassId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (SignUpInfo) MarshalJSON

func (s SignUpInfo) MarshalJSON() ([]byte, error)

type SmartTap

type SmartTap struct {
	// Id: The unique identifier for a smart tap. This value should follow the
	// format issuer ID.identifier where the former is issued by Google and latter
	// is the Smart Tap id. The Smart Tap id is a Base64 encoded string which
	// represents the id which was generated by the Google Pay app.
	Id string `json:"id,omitempty"`
	// Infos: Communication from merchant to user.
	Infos []*IssuerToUserInfo `json:"infos,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#smartTap".
	Kind string `json:"kind,omitempty"`
	// MerchantId: Smart Tap merchant ID of who engaged in the Smart Tap
	// interaction.
	MerchantId int64 `json:"merchantId,omitempty,string"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Id") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (SmartTap) MarshalJSON

func (s SmartTap) MarshalJSON() ([]byte, error)

type SmartTapMerchantData

type SmartTapMerchantData struct {
	// AuthenticationKeys: Available only to Smart Tap enabled partners. Contact
	// support for additional guidance.
	AuthenticationKeys []*AuthenticationKey `json:"authenticationKeys,omitempty"`
	// SmartTapMerchantId: Available only to Smart Tap enabled partners. Contact
	// support for additional guidance.
	SmartTapMerchantId int64 `json:"smartTapMerchantId,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "AuthenticationKeys") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AuthenticationKeys") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (SmartTapMerchantData) MarshalJSON

func (s SmartTapMerchantData) MarshalJSON() ([]byte, error)

type SmarttapInsertCall

type SmarttapInsertCall struct {
	// contains filtered or unexported fields
}

func (*SmarttapInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*SmarttapInsertCall) Do

Do executes the "walletobjects.smarttap.insert" call. Any non-2xx status code is an error. Response headers are in either *SmartTap.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SmarttapInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*SmarttapInsertCall) Header

func (c *SmarttapInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type SmarttapService

type SmarttapService struct {
	// contains filtered or unexported fields
}

func NewSmarttapService

func NewSmarttapService(s *Service) *SmarttapService

func (*SmarttapService) Insert

func (r *SmarttapService) Insert(smarttap *SmartTap) *SmarttapInsertCall

Insert: Inserts the smart tap.

type TemplateItem

type TemplateItem struct {
	// FirstValue: A reference to a field to display. If both `firstValue` and
	// `secondValue` are populated, they will both appear as one item with a slash
	// between them. For example, values A and B would be shown as "A / B".
	FirstValue *FieldSelector `json:"firstValue,omitempty"`
	// PredefinedItem: A predefined item to display. Only one of `firstValue` or
	// `predefinedItem` may be set.
	//
	// Possible values:
	//   "PREDEFINED_ITEM_UNSPECIFIED"
	//   "FREQUENT_FLYER_PROGRAM_NAME_AND_NUMBER"
	//   "frequentFlyerProgramNameAndNumber" - Legacy alias for
	// `FREQUENT_FLYER_PROGRAM_NAME_AND_NUMBER`. Deprecated.
	//   "FLIGHT_NUMBER_AND_OPERATING_FLIGHT_NUMBER"
	//   "flightNumberAndOperatingFlightNumber" - Legacy alias for
	// `FLIGHT_NUMBER_AND_OPERATING_FLIGHT_NUMBER`. Deprecated.
	PredefinedItem string `json:"predefinedItem,omitempty"`
	// SecondValue: A reference to a field to display. This may only be populated
	// if the `firstValue` field is populated.
	SecondValue *FieldSelector `json:"secondValue,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FirstValue") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FirstValue") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TemplateItem) MarshalJSON

func (s TemplateItem) MarshalJSON() ([]byte, error)

type TextModuleData

type TextModuleData struct {
	// Body: The body of the Text Module, which is defined as an uninterrupted
	// string. Recommended maximum length is 500 characters to ensure full string
	// is displayed on smaller screens.
	Body string `json:"body,omitempty"`
	// Header: The header of the Text Module. Recommended maximum length is 35
	// characters to ensure full string is displayed on smaller screens.
	Header string `json:"header,omitempty"`
	// Id: The ID associated with a text module. This field is here to enable ease
	// of management of text modules and referencing them in template overrides.
	// The ID should only include alphanumeric characters, '_', or '-'. It can not
	// include dots, as dots are used to separate fields within
	// FieldReference.fieldPaths in template overrides.
	Id string `json:"id,omitempty"`
	// LocalizedBody: Translated strings for the body. Recommended maximum length
	// is 500 characters to ensure full string is displayed on smaller screens.
	LocalizedBody *LocalizedString `json:"localizedBody,omitempty"`
	// LocalizedHeader: Translated strings for the header. Recommended maximum
	// length is 35 characters to ensure full string is displayed on smaller
	// screens.
	LocalizedHeader *LocalizedString `json:"localizedHeader,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Body") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TextModuleData: Data for Text module. All fields are optional. Header will be displayed if available, different types of bodies will be concatenated if they are defined.

func (TextModuleData) MarshalJSON

func (s TextModuleData) MarshalJSON() ([]byte, error)

type TicketCost

type TicketCost struct {
	// DiscountMessage: A message describing any kind of discount that was applied.
	DiscountMessage *LocalizedString `json:"discountMessage,omitempty"`
	// FaceValue: The face value of the ticket.
	FaceValue *Money `json:"faceValue,omitempty"`
	// PurchasePrice: The actual purchase price of the ticket, after tax and/or
	// discounts.
	PurchasePrice *Money `json:"purchasePrice,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DiscountMessage") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DiscountMessage") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TicketCost) MarshalJSON

func (s TicketCost) MarshalJSON() ([]byte, error)

type TicketLeg

type TicketLeg struct {
	// ArrivalDateTime: The date/time of arrival. This is an ISO 8601 extended
	// format date/time, with or without an offset. Time may be specified up to
	// nanosecond precision. Offsets may be specified with seconds precision (even
	// though offset seconds is not part of ISO 8601). For example:
	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
	// hours before UTC (same instant in time as the above example). If the event
	// were in New York, this would be the equivalent of Eastern Daylight Time
	// (EDT). Remember that offset varies in regions that observe Daylight Saving
	// Time (or Summer Time), depending on the time of the year.
	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
	// 19th hour of April 12th, 1985 with no offset information. The portion of the
	// date/time without the offset is considered the "local date/time". This
	// should be the local date/time at the destination station. For example, if
	// the event occurs at the 20th hour of June 5th, 2018 at the destination
	// station, the local date/time portion should be `2018-06-05T20:00:00`. If the
	// local date/time at the destination station is 4 hours before UTC, an offset
	// of `-04:00` may be appended. Without offset information, some rich features
	// may not be available.
	ArrivalDateTime string `json:"arrivalDateTime,omitempty"`
	// Carriage: The train or ship name/number that the passsenger needs to board.
	Carriage string `json:"carriage,omitempty"`
	// DepartureDateTime: The date/time of departure. This is required if there is
	// no validity time interval set on the transit object. This is an ISO 8601
	// extended format date/time, with or without an offset. Time may be specified
	// up to nanosecond precision. Offsets may be specified with seconds precision
	// (even though offset seconds is not part of ISO 8601). For example:
	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
	// hours before UTC (same instant in time as the above example). If the event
	// were in New York, this would be the equivalent of Eastern Daylight Time
	// (EDT). Remember that offset varies in regions that observe Daylight Saving
	// Time (or Summer Time), depending on the time of the year.
	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
	// 19th hour of April 12th, 1985 with no offset information. The portion of the
	// date/time without the offset is considered the "local date/time". This
	// should be the local date/time at the origin station. For example, if the
	// departure occurs at the 20th hour of June 5th, 2018 at the origin station,
	// the local date/time portion should be `2018-06-05T20:00:00`. If the local
	// date/time at the origin station is 4 hours before UTC, an offset of `-04:00`
	// may be appended. Without offset information, some rich features may not be
	// available.
	DepartureDateTime string `json:"departureDateTime,omitempty"`
	// DestinationName: The destination name.
	DestinationName *LocalizedString `json:"destinationName,omitempty"`
	// DestinationStationCode: The destination station code.
	DestinationStationCode string `json:"destinationStationCode,omitempty"`
	// FareName: Short description/name of the fare for this leg of travel. Eg
	// "Anytime Single Use".
	FareName *LocalizedString `json:"fareName,omitempty"`
	// OriginName: The name of the origin station. This is required if
	// `desinationName` is present or if `originStationCode` is not present.
	OriginName *LocalizedString `json:"originName,omitempty"`
	// OriginStationCode: The origin station code. This is required if
	// `destinationStationCode` is present or if `originName` is not present.
	OriginStationCode string `json:"originStationCode,omitempty"`
	// Platform: The platform or gate where the passenger can board the carriage.
	Platform string `json:"platform,omitempty"`
	// TicketSeat: The reserved seat for the passenger(s). If more than one seat is
	// to be specified then use the `ticketSeats` field instead. Both `ticketSeat`
	// and `ticketSeats` may not be set.
	TicketSeat *TicketSeat `json:"ticketSeat,omitempty"`
	// TicketSeats: The reserved seat for the passenger(s). If only one seat is to
	// be specified then use the `ticketSeat` field instead. Both `ticketSeat` and
	// `ticketSeats` may not be set.
	TicketSeats []*TicketSeat `json:"ticketSeats,omitempty"`
	// TransitOperatorName: The name of the transit operator that is operating this
	// leg of a trip.
	TransitOperatorName *LocalizedString `json:"transitOperatorName,omitempty"`
	// TransitTerminusName: Terminus station or destination of the train/bus/etc.
	TransitTerminusName *LocalizedString `json:"transitTerminusName,omitempty"`
	// Zone: The zone of boarding within the platform.
	Zone string `json:"zone,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ArrivalDateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ArrivalDateTime") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TicketLeg) MarshalJSON

func (s TicketLeg) MarshalJSON() ([]byte, error)

type TicketRestrictions

type TicketRestrictions struct {
	// OtherRestrictions: Extra restrictions that don't fall under the "route" or
	// "time" categories.
	OtherRestrictions *LocalizedString `json:"otherRestrictions,omitempty"`
	// RouteRestrictions: Restrictions about routes that may be taken. For example,
	// this may be the string "Reserved CrossCountry trains only".
	RouteRestrictions *LocalizedString `json:"routeRestrictions,omitempty"`
	// RouteRestrictionsDetails: More details about the above `routeRestrictions`.
	RouteRestrictionsDetails *LocalizedString `json:"routeRestrictionsDetails,omitempty"`
	// TimeRestrictions: Restrictions about times this ticket may be used.
	TimeRestrictions *LocalizedString `json:"timeRestrictions,omitempty"`
	// ForceSendFields is a list of field names (e.g. "OtherRestrictions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "OtherRestrictions") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TicketRestrictions) MarshalJSON

func (s TicketRestrictions) MarshalJSON() ([]byte, error)

type TicketSeat

type TicketSeat struct {
	// Coach: The identifier of the train car or coach in which the ticketed seat
	// is located. Eg. "10"
	Coach string `json:"coach,omitempty"`
	// CustomFareClass: A custome fare class to be used if no `fareClass` applies.
	// Both `fareClass` and `customFareClass` may not be set.
	CustomFareClass *LocalizedString `json:"customFareClass,omitempty"`
	// FareClass: The fare class of the ticketed seat.
	//
	// Possible values:
	//   "FARE_CLASS_UNSPECIFIED"
	//   "ECONOMY"
	//   "economy" - Legacy alias for `ECONOMY`. Deprecated.
	//   "FIRST"
	//   "first" - Legacy alias for `FIRST`. Deprecated.
	//   "BUSINESS"
	//   "business" - Legacy alias for `BUSINESS`. Deprecated.
	FareClass string `json:"fareClass,omitempty"`
	// Seat: The identifier of where the ticketed seat is located. Eg. "42". If
	// there is no specific identifier, use `seatAssigment` instead.
	Seat string `json:"seat,omitempty"`
	// SeatAssignment: The passenger's seat assignment. Eg. "no specific seat". To
	// be used when there is no specific identifier to use in `seat`.
	SeatAssignment *LocalizedString `json:"seatAssignment,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Coach") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Coach") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TicketSeat) MarshalJSON

func (s TicketSeat) MarshalJSON() ([]byte, error)

type TimeInterval

type TimeInterval struct {
	// End: End time of the interval. Offset is not required. If an offset is
	// provided and `start` time is set, `start` must also include an offset.
	End *DateTime `json:"end,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#timeInterval".
	Kind string `json:"kind,omitempty"`
	// Start: Start time of the interval. Offset is not required. If an offset is
	// provided and `end` time is set, `end` must also include an offset.
	Start *DateTime `json:"start,omitempty"`
	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "End") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TimeInterval) MarshalJSON

func (s TimeInterval) MarshalJSON() ([]byte, error)

type TransitClass

type TransitClass struct {
	// ActivationOptions: Activation options for an activatable ticket.
	ActivationOptions *ActivationOptions `json:"activationOptions,omitempty"`
	// AllowMultipleUsersPerObject: Deprecated. Use
	// `multipleDevicesAndHoldersAllowedStatus` instead.
	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// object that will be used instead.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// CallbackOptions: Callback options to be used to call the issuer back for
	// every save/delete of an object for this class by the end-user. All objects
	// of this class are eligible for the callback.
	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
	// ClassTemplateInfo: Template information about how the class should be
	// displayed. If unset, Google will fallback to a default set of fields to
	// display.
	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
	// CountryCode: Country code used to display the card's country (when the user
	// is not in that country), as well as to display localized content when
	// content is not available in the user's locale.
	CountryCode string `json:"countryCode,omitempty"`
	// CustomCarriageLabel: A custom label to use for the carriage value
	// (`transitObject.ticketLeg.carriage`).
	CustomCarriageLabel *LocalizedString `json:"customCarriageLabel,omitempty"`
	// CustomCoachLabel: A custom label to use for the coach value
	// (`transitObject.ticketLeg.ticketSeat.coach`).
	CustomCoachLabel *LocalizedString `json:"customCoachLabel,omitempty"`
	// CustomConcessionCategoryLabel: A custom label to use for the transit
	// concession category value (`transitObject.concessionCategory`).
	CustomConcessionCategoryLabel *LocalizedString `json:"customConcessionCategoryLabel,omitempty"`
	// CustomConfirmationCodeLabel: A custom label to use for the confirmation code
	// value (`transitObject.purchaseDetails.confirmationCode`).
	CustomConfirmationCodeLabel *LocalizedString `json:"customConfirmationCodeLabel,omitempty"`
	// CustomDiscountMessageLabel: A custom label to use for the transit discount
	// message value (`transitObject.purchaseDetails.ticketCost.discountMessage`).
	CustomDiscountMessageLabel *LocalizedString `json:"customDiscountMessageLabel,omitempty"`
	// CustomFareClassLabel: A custom label to use for the fare class value
	// (`transitObject.ticketLeg.ticketSeat.fareClass`).
	CustomFareClassLabel *LocalizedString `json:"customFareClassLabel,omitempty"`
	// CustomFareNameLabel: A custom label to use for the transit fare name value
	// (`transitObject.ticketLeg.fareName`).
	CustomFareNameLabel *LocalizedString `json:"customFareNameLabel,omitempty"`
	// CustomOtherRestrictionsLabel: A custom label to use for the other
	// restrictions value (`transitObject.ticketRestrictions.otherRestrictions`).
	CustomOtherRestrictionsLabel *LocalizedString `json:"customOtherRestrictionsLabel,omitempty"`
	// CustomPlatformLabel: A custom label to use for the boarding platform value
	// (`transitObject.ticketLeg.platform`).
	CustomPlatformLabel *LocalizedString `json:"customPlatformLabel,omitempty"`
	// CustomPurchaseFaceValueLabel: A custom label to use for the purchase face
	// value (`transitObject.purchaseDetails.ticketCost.faceValue`).
	CustomPurchaseFaceValueLabel *LocalizedString `json:"customPurchaseFaceValueLabel,omitempty"`
	// CustomPurchasePriceLabel: A custom label to use for the purchase price value
	// (`transitObject.purchaseDetails.ticketCost.purchasePrice`).
	CustomPurchasePriceLabel *LocalizedString `json:"customPurchasePriceLabel,omitempty"`
	// CustomPurchaseReceiptNumberLabel: A custom label to use for the purchase
	// receipt number value
	// (`transitObject.purchaseDetails.purchaseReceiptNumber`).
	CustomPurchaseReceiptNumberLabel *LocalizedString `json:"customPurchaseReceiptNumberLabel,omitempty"`
	// CustomRouteRestrictionsDetailsLabel: A custom label to use for the route
	// restrictions details value
	// (`transitObject.ticketRestrictions.routeRestrictionsDetails`).
	CustomRouteRestrictionsDetailsLabel *LocalizedString `json:"customRouteRestrictionsDetailsLabel,omitempty"`
	// CustomRouteRestrictionsLabel: A custom label to use for the route
	// restrictions value (`transitObject.ticketRestrictions.routeRestrictions`).
	CustomRouteRestrictionsLabel *LocalizedString `json:"customRouteRestrictionsLabel,omitempty"`
	// CustomSeatLabel: A custom label to use for the seat location value
	// (`transitObject.ticketLeg.ticketSeat.seat`).
	CustomSeatLabel *LocalizedString `json:"customSeatLabel,omitempty"`
	// CustomTicketNumberLabel: A custom label to use for the ticket number value
	// (`transitObject.ticketNumber`).
	CustomTicketNumberLabel *LocalizedString `json:"customTicketNumberLabel,omitempty"`
	// CustomTimeRestrictionsLabel: A custom label to use for the time restrictions
	// details value (`transitObject.ticketRestrictions.timeRestrictions`).
	CustomTimeRestrictionsLabel *LocalizedString `json:"customTimeRestrictionsLabel,omitempty"`
	// CustomTransitTerminusNameLabel: A custom label to use for the transit
	// terminus name value (`transitObject.ticketLeg.transitTerminusName`).
	CustomTransitTerminusNameLabel *LocalizedString `json:"customTransitTerminusNameLabel,omitempty"`
	// CustomZoneLabel: A custom label to use for the boarding zone value
	// (`transitObject.ticketLeg.zone`).
	CustomZoneLabel *LocalizedString `json:"customZoneLabel,omitempty"`
	// EnableSingleLegItinerary: Controls the display of the single-leg itinerary
	// for this class. By default, an itinerary will only display for multi-leg
	// trips.
	EnableSingleLegItinerary bool `json:"enableSingleLegItinerary,omitempty"`
	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
	// also be set up correctly in order for a pass to support Smart Tap.
	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, nothing will be displayed. The image will display at 100% width.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// HomepageUri: The URI of your application's home page. Populating the URI in
	// this field results in the exact same behavior as populating an URI in
	// linksModuleData (when an object is rendered, a link to the homepage is shown
	// in what would usually be thought of as the linksModuleData section of the
	// object).
	HomepageUri *Uri `json:"homepageUri,omitempty"`
	// Id: Required. The unique identifier for a class. This ID must be unique
	// across all classes from an issuer. This value should follow the format
	// issuer ID. identifier where the former is issued by Google and latter is
	// chosen by you. Your unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// IssuerName: Required. The issuer name. Recommended maximum length is 20
	// characters to ensure full string is displayed on smaller screens.
	IssuerName string `json:"issuerName,omitempty"`
	// LanguageOverride: If this field is present, transit tickets served to a
	// user's device will always be in this language. Represents the BCP 47
	// language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
	LanguageOverride string `json:"languageOverride,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the object, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
	// maximum length is 20 characters to ensure full string is displayed on
	// smaller screens.
	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// card detail view of the app.
	Logo *Image `json:"logo,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
	// and devices will save the same object referencing this class.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified preference.
	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
	// saved by any number of different users, and on any number of devices.
	// Partners typically use this setup for passes that do not need to be
	// restricted to a single user or pinned to a single device.
	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
	// user can view and use it on multiple of their devices. Once the first user
	// saves the object, no other user will be allowed to view or save it.
	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
	// single device. Intended for use by select partners in limited circumstances.
	// An example use case is a transit ticket that should be "device pinned",
	// meaning it can be saved, viewed and used only by a single user on a single
	// device. Contact support for additional information.
	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
	// over Smart Tap. Redemption issuers are identified by their issuer ID.
	// Redemption issuers must have at least one Smart Tap key configured. The
	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
	// be set up correctly in order for a pass to support Smart Tap.
	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
	// Review: The review comments set by the platform when a class is marked
	// `approved` or `rejected`.
	Review *Review `json:"review,omitempty"`
	// ReviewStatus: Required. The status of the class. This field can be set to
	// `draft` or `underReview` using the insert, patch, or update API calls. Once
	// the review state is changed from `draft` it may not be changed back to
	// `draft`. You should keep this field to `draft` when the class is under
	// development. A `draft` class cannot be used to create any object. You should
	// set this field to `underReview` when you believe the class is ready for use.
	// The platform will automatically set this field to `approved` and it can be
	// immediately used to create or migrate objects. When updating an already
	// `approved` class you should keep setting this field to `underReview`.
	//
	// Possible values:
	//   "REVIEW_STATUS_UNSPECIFIED"
	//   "UNDER_REVIEW"
	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
	//   "APPROVED"
	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
	//   "REJECTED"
	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
	//   "DRAFT"
	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
	ReviewStatus string `json:"reviewStatus,omitempty"`
	// SecurityAnimation: Optional information about the security animation. If
	// this is set a security animation will be rendered on pass details.
	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// TransitOperatorName: The name of the transit operator.
	TransitOperatorName *LocalizedString `json:"transitOperatorName,omitempty"`
	// TransitType: Required. The type of transit this class represents, such as
	// "bus".
	//
	// Possible values:
	//   "TRANSIT_TYPE_UNSPECIFIED"
	//   "BUS"
	//   "bus" - Legacy alias for `BUS`. Deprecated.
	//   "RAIL"
	//   "rail" - Legacy alias for `RAIL`. Deprecated.
	//   "TRAM"
	//   "tram" - Legacy alias for `TRAM`. Deprecated.
	//   "FERRY"
	//   "ferry" - Legacy alias for `FERRY`. Deprecated.
	//   "OTHER"
	//   "other" - Legacy alias for `OTHER`. Deprecated.
	TransitType string `json:"transitType,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`
	// ViewUnlockRequirement: View Unlock Requirement options for the transit
	// ticket.
	//
	// Possible values:
	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
	// UNLOCK_NOT_REQUIRED.
	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
	// ViewUnlockRequirement is not set.
	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
	// time the pass is viewed. If the user removes their device lock after saving
	// the pass, then they will be prompted to create a device lock before the pass
	// can be viewed.
	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
	// Watermark: Watermark image to display on the user's device.
	Watermark *Image `json:"watermark,omitempty"`
	// place of the logo in the top left of the card view.
	WideLogo *Image `json:"wideLogo,omitempty"`
	// WordMark: Deprecated.
	WordMark *Image `json:"wordMark,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "ActivationOptions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ActivationOptions") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TransitClass) MarshalJSON

func (s TransitClass) MarshalJSON() ([]byte, error)

type TransitClassAddMessageResponse

type TransitClassAddMessageResponse struct {
	// Resource: The updated TransitClass resource.
	Resource *TransitClass `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TransitClassAddMessageResponse) MarshalJSON

func (s TransitClassAddMessageResponse) MarshalJSON() ([]byte, error)

type TransitClassListResponse

type TransitClassListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*TransitClass `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TransitClassListResponse) MarshalJSON

func (s TransitClassListResponse) MarshalJSON() ([]byte, error)

type TransitObject

type TransitObject struct {
	// ActivationStatus: The activation status for the object. Required if the
	// class has `activationOptions` set.
	ActivationStatus *ActivationStatus `json:"activationStatus,omitempty"`
	// AppLinkData: Optional app or website link that will be displayed as a button
	// on the front of the pass. If AppLinkData is provided for the corresponding
	// class only object AppLinkData will be displayed.
	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
	// Barcode: The barcode type and value.
	Barcode *Barcode `json:"barcode,omitempty"`
	// ClassId: Required. The class associated with this object. The class must be
	// of the same type as this object, must already exist, and must be approved.
	// Class IDs should follow the format issuer ID.identifier where the former is
	// issued by Google and latter is chosen by you.
	ClassId string `json:"classId,omitempty"`
	// ClassReference: A copy of the inherited fields of the parent class. These
	// fields are retrieved during a GET.
	ClassReference *TransitClass `json:"classReference,omitempty"`
	// ConcessionCategory: The concession category for the ticket.
	//
	// Possible values:
	//   "CONCESSION_CATEGORY_UNSPECIFIED"
	//   "ADULT"
	//   "adult" - Legacy alias for `ADULT`. Deprecated.
	//   "CHILD"
	//   "child" - Legacy alias for `CHILD`. Deprecated.
	//   "SENIOR"
	//   "senior" - Legacy alias for `SENIOR`. Deprecated.
	ConcessionCategory string `json:"concessionCategory,omitempty"`
	// CustomConcessionCategory: A custom concession category to use when
	// `concessionCategory` does not provide the right option. Both
	// `concessionCategory` and `customConcessionCategory` may not be set.
	CustomConcessionCategory *LocalizedString `json:"customConcessionCategory,omitempty"`
	// CustomTicketStatus: A custom status to use for the ticket status value when
	// `ticketStatus` does not provide the right option. Both `ticketStatus` and
	// `customTicketStatus` may not be set.
	CustomTicketStatus *LocalizedString `json:"customTicketStatus,omitempty"`
	// DeviceContext: Device context associated with the object.
	DeviceContext *DeviceContext `json:"deviceContext,omitempty"`
	// DisableExpirationNotification: Indicates if notifications should explicitly
	// be suppressed. If this field is set to true, regardless of the `messages`
	// field, expiration notifications to the user will be suppressed. By default,
	// this field is set to false. Currently, this can only be set for offers.
	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
	// GroupingInfo: Information that controls how passes are grouped together.
	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
	// HasLinkedDevice: Whether this object is currently linked to a single device.
	// This field is set by the platform when a user saves the object, linking it
	// to their device. Intended for use by select partners. Contact support for
	// additional information.
	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
	// HasUsers: Indicates if the object has users. This field is set by the
	// platform.
	HasUsers bool `json:"hasUsers,omitempty"`
	// HeroImage: Optional banner image displayed on the front of the card. If none
	// is present, hero image of the class, if present, will be displayed. If hero
	// image of the class is also not present, nothing will be displayed.
	HeroImage *Image `json:"heroImage,omitempty"`
	// HexBackgroundColor: The background color for the card. If not set the
	// dominant color of the hero image is used, and if no hero image is set, the
	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
	// of the RGB triplet which is #rgb, such as `#fc0`.
	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
	// Id: Required. The unique identifier for an object. This ID must be unique
	// across all objects from an issuer. This value should follow the format
	// issuer ID.identifier where the former is issued by Google and latter is
	// chosen by you. The unique identifier should only include alphanumeric
	// characters, '.', '_', or '-'.
	Id string `json:"id,omitempty"`
	// ImageModulesData: Image module data. The maximum number of these fields
	// displayed is 1 from object level and 1 for class object level.
	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
	// InfoModuleData: Deprecated. Use textModulesData instead.
	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
	// LinksModuleData: Links module data. If links module data is also defined on
	// the class, both will be displayed.
	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
	// Locations: Note: This field is currently not supported to trigger geo
	// notifications.
	Locations []*LatLongPoint `json:"locations,omitempty"`
	// Messages: An array of messages displayed in the app. All users of this
	// object will receive its associated messages. The maximum number of these
	// fields is 10.
	Messages []*Message `json:"messages,omitempty"`
	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
	// screenshot behaviors.
	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
	// PassengerNames: The name(s) of the passengers the ticket is assigned to. The
	// above `passengerType` field is meant to give Google context on this field.
	PassengerNames string `json:"passengerNames,omitempty"`
	// PassengerType: The number of passengers.
	//
	// Possible values:
	//   "PASSENGER_TYPE_UNSPECIFIED"
	//   "SINGLE_PASSENGER"
	//   "singlePassenger" - Legacy alias for `SINGLE_PASSENGER`. Deprecated.
	//   "MULTIPLE_PASSENGERS"
	//   "multiplePassengers" - Legacy alias for `MULTIPLE_PASSENGERS`. Deprecated.
	PassengerType string `json:"passengerType,omitempty"`
	// PurchaseDetails: Purchase details for this ticket.
	PurchaseDetails *PurchaseDetails `json:"purchaseDetails,omitempty"`
	// RotatingBarcode: The rotating barcode type and value.
	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
	// SaveRestrictions: Restrictions on the object that needs to be verified
	// before the user tries to save the pass. Note that this restrictions will
	// only be applied during save time. If the restrictions changed after a user
	// saves the pass, the new restrictions will not be applied to an already saved
	// pass.
	SaveRestrictions *SaveRestrictions `json:"saveRestrictions,omitempty"`
	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
	// certified terminal over NFC for this object. The class level fields
	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
	// order for the pass to support Smart Tap. Only ASCII characters are
	// supported.
	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
	// State: Required. The state of the object. This field is used to determine
	// how an object is displayed in the app. For example, an `inactive` object is
	// moved to the "Expired passes" section.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED"
	//   "ACTIVE" - Object is active and displayed to with other active objects.
	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
	//   "COMPLETED"
	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
	//   "INACTIVE"
	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
	State string `json:"state,omitempty"`
	// TextModulesData: Text module data. If text module data is also defined on
	// the class, both will be displayed. The maximum number of these fields
	// displayed is 10 from the object and 10 from the class.
	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
	// TicketLeg: A single ticket leg contains departure and arrival information
	// along with boarding and seating information. If more than one leg is to be
	// specified then use the `ticketLegs` field instead. Both `ticketLeg` and
	// `ticketLegs` may not be set.
	TicketLeg *TicketLeg `json:"ticketLeg,omitempty"`
	// TicketLegs: Each ticket may contain one or more legs. Each leg contains
	// departure and arrival information along with boarding and seating
	// information. If only one leg is to be specified then use the `ticketLeg`
	// field instead. Both `ticketLeg` and `ticketLegs` may not be set.
	TicketLegs []*TicketLeg `json:"ticketLegs,omitempty"`
	// TicketNumber: The number of the ticket. This is a unique identifier for the
	// ticket in the transit operator's system.
	TicketNumber string `json:"ticketNumber,omitempty"`
	// TicketRestrictions: Information about what kind of restrictions there are on
	// using this ticket. For example, which days of the week it must be used, or
	// which routes are allowed to be taken.
	TicketRestrictions *TicketRestrictions `json:"ticketRestrictions,omitempty"`
	// TicketStatus: The status of the ticket. For states which affect display, use
	// the `state` field instead.
	//
	// Possible values:
	//   "TICKET_STATUS_UNSPECIFIED"
	//   "USED"
	//   "used" - Legacy alias for `USED`. Deprecated.
	//   "REFUNDED"
	//   "refunded" - Legacy alias for `REFUNDED`. Deprecated.
	//   "EXCHANGED"
	//   "exchanged" - Legacy alias for `EXCHANGED`. Deprecated.
	TicketStatus string `json:"ticketStatus,omitempty"`
	// TripId: This id is used to group tickets together if the user has saved
	// multiple tickets for the same trip.
	TripId string `json:"tripId,omitempty"`
	// TripType: Required. The type of trip this transit object represents. Used to
	// determine the pass title and/or which symbol to use between the origin and
	// destination.
	//
	// Possible values:
	//   "TRIP_TYPE_UNSPECIFIED"
	//   "ROUND_TRIP"
	//   "roundTrip" - Legacy alias for `ROUND_TRIP`. Deprecated.
	//   "ONE_WAY"
	//   "oneWay" - Legacy alias for `ONE_WAY`. Deprecated.
	TripType string `json:"tripType,omitempty"`
	// ValidTimeInterval: The time period this object will be `active` and object
	// can be used. An object's state will be changed to `expired` when this time
	// period has passed.
	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
	// Version: Deprecated
	Version int64 `json:"version,omitempty,string"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "ActivationStatus") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ActivationStatus") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TransitObject) MarshalJSON

func (s TransitObject) MarshalJSON() ([]byte, error)

type TransitObjectAddMessageResponse

type TransitObjectAddMessageResponse struct {
	// Resource: The updated TransitObject resource.
	Resource *TransitObject `json:"resource,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Resource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Resource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TransitObjectAddMessageResponse) MarshalJSON

func (s TransitObjectAddMessageResponse) MarshalJSON() ([]byte, error)

type TransitObjectListResponse

type TransitObjectListResponse struct {
	// Pagination: Pagination of the response.
	Pagination *Pagination `json:"pagination,omitempty"`
	// Resources: Resources corresponding to the list request.
	Resources []*TransitObject `json:"resources,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Pagination") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Pagination") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TransitObjectListResponse) MarshalJSON

func (s TransitObjectListResponse) MarshalJSON() ([]byte, error)

type TransitObjectUploadRotatingBarcodeValuesRequest

type TransitObjectUploadRotatingBarcodeValuesRequest struct {
	// Blob: A reference to the rotating barcode values payload that was uploaded.
	Blob *Media `json:"blob,omitempty"`
	// MediaRequestInfo: Extra information about the uploaded media.
	MediaRequestInfo *MediaRequestInfo `json:"mediaRequestInfo,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Blob") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Blob") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TransitObjectUploadRotatingBarcodeValuesRequest: Request to upload rotating barcode values.

func (TransitObjectUploadRotatingBarcodeValuesRequest) MarshalJSON

type TransitObjectUploadRotatingBarcodeValuesResponse

type TransitObjectUploadRotatingBarcodeValuesResponse struct {
	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
}

TransitObjectUploadRotatingBarcodeValuesResponse: Response for uploading rotating barcode values.

type TransitclassAddmessageCall

type TransitclassAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*TransitclassAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitclassAddmessageCall) Do

Do executes the "walletobjects.transitclass.addmessage" call. Any non-2xx status code is an error. Response headers are in either *TransitClassAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitclassAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitclassAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TransitclassGetCall

type TransitclassGetCall struct {
	// contains filtered or unexported fields
}

func (*TransitclassGetCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitclassGetCall) Do

Do executes the "walletobjects.transitclass.get" call. Any non-2xx status code is an error. Response headers are in either *TransitClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitclassGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitclassGetCall) Header

func (c *TransitclassGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*TransitclassGetCall) IfNoneMatch

func (c *TransitclassGetCall) IfNoneMatch(entityTag string) *TransitclassGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type TransitclassInsertCall

type TransitclassInsertCall struct {
	// contains filtered or unexported fields
}

func (*TransitclassInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitclassInsertCall) Do

Do executes the "walletobjects.transitclass.insert" call. Any non-2xx status code is an error. Response headers are in either *TransitClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitclassInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitclassInsertCall) Header

func (c *TransitclassInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TransitclassListCall

type TransitclassListCall struct {
	// contains filtered or unexported fields
}

func (*TransitclassListCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitclassListCall) Do

Do executes the "walletobjects.transitclass.list" call. Any non-2xx status code is an error. Response headers are in either *TransitClassListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitclassListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitclassListCall) Header

func (c *TransitclassListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*TransitclassListCall) IfNoneMatch

func (c *TransitclassListCall) IfNoneMatch(entityTag string) *TransitclassListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*TransitclassListCall) IssuerId

func (c *TransitclassListCall) IssuerId(issuerId int64) *TransitclassListCall

IssuerId sets the optional parameter "issuerId": The ID of the issuer authorized to list classes.

func (*TransitclassListCall) MaxResults

func (c *TransitclassListCall) MaxResults(maxResults int64) *TransitclassListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*TransitclassListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes.

type TransitclassPatchCall

type TransitclassPatchCall struct {
	// contains filtered or unexported fields
}

func (*TransitclassPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitclassPatchCall) Do

Do executes the "walletobjects.transitclass.patch" call. Any non-2xx status code is an error. Response headers are in either *TransitClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitclassPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitclassPatchCall) Header

func (c *TransitclassPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TransitclassService

type TransitclassService struct {
	// contains filtered or unexported fields
}

func NewTransitclassService

func NewTransitclassService(s *Service) *TransitclassService

func (*TransitclassService) Addmessage

func (r *TransitclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *TransitclassAddmessageCall

Addmessage: Adds a message to the transit class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*TransitclassService) Get

func (r *TransitclassService) Get(resourceId string) *TransitclassGetCall

Get: Returns the transit class with the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*TransitclassService) Insert

func (r *TransitclassService) Insert(transitclass *TransitClass) *TransitclassInsertCall

Insert: Inserts a transit class with the given ID and properties.

func (*TransitclassService) List

List: Returns a list of all transit classes for a given issuer ID.

func (*TransitclassService) Patch

func (r *TransitclassService) Patch(resourceId string, transitclass *TransitClass) *TransitclassPatchCall

Patch: Updates the transit class referenced by the given class ID. This method supports patch semantics.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*TransitclassService) Update

func (r *TransitclassService) Update(resourceId string, transitclass *TransitClass) *TransitclassUpdateCall

Update: Updates the transit class referenced by the given class ID.

  • resourceId: The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type TransitclassUpdateCall

type TransitclassUpdateCall struct {
	// contains filtered or unexported fields
}

func (*TransitclassUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitclassUpdateCall) Do

Do executes the "walletobjects.transitclass.update" call. Any non-2xx status code is an error. Response headers are in either *TransitClass.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitclassUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitclassUpdateCall) Header

func (c *TransitclassUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TransitobjectAddmessageCall

type TransitobjectAddmessageCall struct {
	// contains filtered or unexported fields
}

func (*TransitobjectAddmessageCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitobjectAddmessageCall) Do

Do executes the "walletobjects.transitobject.addmessage" call. Any non-2xx status code is an error. Response headers are in either *TransitObjectAddMessageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitobjectAddmessageCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitobjectAddmessageCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TransitobjectGetCall

type TransitobjectGetCall struct {
	// contains filtered or unexported fields
}

func (*TransitobjectGetCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitobjectGetCall) Do

Do executes the "walletobjects.transitobject.get" call. Any non-2xx status code is an error. Response headers are in either *TransitObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitobjectGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitobjectGetCall) Header

func (c *TransitobjectGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*TransitobjectGetCall) IfNoneMatch

func (c *TransitobjectGetCall) IfNoneMatch(entityTag string) *TransitobjectGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type TransitobjectInsertCall

type TransitobjectInsertCall struct {
	// contains filtered or unexported fields
}

func (*TransitobjectInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitobjectInsertCall) Do

Do executes the "walletobjects.transitobject.insert" call. Any non-2xx status code is an error. Response headers are in either *TransitObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitobjectInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitobjectInsertCall) Header

func (c *TransitobjectInsertCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TransitobjectListCall

type TransitobjectListCall struct {
	// contains filtered or unexported fields
}

func (*TransitobjectListCall) ClassId

func (c *TransitobjectListCall) ClassId(classId string) *TransitobjectListCall

ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.

func (*TransitobjectListCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitobjectListCall) Do

Do executes the "walletobjects.transitobject.list" call. Any non-2xx status code is an error. Response headers are in either *TransitObjectListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitobjectListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitobjectListCall) Header

func (c *TransitobjectListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*TransitobjectListCall) IfNoneMatch

func (c *TransitobjectListCall) IfNoneMatch(entityTag string) *TransitobjectListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*TransitobjectListCall) MaxResults

func (c *TransitobjectListCall) MaxResults(maxResults int64) *TransitobjectListCall

MaxResults sets the optional parameter "maxResults": Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined.

func (*TransitobjectListCall) Token

Token sets the optional parameter "token": Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects.

type TransitobjectPatchCall

type TransitobjectPatchCall struct {
	// contains filtered or unexported fields
}

func (*TransitobjectPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitobjectPatchCall) Do

Do executes the "walletobjects.transitobject.patch" call. Any non-2xx status code is an error. Response headers are in either *TransitObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitobjectPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitobjectPatchCall) Header

func (c *TransitobjectPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TransitobjectService

type TransitobjectService struct {
	// contains filtered or unexported fields
}

func NewTransitobjectService

func NewTransitobjectService(s *Service) *TransitobjectService

func (*TransitobjectService) Addmessage

func (r *TransitobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *TransitobjectAddmessageCall

Addmessage: Adds a message to the transit object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*TransitobjectService) Get

func (r *TransitobjectService) Get(resourceId string) *TransitobjectGetCall

Get: Returns the transit object with the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*TransitobjectService) Insert

func (r *TransitobjectService) Insert(transitobject *TransitObject) *TransitobjectInsertCall

Insert: Inserts an transit object with the given ID and properties.

func (*TransitobjectService) List

List: Returns a list of all transit objects for a given issuer ID.

func (*TransitobjectService) Patch

func (r *TransitobjectService) Patch(resourceId string, transitobject *TransitObject) *TransitobjectPatchCall

Patch: Updates the transit object referenced by the given object ID. This method supports patch semantics.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

func (*TransitobjectService) Update

func (r *TransitobjectService) Update(resourceId string, transitobject *TransitObject) *TransitobjectUpdateCall

Update: Updates the transit object referenced by the given object ID.

  • resourceId: The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

type TransitobjectUpdateCall

type TransitobjectUpdateCall struct {
	// contains filtered or unexported fields
}

func (*TransitobjectUpdateCall) Context

Context sets the context to be used in this call's Do method.

func (*TransitobjectUpdateCall) Do

Do executes the "walletobjects.transitobject.update" call. Any non-2xx status code is an error. Response headers are in either *TransitObject.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TransitobjectUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*TransitobjectUpdateCall) Header

func (c *TransitobjectUpdateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type TranslatedString

type TranslatedString struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#translatedString".
	Kind string `json:"kind,omitempty"`
	// Language: Represents the BCP 47 language tag. Example values are "en-US",
	// "en-GB", "de", or "de-AT".
	Language string `json:"language,omitempty"`
	// Value: The UTF-8 encoded translated string.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Kind") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TranslatedString) MarshalJSON

func (s TranslatedString) MarshalJSON() ([]byte, error)

type UpcomingNotification

type UpcomingNotification struct {
	// EnableNotification: Indicates if the object needs to have upcoming
	// notification enabled.
	EnableNotification bool `json:"enableNotification,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EnableNotification") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EnableNotification") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

UpcomingNotification: Indicates that the issuer would like Google Wallet to send an upcoming card validity notification 1 day before card becomes valid/usable.

func (UpcomingNotification) MarshalJSON

func (s UpcomingNotification) MarshalJSON() ([]byte, error)

type Uri

type Uri struct {
	// Description: The URI's title appearing in the app as text. Recommended
	// maximum is 20 characters to ensure full string is displayed on smaller
	// screens. Note that in some contexts this text is not used, such as when
	// `description` is part of an image.
	Description string `json:"description,omitempty"`
	// Id: The ID associated with a uri. This field is here to enable ease of
	// management of uris.
	Id string `json:"id,omitempty"`
	// Kind: Identifies what kind of resource this is. Value: the fixed string
	// "walletobjects#uri".
	Kind string `json:"kind,omitempty"`
	// LocalizedDescription: Translated strings for the description. Recommended
	// maximum is 20 characters to ensure full string is displayed on smaller
	// screens.
	LocalizedDescription *LocalizedString `json:"localizedDescription,omitempty"`
	// Uri: The location of a web page, image, or other resource. URIs in the
	// `LinksModuleData` module can have different prefixes indicating the type of
	// URI (a link to a web page, a link to a map, a telephone number, or an email
	// address). URIs must have a scheme.
	Uri string `json:"uri,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Description") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (Uri) MarshalJSON

func (s Uri) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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