Documentation ¶
Overview ¶
Package walletobjects provides access to the Google Pay Passes API.
For product documentation, see: https://developers.google.com/pay/passes
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 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 option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) walletobjectsService, err := walletobjects.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type AddMessageRequest
- type AirportInfo
- type AppLinkData
- type AppLinkDataAppLinkInfo
- type AppLinkDataAppLinkInfoAppTarget
- type AuthenticationKey
- type Barcode
- type BarcodeSectionDetail
- type BoardingAndSeatingInfo
- type BoardingAndSeatingPolicy
- type CallbackOptions
- type CardBarcodeSectionDetails
- type CardRowOneItem
- type CardRowTemplateInfo
- type CardRowThreeItems
- type CardRowTwoItems
- type CardTemplateOverride
- type ClassTemplateInfo
- type DateTime
- type DetailsItemInfo
- type DetailsTemplateOverride
- type DiscoverableProgram
- type DiscoverableProgramMerchantSigninInfo
- type DiscoverableProgramMerchantSignupInfo
- type EventDateTime
- type EventReservationInfo
- type EventSeat
- type EventTicketClass
- type EventTicketClassAddMessageResponse
- type EventTicketClassListResponse
- type EventTicketObject
- type EventTicketObjectAddMessageResponse
- type EventTicketObjectListResponse
- type EventVenue
- type EventticketclassAddmessageCall
- func (c *EventticketclassAddmessageCall) Context(ctx context.Context) *EventticketclassAddmessageCall
- func (c *EventticketclassAddmessageCall) Do(opts ...googleapi.CallOption) (*EventTicketClassAddMessageResponse, error)
- func (c *EventticketclassAddmessageCall) Fields(s ...googleapi.Field) *EventticketclassAddmessageCall
- func (c *EventticketclassAddmessageCall) Header() http.Header
- type EventticketclassGetCall
- func (c *EventticketclassGetCall) Context(ctx context.Context) *EventticketclassGetCall
- func (c *EventticketclassGetCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
- func (c *EventticketclassGetCall) Fields(s ...googleapi.Field) *EventticketclassGetCall
- func (c *EventticketclassGetCall) Header() http.Header
- func (c *EventticketclassGetCall) IfNoneMatch(entityTag string) *EventticketclassGetCall
- type EventticketclassInsertCall
- func (c *EventticketclassInsertCall) Context(ctx context.Context) *EventticketclassInsertCall
- func (c *EventticketclassInsertCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
- func (c *EventticketclassInsertCall) Fields(s ...googleapi.Field) *EventticketclassInsertCall
- func (c *EventticketclassInsertCall) Header() http.Header
- type EventticketclassListCall
- func (c *EventticketclassListCall) Context(ctx context.Context) *EventticketclassListCall
- func (c *EventticketclassListCall) Do(opts ...googleapi.CallOption) (*EventTicketClassListResponse, error)
- func (c *EventticketclassListCall) Fields(s ...googleapi.Field) *EventticketclassListCall
- func (c *EventticketclassListCall) Header() http.Header
- func (c *EventticketclassListCall) IfNoneMatch(entityTag string) *EventticketclassListCall
- func (c *EventticketclassListCall) IssuerId(issuerId int64) *EventticketclassListCall
- func (c *EventticketclassListCall) MaxResults(maxResults int64) *EventticketclassListCall
- func (c *EventticketclassListCall) Token(token string) *EventticketclassListCall
- type EventticketclassPatchCall
- func (c *EventticketclassPatchCall) Context(ctx context.Context) *EventticketclassPatchCall
- func (c *EventticketclassPatchCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
- func (c *EventticketclassPatchCall) Fields(s ...googleapi.Field) *EventticketclassPatchCall
- func (c *EventticketclassPatchCall) Header() http.Header
- type EventticketclassService
- func (r *EventticketclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *EventticketclassAddmessageCall
- func (r *EventticketclassService) Get(resourceId string) *EventticketclassGetCall
- func (r *EventticketclassService) Insert(eventticketclass *EventTicketClass) *EventticketclassInsertCall
- func (r *EventticketclassService) List() *EventticketclassListCall
- func (r *EventticketclassService) Patch(resourceId string, eventticketclass *EventTicketClass) *EventticketclassPatchCall
- func (r *EventticketclassService) Update(resourceId string, eventticketclass *EventTicketClass) *EventticketclassUpdateCall
- type EventticketclassUpdateCall
- func (c *EventticketclassUpdateCall) Context(ctx context.Context) *EventticketclassUpdateCall
- func (c *EventticketclassUpdateCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
- func (c *EventticketclassUpdateCall) Fields(s ...googleapi.Field) *EventticketclassUpdateCall
- func (c *EventticketclassUpdateCall) Header() http.Header
- type EventticketobjectAddmessageCall
- func (c *EventticketobjectAddmessageCall) Context(ctx context.Context) *EventticketobjectAddmessageCall
- func (c *EventticketobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*EventTicketObjectAddMessageResponse, error)
- func (c *EventticketobjectAddmessageCall) Fields(s ...googleapi.Field) *EventticketobjectAddmessageCall
- func (c *EventticketobjectAddmessageCall) Header() http.Header
- type EventticketobjectGetCall
- func (c *EventticketobjectGetCall) Context(ctx context.Context) *EventticketobjectGetCall
- func (c *EventticketobjectGetCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
- func (c *EventticketobjectGetCall) Fields(s ...googleapi.Field) *EventticketobjectGetCall
- func (c *EventticketobjectGetCall) Header() http.Header
- func (c *EventticketobjectGetCall) IfNoneMatch(entityTag string) *EventticketobjectGetCall
- type EventticketobjectInsertCall
- func (c *EventticketobjectInsertCall) Context(ctx context.Context) *EventticketobjectInsertCall
- func (c *EventticketobjectInsertCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
- func (c *EventticketobjectInsertCall) Fields(s ...googleapi.Field) *EventticketobjectInsertCall
- func (c *EventticketobjectInsertCall) Header() http.Header
- type EventticketobjectListCall
- func (c *EventticketobjectListCall) ClassId(classId string) *EventticketobjectListCall
- func (c *EventticketobjectListCall) Context(ctx context.Context) *EventticketobjectListCall
- func (c *EventticketobjectListCall) Do(opts ...googleapi.CallOption) (*EventTicketObjectListResponse, error)
- func (c *EventticketobjectListCall) Fields(s ...googleapi.Field) *EventticketobjectListCall
- func (c *EventticketobjectListCall) Header() http.Header
- func (c *EventticketobjectListCall) IfNoneMatch(entityTag string) *EventticketobjectListCall
- func (c *EventticketobjectListCall) MaxResults(maxResults int64) *EventticketobjectListCall
- func (c *EventticketobjectListCall) Token(token string) *EventticketobjectListCall
- type EventticketobjectModifylinkedofferobjectsCall
- func (c *EventticketobjectModifylinkedofferobjectsCall) Context(ctx context.Context) *EventticketobjectModifylinkedofferobjectsCall
- func (c *EventticketobjectModifylinkedofferobjectsCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
- func (c *EventticketobjectModifylinkedofferobjectsCall) Fields(s ...googleapi.Field) *EventticketobjectModifylinkedofferobjectsCall
- func (c *EventticketobjectModifylinkedofferobjectsCall) Header() http.Header
- type EventticketobjectPatchCall
- func (c *EventticketobjectPatchCall) Context(ctx context.Context) *EventticketobjectPatchCall
- func (c *EventticketobjectPatchCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
- func (c *EventticketobjectPatchCall) Fields(s ...googleapi.Field) *EventticketobjectPatchCall
- func (c *EventticketobjectPatchCall) Header() http.Header
- type EventticketobjectService
- func (r *EventticketobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *EventticketobjectAddmessageCall
- func (r *EventticketobjectService) Get(resourceId string) *EventticketobjectGetCall
- func (r *EventticketobjectService) Insert(eventticketobject *EventTicketObject) *EventticketobjectInsertCall
- func (r *EventticketobjectService) List() *EventticketobjectListCall
- func (r *EventticketobjectService) Modifylinkedofferobjects(resourceId string, ...) *EventticketobjectModifylinkedofferobjectsCall
- func (r *EventticketobjectService) Patch(resourceId string, eventticketobject *EventTicketObject) *EventticketobjectPatchCall
- func (r *EventticketobjectService) Update(resourceId string, eventticketobject *EventTicketObject) *EventticketobjectUpdateCall
- type EventticketobjectUpdateCall
- func (c *EventticketobjectUpdateCall) Context(ctx context.Context) *EventticketobjectUpdateCall
- func (c *EventticketobjectUpdateCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
- func (c *EventticketobjectUpdateCall) Fields(s ...googleapi.Field) *EventticketobjectUpdateCall
- func (c *EventticketobjectUpdateCall) Header() http.Header
- type FieldReference
- type FieldSelector
- type FirstRowOption
- type FlightCarrier
- type FlightClass
- type FlightClassAddMessageResponse
- type FlightClassListResponse
- type FlightHeader
- type FlightObject
- type FlightObjectAddMessageResponse
- type FlightObjectListResponse
- type FlightclassAddmessageCall
- func (c *FlightclassAddmessageCall) Context(ctx context.Context) *FlightclassAddmessageCall
- func (c *FlightclassAddmessageCall) Do(opts ...googleapi.CallOption) (*FlightClassAddMessageResponse, error)
- func (c *FlightclassAddmessageCall) Fields(s ...googleapi.Field) *FlightclassAddmessageCall
- func (c *FlightclassAddmessageCall) Header() http.Header
- type FlightclassGetCall
- func (c *FlightclassGetCall) Context(ctx context.Context) *FlightclassGetCall
- func (c *FlightclassGetCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
- func (c *FlightclassGetCall) Fields(s ...googleapi.Field) *FlightclassGetCall
- func (c *FlightclassGetCall) Header() http.Header
- func (c *FlightclassGetCall) IfNoneMatch(entityTag string) *FlightclassGetCall
- type FlightclassInsertCall
- func (c *FlightclassInsertCall) Context(ctx context.Context) *FlightclassInsertCall
- func (c *FlightclassInsertCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
- func (c *FlightclassInsertCall) Fields(s ...googleapi.Field) *FlightclassInsertCall
- func (c *FlightclassInsertCall) Header() http.Header
- type FlightclassListCall
- func (c *FlightclassListCall) Context(ctx context.Context) *FlightclassListCall
- func (c *FlightclassListCall) Do(opts ...googleapi.CallOption) (*FlightClassListResponse, error)
- func (c *FlightclassListCall) Fields(s ...googleapi.Field) *FlightclassListCall
- func (c *FlightclassListCall) Header() http.Header
- func (c *FlightclassListCall) IfNoneMatch(entityTag string) *FlightclassListCall
- func (c *FlightclassListCall) IssuerId(issuerId int64) *FlightclassListCall
- func (c *FlightclassListCall) MaxResults(maxResults int64) *FlightclassListCall
- func (c *FlightclassListCall) Token(token string) *FlightclassListCall
- type FlightclassPatchCall
- func (c *FlightclassPatchCall) Context(ctx context.Context) *FlightclassPatchCall
- func (c *FlightclassPatchCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
- func (c *FlightclassPatchCall) Fields(s ...googleapi.Field) *FlightclassPatchCall
- func (c *FlightclassPatchCall) Header() http.Header
- type FlightclassService
- func (r *FlightclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *FlightclassAddmessageCall
- func (r *FlightclassService) Get(resourceId string) *FlightclassGetCall
- func (r *FlightclassService) Insert(flightclass *FlightClass) *FlightclassInsertCall
- func (r *FlightclassService) List() *FlightclassListCall
- func (r *FlightclassService) Patch(resourceId string, flightclass *FlightClass) *FlightclassPatchCall
- func (r *FlightclassService) Update(resourceId string, flightclass *FlightClass) *FlightclassUpdateCall
- type FlightclassUpdateCall
- func (c *FlightclassUpdateCall) Context(ctx context.Context) *FlightclassUpdateCall
- func (c *FlightclassUpdateCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
- func (c *FlightclassUpdateCall) Fields(s ...googleapi.Field) *FlightclassUpdateCall
- func (c *FlightclassUpdateCall) Header() http.Header
- type FlightobjectAddmessageCall
- func (c *FlightobjectAddmessageCall) Context(ctx context.Context) *FlightobjectAddmessageCall
- func (c *FlightobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*FlightObjectAddMessageResponse, error)
- func (c *FlightobjectAddmessageCall) Fields(s ...googleapi.Field) *FlightobjectAddmessageCall
- func (c *FlightobjectAddmessageCall) Header() http.Header
- type FlightobjectGetCall
- func (c *FlightobjectGetCall) Context(ctx context.Context) *FlightobjectGetCall
- func (c *FlightobjectGetCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
- func (c *FlightobjectGetCall) Fields(s ...googleapi.Field) *FlightobjectGetCall
- func (c *FlightobjectGetCall) Header() http.Header
- func (c *FlightobjectGetCall) IfNoneMatch(entityTag string) *FlightobjectGetCall
- type FlightobjectInsertCall
- func (c *FlightobjectInsertCall) Context(ctx context.Context) *FlightobjectInsertCall
- func (c *FlightobjectInsertCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
- func (c *FlightobjectInsertCall) Fields(s ...googleapi.Field) *FlightobjectInsertCall
- func (c *FlightobjectInsertCall) Header() http.Header
- type FlightobjectListCall
- func (c *FlightobjectListCall) ClassId(classId string) *FlightobjectListCall
- func (c *FlightobjectListCall) Context(ctx context.Context) *FlightobjectListCall
- func (c *FlightobjectListCall) Do(opts ...googleapi.CallOption) (*FlightObjectListResponse, error)
- func (c *FlightobjectListCall) Fields(s ...googleapi.Field) *FlightobjectListCall
- func (c *FlightobjectListCall) Header() http.Header
- func (c *FlightobjectListCall) IfNoneMatch(entityTag string) *FlightobjectListCall
- func (c *FlightobjectListCall) MaxResults(maxResults int64) *FlightobjectListCall
- func (c *FlightobjectListCall) Token(token string) *FlightobjectListCall
- type FlightobjectPatchCall
- func (c *FlightobjectPatchCall) Context(ctx context.Context) *FlightobjectPatchCall
- func (c *FlightobjectPatchCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
- func (c *FlightobjectPatchCall) Fields(s ...googleapi.Field) *FlightobjectPatchCall
- func (c *FlightobjectPatchCall) Header() http.Header
- type FlightobjectService
- func (r *FlightobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *FlightobjectAddmessageCall
- func (r *FlightobjectService) Get(resourceId string) *FlightobjectGetCall
- func (r *FlightobjectService) Insert(flightobject *FlightObject) *FlightobjectInsertCall
- func (r *FlightobjectService) List() *FlightobjectListCall
- func (r *FlightobjectService) Patch(resourceId string, flightobject *FlightObject) *FlightobjectPatchCall
- func (r *FlightobjectService) Update(resourceId string, flightobject *FlightObject) *FlightobjectUpdateCall
- type FlightobjectUpdateCall
- func (c *FlightobjectUpdateCall) Context(ctx context.Context) *FlightobjectUpdateCall
- func (c *FlightobjectUpdateCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
- func (c *FlightobjectUpdateCall) Fields(s ...googleapi.Field) *FlightobjectUpdateCall
- func (c *FlightobjectUpdateCall) Header() http.Header
- type FrequentFlyerInfo
- type GiftCardClass
- type GiftCardClassAddMessageResponse
- type GiftCardClassListResponse
- type GiftCardObject
- type GiftCardObjectAddMessageResponse
- type GiftCardObjectListResponse
- type GiftcardclassAddmessageCall
- func (c *GiftcardclassAddmessageCall) Context(ctx context.Context) *GiftcardclassAddmessageCall
- func (c *GiftcardclassAddmessageCall) Do(opts ...googleapi.CallOption) (*GiftCardClassAddMessageResponse, error)
- func (c *GiftcardclassAddmessageCall) Fields(s ...googleapi.Field) *GiftcardclassAddmessageCall
- func (c *GiftcardclassAddmessageCall) Header() http.Header
- type GiftcardclassGetCall
- func (c *GiftcardclassGetCall) Context(ctx context.Context) *GiftcardclassGetCall
- func (c *GiftcardclassGetCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
- func (c *GiftcardclassGetCall) Fields(s ...googleapi.Field) *GiftcardclassGetCall
- func (c *GiftcardclassGetCall) Header() http.Header
- func (c *GiftcardclassGetCall) IfNoneMatch(entityTag string) *GiftcardclassGetCall
- type GiftcardclassInsertCall
- func (c *GiftcardclassInsertCall) Context(ctx context.Context) *GiftcardclassInsertCall
- func (c *GiftcardclassInsertCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
- func (c *GiftcardclassInsertCall) Fields(s ...googleapi.Field) *GiftcardclassInsertCall
- func (c *GiftcardclassInsertCall) Header() http.Header
- type GiftcardclassListCall
- func (c *GiftcardclassListCall) Context(ctx context.Context) *GiftcardclassListCall
- func (c *GiftcardclassListCall) Do(opts ...googleapi.CallOption) (*GiftCardClassListResponse, error)
- func (c *GiftcardclassListCall) Fields(s ...googleapi.Field) *GiftcardclassListCall
- func (c *GiftcardclassListCall) Header() http.Header
- func (c *GiftcardclassListCall) IfNoneMatch(entityTag string) *GiftcardclassListCall
- func (c *GiftcardclassListCall) IssuerId(issuerId int64) *GiftcardclassListCall
- func (c *GiftcardclassListCall) MaxResults(maxResults int64) *GiftcardclassListCall
- func (c *GiftcardclassListCall) Token(token string) *GiftcardclassListCall
- type GiftcardclassPatchCall
- func (c *GiftcardclassPatchCall) Context(ctx context.Context) *GiftcardclassPatchCall
- func (c *GiftcardclassPatchCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
- func (c *GiftcardclassPatchCall) Fields(s ...googleapi.Field) *GiftcardclassPatchCall
- func (c *GiftcardclassPatchCall) Header() http.Header
- type GiftcardclassService
- func (r *GiftcardclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GiftcardclassAddmessageCall
- func (r *GiftcardclassService) Get(resourceId string) *GiftcardclassGetCall
- func (r *GiftcardclassService) Insert(giftcardclass *GiftCardClass) *GiftcardclassInsertCall
- func (r *GiftcardclassService) List() *GiftcardclassListCall
- func (r *GiftcardclassService) Patch(resourceId string, giftcardclass *GiftCardClass) *GiftcardclassPatchCall
- func (r *GiftcardclassService) Update(resourceId string, giftcardclass *GiftCardClass) *GiftcardclassUpdateCall
- type GiftcardclassUpdateCall
- func (c *GiftcardclassUpdateCall) Context(ctx context.Context) *GiftcardclassUpdateCall
- func (c *GiftcardclassUpdateCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
- func (c *GiftcardclassUpdateCall) Fields(s ...googleapi.Field) *GiftcardclassUpdateCall
- func (c *GiftcardclassUpdateCall) Header() http.Header
- type GiftcardobjectAddmessageCall
- func (c *GiftcardobjectAddmessageCall) Context(ctx context.Context) *GiftcardobjectAddmessageCall
- func (c *GiftcardobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*GiftCardObjectAddMessageResponse, error)
- func (c *GiftcardobjectAddmessageCall) Fields(s ...googleapi.Field) *GiftcardobjectAddmessageCall
- func (c *GiftcardobjectAddmessageCall) Header() http.Header
- type GiftcardobjectGetCall
- func (c *GiftcardobjectGetCall) Context(ctx context.Context) *GiftcardobjectGetCall
- func (c *GiftcardobjectGetCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
- func (c *GiftcardobjectGetCall) Fields(s ...googleapi.Field) *GiftcardobjectGetCall
- func (c *GiftcardobjectGetCall) Header() http.Header
- func (c *GiftcardobjectGetCall) IfNoneMatch(entityTag string) *GiftcardobjectGetCall
- type GiftcardobjectInsertCall
- func (c *GiftcardobjectInsertCall) Context(ctx context.Context) *GiftcardobjectInsertCall
- func (c *GiftcardobjectInsertCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
- func (c *GiftcardobjectInsertCall) Fields(s ...googleapi.Field) *GiftcardobjectInsertCall
- func (c *GiftcardobjectInsertCall) Header() http.Header
- type GiftcardobjectListCall
- func (c *GiftcardobjectListCall) ClassId(classId string) *GiftcardobjectListCall
- func (c *GiftcardobjectListCall) Context(ctx context.Context) *GiftcardobjectListCall
- func (c *GiftcardobjectListCall) Do(opts ...googleapi.CallOption) (*GiftCardObjectListResponse, error)
- func (c *GiftcardobjectListCall) Fields(s ...googleapi.Field) *GiftcardobjectListCall
- func (c *GiftcardobjectListCall) Header() http.Header
- func (c *GiftcardobjectListCall) IfNoneMatch(entityTag string) *GiftcardobjectListCall
- func (c *GiftcardobjectListCall) MaxResults(maxResults int64) *GiftcardobjectListCall
- func (c *GiftcardobjectListCall) Token(token string) *GiftcardobjectListCall
- type GiftcardobjectPatchCall
- func (c *GiftcardobjectPatchCall) Context(ctx context.Context) *GiftcardobjectPatchCall
- func (c *GiftcardobjectPatchCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
- func (c *GiftcardobjectPatchCall) Fields(s ...googleapi.Field) *GiftcardobjectPatchCall
- func (c *GiftcardobjectPatchCall) Header() http.Header
- type GiftcardobjectService
- func (r *GiftcardobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GiftcardobjectAddmessageCall
- func (r *GiftcardobjectService) Get(resourceId string) *GiftcardobjectGetCall
- func (r *GiftcardobjectService) Insert(giftcardobject *GiftCardObject) *GiftcardobjectInsertCall
- func (r *GiftcardobjectService) List() *GiftcardobjectListCall
- func (r *GiftcardobjectService) Patch(resourceId string, giftcardobject *GiftCardObject) *GiftcardobjectPatchCall
- func (r *GiftcardobjectService) Update(resourceId string, giftcardobject *GiftCardObject) *GiftcardobjectUpdateCall
- type GiftcardobjectUpdateCall
- func (c *GiftcardobjectUpdateCall) Context(ctx context.Context) *GiftcardobjectUpdateCall
- func (c *GiftcardobjectUpdateCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
- func (c *GiftcardobjectUpdateCall) Fields(s ...googleapi.Field) *GiftcardobjectUpdateCall
- func (c *GiftcardobjectUpdateCall) Header() http.Header
- type GroupingInfo
- type Image
- type ImageModuleData
- type ImageUri
- type InfoModuleData
- type Issuer
- type IssuerContactInfo
- type IssuerGetCall
- func (c *IssuerGetCall) Context(ctx context.Context) *IssuerGetCall
- func (c *IssuerGetCall) Do(opts ...googleapi.CallOption) (*Issuer, error)
- func (c *IssuerGetCall) Fields(s ...googleapi.Field) *IssuerGetCall
- func (c *IssuerGetCall) Header() http.Header
- func (c *IssuerGetCall) IfNoneMatch(entityTag string) *IssuerGetCall
- type IssuerInsertCall
- type IssuerListCall
- func (c *IssuerListCall) Context(ctx context.Context) *IssuerListCall
- func (c *IssuerListCall) Do(opts ...googleapi.CallOption) (*IssuerListResponse, error)
- func (c *IssuerListCall) Fields(s ...googleapi.Field) *IssuerListCall
- func (c *IssuerListCall) Header() http.Header
- func (c *IssuerListCall) IfNoneMatch(entityTag string) *IssuerListCall
- type IssuerListResponse
- type IssuerPatchCall
- type IssuerService
- func (r *IssuerService) Get(resourceId int64) *IssuerGetCall
- func (r *IssuerService) Insert(issuer *Issuer) *IssuerInsertCall
- func (r *IssuerService) List() *IssuerListCall
- func (r *IssuerService) Patch(resourceId int64, issuer *Issuer) *IssuerPatchCall
- func (r *IssuerService) Update(resourceId int64, issuer *Issuer) *IssuerUpdateCall
- type IssuerToUserInfo
- type IssuerUpdateCall
- type JwtInsertCall
- type JwtInsertResponse
- type JwtResource
- type JwtService
- type LabelValue
- type LabelValueRow
- type LatLongPoint
- type LinksModuleData
- type ListTemplateOverride
- type LocalizedString
- type LoyaltyClass
- type LoyaltyClassAddMessageResponse
- type LoyaltyClassListResponse
- type LoyaltyObject
- type LoyaltyObjectAddMessageResponse
- type LoyaltyObjectListResponse
- type LoyaltyPoints
- type LoyaltyPointsBalance
- type LoyaltyclassAddmessageCall
- func (c *LoyaltyclassAddmessageCall) Context(ctx context.Context) *LoyaltyclassAddmessageCall
- func (c *LoyaltyclassAddmessageCall) Do(opts ...googleapi.CallOption) (*LoyaltyClassAddMessageResponse, error)
- func (c *LoyaltyclassAddmessageCall) Fields(s ...googleapi.Field) *LoyaltyclassAddmessageCall
- func (c *LoyaltyclassAddmessageCall) Header() http.Header
- type LoyaltyclassGetCall
- func (c *LoyaltyclassGetCall) Context(ctx context.Context) *LoyaltyclassGetCall
- func (c *LoyaltyclassGetCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
- func (c *LoyaltyclassGetCall) Fields(s ...googleapi.Field) *LoyaltyclassGetCall
- func (c *LoyaltyclassGetCall) Header() http.Header
- func (c *LoyaltyclassGetCall) IfNoneMatch(entityTag string) *LoyaltyclassGetCall
- type LoyaltyclassInsertCall
- func (c *LoyaltyclassInsertCall) Context(ctx context.Context) *LoyaltyclassInsertCall
- func (c *LoyaltyclassInsertCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
- func (c *LoyaltyclassInsertCall) Fields(s ...googleapi.Field) *LoyaltyclassInsertCall
- func (c *LoyaltyclassInsertCall) Header() http.Header
- type LoyaltyclassListCall
- func (c *LoyaltyclassListCall) Context(ctx context.Context) *LoyaltyclassListCall
- func (c *LoyaltyclassListCall) Do(opts ...googleapi.CallOption) (*LoyaltyClassListResponse, error)
- func (c *LoyaltyclassListCall) Fields(s ...googleapi.Field) *LoyaltyclassListCall
- func (c *LoyaltyclassListCall) Header() http.Header
- func (c *LoyaltyclassListCall) IfNoneMatch(entityTag string) *LoyaltyclassListCall
- func (c *LoyaltyclassListCall) IssuerId(issuerId int64) *LoyaltyclassListCall
- func (c *LoyaltyclassListCall) MaxResults(maxResults int64) *LoyaltyclassListCall
- func (c *LoyaltyclassListCall) Token(token string) *LoyaltyclassListCall
- type LoyaltyclassPatchCall
- func (c *LoyaltyclassPatchCall) Context(ctx context.Context) *LoyaltyclassPatchCall
- func (c *LoyaltyclassPatchCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
- func (c *LoyaltyclassPatchCall) Fields(s ...googleapi.Field) *LoyaltyclassPatchCall
- func (c *LoyaltyclassPatchCall) Header() http.Header
- type LoyaltyclassService
- func (r *LoyaltyclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *LoyaltyclassAddmessageCall
- func (r *LoyaltyclassService) Get(resourceId string) *LoyaltyclassGetCall
- func (r *LoyaltyclassService) Insert(loyaltyclass *LoyaltyClass) *LoyaltyclassInsertCall
- func (r *LoyaltyclassService) List() *LoyaltyclassListCall
- func (r *LoyaltyclassService) Patch(resourceId string, loyaltyclass *LoyaltyClass) *LoyaltyclassPatchCall
- func (r *LoyaltyclassService) Update(resourceId string, loyaltyclass *LoyaltyClass) *LoyaltyclassUpdateCall
- type LoyaltyclassUpdateCall
- func (c *LoyaltyclassUpdateCall) Context(ctx context.Context) *LoyaltyclassUpdateCall
- func (c *LoyaltyclassUpdateCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
- func (c *LoyaltyclassUpdateCall) Fields(s ...googleapi.Field) *LoyaltyclassUpdateCall
- func (c *LoyaltyclassUpdateCall) Header() http.Header
- type LoyaltyobjectAddmessageCall
- func (c *LoyaltyobjectAddmessageCall) Context(ctx context.Context) *LoyaltyobjectAddmessageCall
- func (c *LoyaltyobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*LoyaltyObjectAddMessageResponse, error)
- func (c *LoyaltyobjectAddmessageCall) Fields(s ...googleapi.Field) *LoyaltyobjectAddmessageCall
- func (c *LoyaltyobjectAddmessageCall) Header() http.Header
- type LoyaltyobjectGetCall
- func (c *LoyaltyobjectGetCall) Context(ctx context.Context) *LoyaltyobjectGetCall
- func (c *LoyaltyobjectGetCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
- func (c *LoyaltyobjectGetCall) Fields(s ...googleapi.Field) *LoyaltyobjectGetCall
- func (c *LoyaltyobjectGetCall) Header() http.Header
- func (c *LoyaltyobjectGetCall) IfNoneMatch(entityTag string) *LoyaltyobjectGetCall
- type LoyaltyobjectInsertCall
- func (c *LoyaltyobjectInsertCall) Context(ctx context.Context) *LoyaltyobjectInsertCall
- func (c *LoyaltyobjectInsertCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
- func (c *LoyaltyobjectInsertCall) Fields(s ...googleapi.Field) *LoyaltyobjectInsertCall
- func (c *LoyaltyobjectInsertCall) Header() http.Header
- type LoyaltyobjectListCall
- func (c *LoyaltyobjectListCall) ClassId(classId string) *LoyaltyobjectListCall
- func (c *LoyaltyobjectListCall) Context(ctx context.Context) *LoyaltyobjectListCall
- func (c *LoyaltyobjectListCall) Do(opts ...googleapi.CallOption) (*LoyaltyObjectListResponse, error)
- func (c *LoyaltyobjectListCall) Fields(s ...googleapi.Field) *LoyaltyobjectListCall
- func (c *LoyaltyobjectListCall) Header() http.Header
- func (c *LoyaltyobjectListCall) IfNoneMatch(entityTag string) *LoyaltyobjectListCall
- func (c *LoyaltyobjectListCall) MaxResults(maxResults int64) *LoyaltyobjectListCall
- func (c *LoyaltyobjectListCall) Token(token string) *LoyaltyobjectListCall
- type LoyaltyobjectModifylinkedofferobjectsCall
- func (c *LoyaltyobjectModifylinkedofferobjectsCall) Context(ctx context.Context) *LoyaltyobjectModifylinkedofferobjectsCall
- func (c *LoyaltyobjectModifylinkedofferobjectsCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
- func (c *LoyaltyobjectModifylinkedofferobjectsCall) Fields(s ...googleapi.Field) *LoyaltyobjectModifylinkedofferobjectsCall
- func (c *LoyaltyobjectModifylinkedofferobjectsCall) Header() http.Header
- type LoyaltyobjectPatchCall
- func (c *LoyaltyobjectPatchCall) Context(ctx context.Context) *LoyaltyobjectPatchCall
- func (c *LoyaltyobjectPatchCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
- func (c *LoyaltyobjectPatchCall) Fields(s ...googleapi.Field) *LoyaltyobjectPatchCall
- func (c *LoyaltyobjectPatchCall) Header() http.Header
- type LoyaltyobjectService
- func (r *LoyaltyobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *LoyaltyobjectAddmessageCall
- func (r *LoyaltyobjectService) Get(resourceId string) *LoyaltyobjectGetCall
- func (r *LoyaltyobjectService) Insert(loyaltyobject *LoyaltyObject) *LoyaltyobjectInsertCall
- func (r *LoyaltyobjectService) List() *LoyaltyobjectListCall
- func (r *LoyaltyobjectService) Modifylinkedofferobjects(resourceId string, ...) *LoyaltyobjectModifylinkedofferobjectsCall
- func (r *LoyaltyobjectService) Patch(resourceId string, loyaltyobject *LoyaltyObject) *LoyaltyobjectPatchCall
- func (r *LoyaltyobjectService) Update(resourceId string, loyaltyobject *LoyaltyObject) *LoyaltyobjectUpdateCall
- type LoyaltyobjectUpdateCall
- func (c *LoyaltyobjectUpdateCall) Context(ctx context.Context) *LoyaltyobjectUpdateCall
- func (c *LoyaltyobjectUpdateCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
- func (c *LoyaltyobjectUpdateCall) Fields(s ...googleapi.Field) *LoyaltyobjectUpdateCall
- func (c *LoyaltyobjectUpdateCall) Header() http.Header
- type Message
- type ModifyLinkedOfferObjects
- type ModifyLinkedOfferObjectsRequest
- type Money
- type OfferClass
- type OfferClassAddMessageResponse
- type OfferClassListResponse
- type OfferObject
- type OfferObjectAddMessageResponse
- type OfferObjectListResponse
- type OfferclassAddmessageCall
- func (c *OfferclassAddmessageCall) Context(ctx context.Context) *OfferclassAddmessageCall
- func (c *OfferclassAddmessageCall) Do(opts ...googleapi.CallOption) (*OfferClassAddMessageResponse, error)
- func (c *OfferclassAddmessageCall) Fields(s ...googleapi.Field) *OfferclassAddmessageCall
- func (c *OfferclassAddmessageCall) Header() http.Header
- type OfferclassGetCall
- func (c *OfferclassGetCall) Context(ctx context.Context) *OfferclassGetCall
- func (c *OfferclassGetCall) Do(opts ...googleapi.CallOption) (*OfferClass, error)
- func (c *OfferclassGetCall) Fields(s ...googleapi.Field) *OfferclassGetCall
- func (c *OfferclassGetCall) Header() http.Header
- func (c *OfferclassGetCall) IfNoneMatch(entityTag string) *OfferclassGetCall
- type OfferclassInsertCall
- func (c *OfferclassInsertCall) Context(ctx context.Context) *OfferclassInsertCall
- func (c *OfferclassInsertCall) Do(opts ...googleapi.CallOption) (*OfferClass, error)
- func (c *OfferclassInsertCall) Fields(s ...googleapi.Field) *OfferclassInsertCall
- func (c *OfferclassInsertCall) Header() http.Header
- type OfferclassListCall
- func (c *OfferclassListCall) Context(ctx context.Context) *OfferclassListCall
- func (c *OfferclassListCall) Do(opts ...googleapi.CallOption) (*OfferClassListResponse, error)
- func (c *OfferclassListCall) Fields(s ...googleapi.Field) *OfferclassListCall
- func (c *OfferclassListCall) Header() http.Header
- func (c *OfferclassListCall) IfNoneMatch(entityTag string) *OfferclassListCall
- func (c *OfferclassListCall) IssuerId(issuerId int64) *OfferclassListCall
- func (c *OfferclassListCall) MaxResults(maxResults int64) *OfferclassListCall
- func (c *OfferclassListCall) Token(token string) *OfferclassListCall
- type OfferclassPatchCall
- type OfferclassService
- func (r *OfferclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *OfferclassAddmessageCall
- func (r *OfferclassService) Get(resourceId string) *OfferclassGetCall
- func (r *OfferclassService) Insert(offerclass *OfferClass) *OfferclassInsertCall
- func (r *OfferclassService) List() *OfferclassListCall
- func (r *OfferclassService) Patch(resourceId string, offerclass *OfferClass) *OfferclassPatchCall
- func (r *OfferclassService) Update(resourceId string, offerclass *OfferClass) *OfferclassUpdateCall
- type OfferclassUpdateCall
- func (c *OfferclassUpdateCall) Context(ctx context.Context) *OfferclassUpdateCall
- func (c *OfferclassUpdateCall) Do(opts ...googleapi.CallOption) (*OfferClass, error)
- func (c *OfferclassUpdateCall) Fields(s ...googleapi.Field) *OfferclassUpdateCall
- func (c *OfferclassUpdateCall) Header() http.Header
- type OfferobjectAddmessageCall
- func (c *OfferobjectAddmessageCall) Context(ctx context.Context) *OfferobjectAddmessageCall
- func (c *OfferobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*OfferObjectAddMessageResponse, error)
- func (c *OfferobjectAddmessageCall) Fields(s ...googleapi.Field) *OfferobjectAddmessageCall
- func (c *OfferobjectAddmessageCall) Header() http.Header
- type OfferobjectGetCall
- func (c *OfferobjectGetCall) Context(ctx context.Context) *OfferobjectGetCall
- func (c *OfferobjectGetCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
- func (c *OfferobjectGetCall) Fields(s ...googleapi.Field) *OfferobjectGetCall
- func (c *OfferobjectGetCall) Header() http.Header
- func (c *OfferobjectGetCall) IfNoneMatch(entityTag string) *OfferobjectGetCall
- type OfferobjectInsertCall
- func (c *OfferobjectInsertCall) Context(ctx context.Context) *OfferobjectInsertCall
- func (c *OfferobjectInsertCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
- func (c *OfferobjectInsertCall) Fields(s ...googleapi.Field) *OfferobjectInsertCall
- func (c *OfferobjectInsertCall) Header() http.Header
- type OfferobjectListCall
- func (c *OfferobjectListCall) ClassId(classId string) *OfferobjectListCall
- func (c *OfferobjectListCall) Context(ctx context.Context) *OfferobjectListCall
- func (c *OfferobjectListCall) Do(opts ...googleapi.CallOption) (*OfferObjectListResponse, error)
- func (c *OfferobjectListCall) Fields(s ...googleapi.Field) *OfferobjectListCall
- func (c *OfferobjectListCall) Header() http.Header
- func (c *OfferobjectListCall) IfNoneMatch(entityTag string) *OfferobjectListCall
- func (c *OfferobjectListCall) MaxResults(maxResults int64) *OfferobjectListCall
- func (c *OfferobjectListCall) Token(token string) *OfferobjectListCall
- type OfferobjectPatchCall
- func (c *OfferobjectPatchCall) Context(ctx context.Context) *OfferobjectPatchCall
- func (c *OfferobjectPatchCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
- func (c *OfferobjectPatchCall) Fields(s ...googleapi.Field) *OfferobjectPatchCall
- func (c *OfferobjectPatchCall) Header() http.Header
- type OfferobjectService
- func (r *OfferobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *OfferobjectAddmessageCall
- func (r *OfferobjectService) Get(resourceId string) *OfferobjectGetCall
- func (r *OfferobjectService) Insert(offerobject *OfferObject) *OfferobjectInsertCall
- func (r *OfferobjectService) List() *OfferobjectListCall
- func (r *OfferobjectService) Patch(resourceId string, offerobject *OfferObject) *OfferobjectPatchCall
- func (r *OfferobjectService) Update(resourceId string, offerobject *OfferObject) *OfferobjectUpdateCall
- type OfferobjectUpdateCall
- func (c *OfferobjectUpdateCall) Context(ctx context.Context) *OfferobjectUpdateCall
- func (c *OfferobjectUpdateCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
- func (c *OfferobjectUpdateCall) Fields(s ...googleapi.Field) *OfferobjectUpdateCall
- func (c *OfferobjectUpdateCall) Header() http.Header
- type Pagination
- type Permission
- type Permissions
- type PermissionsGetCall
- func (c *PermissionsGetCall) Context(ctx context.Context) *PermissionsGetCall
- func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permissions, error)
- func (c *PermissionsGetCall) Fields(s ...googleapi.Field) *PermissionsGetCall
- func (c *PermissionsGetCall) Header() http.Header
- func (c *PermissionsGetCall) IfNoneMatch(entityTag string) *PermissionsGetCall
- type PermissionsService
- type PermissionsUpdateCall
- func (c *PermissionsUpdateCall) Context(ctx context.Context) *PermissionsUpdateCall
- func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permissions, error)
- func (c *PermissionsUpdateCall) Fields(s ...googleapi.Field) *PermissionsUpdateCall
- func (c *PermissionsUpdateCall) Header() http.Header
- type PurchaseDetails
- type ReservationInfo
- type Resources
- type Review
- type Service
- type SignUpInfo
- type SmartTap
- type SmartTapMerchantData
- type SmarttapInsertCall
- type SmarttapService
- type TemplateItem
- type TextModuleData
- type TicketCost
- type TicketLeg
- type TicketRestrictions
- type TicketSeat
- type TimeInterval
- type TransitClass
- type TransitClassAddMessageResponse
- type TransitClassListResponse
- type TransitObject
- type TransitObjectAddMessageResponse
- type TransitObjectListResponse
- type TransitclassAddmessageCall
- func (c *TransitclassAddmessageCall) Context(ctx context.Context) *TransitclassAddmessageCall
- func (c *TransitclassAddmessageCall) Do(opts ...googleapi.CallOption) (*TransitClassAddMessageResponse, error)
- func (c *TransitclassAddmessageCall) Fields(s ...googleapi.Field) *TransitclassAddmessageCall
- func (c *TransitclassAddmessageCall) Header() http.Header
- type TransitclassGetCall
- func (c *TransitclassGetCall) Context(ctx context.Context) *TransitclassGetCall
- func (c *TransitclassGetCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
- func (c *TransitclassGetCall) Fields(s ...googleapi.Field) *TransitclassGetCall
- func (c *TransitclassGetCall) Header() http.Header
- func (c *TransitclassGetCall) IfNoneMatch(entityTag string) *TransitclassGetCall
- type TransitclassInsertCall
- func (c *TransitclassInsertCall) Context(ctx context.Context) *TransitclassInsertCall
- func (c *TransitclassInsertCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
- func (c *TransitclassInsertCall) Fields(s ...googleapi.Field) *TransitclassInsertCall
- func (c *TransitclassInsertCall) Header() http.Header
- type TransitclassListCall
- func (c *TransitclassListCall) Context(ctx context.Context) *TransitclassListCall
- func (c *TransitclassListCall) Do(opts ...googleapi.CallOption) (*TransitClassListResponse, error)
- func (c *TransitclassListCall) Fields(s ...googleapi.Field) *TransitclassListCall
- func (c *TransitclassListCall) Header() http.Header
- func (c *TransitclassListCall) IfNoneMatch(entityTag string) *TransitclassListCall
- func (c *TransitclassListCall) IssuerId(issuerId int64) *TransitclassListCall
- func (c *TransitclassListCall) MaxResults(maxResults int64) *TransitclassListCall
- func (c *TransitclassListCall) Token(token string) *TransitclassListCall
- type TransitclassPatchCall
- func (c *TransitclassPatchCall) Context(ctx context.Context) *TransitclassPatchCall
- func (c *TransitclassPatchCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
- func (c *TransitclassPatchCall) Fields(s ...googleapi.Field) *TransitclassPatchCall
- func (c *TransitclassPatchCall) Header() http.Header
- type TransitclassService
- func (r *TransitclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *TransitclassAddmessageCall
- func (r *TransitclassService) Get(resourceId string) *TransitclassGetCall
- func (r *TransitclassService) Insert(transitclass *TransitClass) *TransitclassInsertCall
- func (r *TransitclassService) List() *TransitclassListCall
- func (r *TransitclassService) Patch(resourceId string, transitclass *TransitClass) *TransitclassPatchCall
- func (r *TransitclassService) Update(resourceId string, transitclass *TransitClass) *TransitclassUpdateCall
- type TransitclassUpdateCall
- func (c *TransitclassUpdateCall) Context(ctx context.Context) *TransitclassUpdateCall
- func (c *TransitclassUpdateCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
- func (c *TransitclassUpdateCall) Fields(s ...googleapi.Field) *TransitclassUpdateCall
- func (c *TransitclassUpdateCall) Header() http.Header
- type TransitobjectAddmessageCall
- func (c *TransitobjectAddmessageCall) Context(ctx context.Context) *TransitobjectAddmessageCall
- func (c *TransitobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*TransitObjectAddMessageResponse, error)
- func (c *TransitobjectAddmessageCall) Fields(s ...googleapi.Field) *TransitobjectAddmessageCall
- func (c *TransitobjectAddmessageCall) Header() http.Header
- type TransitobjectGetCall
- func (c *TransitobjectGetCall) Context(ctx context.Context) *TransitobjectGetCall
- func (c *TransitobjectGetCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
- func (c *TransitobjectGetCall) Fields(s ...googleapi.Field) *TransitobjectGetCall
- func (c *TransitobjectGetCall) Header() http.Header
- func (c *TransitobjectGetCall) IfNoneMatch(entityTag string) *TransitobjectGetCall
- type TransitobjectInsertCall
- func (c *TransitobjectInsertCall) Context(ctx context.Context) *TransitobjectInsertCall
- func (c *TransitobjectInsertCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
- func (c *TransitobjectInsertCall) Fields(s ...googleapi.Field) *TransitobjectInsertCall
- func (c *TransitobjectInsertCall) Header() http.Header
- type TransitobjectListCall
- func (c *TransitobjectListCall) ClassId(classId string) *TransitobjectListCall
- func (c *TransitobjectListCall) Context(ctx context.Context) *TransitobjectListCall
- func (c *TransitobjectListCall) Do(opts ...googleapi.CallOption) (*TransitObjectListResponse, error)
- func (c *TransitobjectListCall) Fields(s ...googleapi.Field) *TransitobjectListCall
- func (c *TransitobjectListCall) Header() http.Header
- func (c *TransitobjectListCall) IfNoneMatch(entityTag string) *TransitobjectListCall
- func (c *TransitobjectListCall) MaxResults(maxResults int64) *TransitobjectListCall
- func (c *TransitobjectListCall) Token(token string) *TransitobjectListCall
- type TransitobjectPatchCall
- func (c *TransitobjectPatchCall) Context(ctx context.Context) *TransitobjectPatchCall
- func (c *TransitobjectPatchCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
- func (c *TransitobjectPatchCall) Fields(s ...googleapi.Field) *TransitobjectPatchCall
- func (c *TransitobjectPatchCall) Header() http.Header
- type TransitobjectService
- func (r *TransitobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *TransitobjectAddmessageCall
- func (r *TransitobjectService) Get(resourceId string) *TransitobjectGetCall
- func (r *TransitobjectService) Insert(transitobject *TransitObject) *TransitobjectInsertCall
- func (r *TransitobjectService) List() *TransitobjectListCall
- func (r *TransitobjectService) Patch(resourceId string, transitobject *TransitObject) *TransitobjectPatchCall
- func (r *TransitobjectService) Update(resourceId string, transitobject *TransitObject) *TransitobjectUpdateCall
- type TransitobjectUpdateCall
- func (c *TransitobjectUpdateCall) Context(ctx context.Context) *TransitobjectUpdateCall
- func (c *TransitobjectUpdateCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
- func (c *TransitobjectUpdateCall) Fields(s ...googleapi.Field) *TransitobjectUpdateCall
- func (c *TransitobjectUpdateCall) Header() http.Header
- type TranslatedString
- type Uri
Constants ¶
const ( // You should never encounter this message. Please do not approve the // access request. 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 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 // <a // href="http://www.iata.org/publications/Pages/code-search.aspx"> // IATA // airport city names</a> 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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. // If included, the app link // link module will be rendered on the valuable details on the android // client. AndroidAppLinkInfo *AppLinkDataAppLinkInfo `json:"androidAppLinkInfo,omitempty"` // IosAppLinkInfo: Optional information about the partner app link. If // included, the app link // link module will be rendered on the valuable details on the ios // client. IosAppLinkInfo *AppLinkDataAppLinkInfo `json:"iosAppLinkInfo,omitempty"` // WebAppLinkInfo: Optional information about the partner app link. If // included, the app link // link module will be rendered on the valuable details on the web // client. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*AppLinkData) MarshalJSON ¶
func (s *AppLinkData) MarshalJSON() ([]byte, error)
type AppLinkDataAppLinkInfo ¶
type AppLinkDataAppLinkInfo struct { // AppLogoImage: Optional image to be displayed in the App Link Module AppLogoImage *Image `json:"appLogoImage,omitempty"` // AppTarget: Url to follow when opening the App Link Module on // clients. // It will be used by partners to open their webpage or deeplink into // their // app. AppTarget *AppLinkDataAppLinkInfoAppTarget `json:"appTarget,omitempty"` // Description: String to be displayed in the description of the App // Link Module // Required Description *LocalizedString `json:"description,omitempty"` // Title: String to be displayed in the title of the App Link // Module // Required 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AppLinkDataAppLinkInfo) MarshalJSON ¶
func (s *AppLinkDataAppLinkInfo) MarshalJSON() ([]byte, error)
type AppLinkDataAppLinkInfoAppTarget ¶
type AppLinkDataAppLinkInfoAppTarget struct { TargetUri *Uri `json:"targetUri,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetUri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TargetUri") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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" // "aztec" - Legacy alias for `AZTEC`. Deprecated. // "CODE_39" // "code39" - Legacy alias for `CODE_39`. Deprecated. // "CODE_128" // "code128" - Legacy alias for `CODE_128`. Deprecated. // "CODABAR" // "codabar" - Legacy alias for `CODABAR`. Deprecated. // "DATA_MATRIX" - A 2D matrix barcode consisting of black and white. // Cells or modules // are arranged in either a square or rectangle. // "dataMatrix" - Legacy alias for `DATA_MATRIX`. Deprecated. // "EAN_8" // "ean8" - Legacy alias for `EAN_8`. Deprecated. // "EAN_13" // "ean13" - Legacy alias for `EAN_13`. Deprecated. // "EAN13" - Legacy alias for `EAN_13`. Deprecated. // "ITF_14" - 14 digit ITF code // "itf14" - Legacy alias for `ITF_14`. Deprecated. // "PDF_417" // "pdf417" - Legacy alias for `PDF_417`. Deprecated. // "PDF417" - Legacy alias for `PDF_417`. Deprecated. // "QR_CODE" // "qrCode" - Legacy alias for `QR_CODE`. Deprecated. // "qrcode" - Legacy alias for `QR_CODE`. Deprecated. // "UPC_A" - 11 or 12 digit codes // "upcA" - Legacy alias for `UPC_A`. Deprecated. // "TEXT_ONLY" - Renders the field as a text field. The // `alternateText` field // may not be used with a barcode of type `textOnly`. // "textOnly" - Legacy alias for `TEXT_ONLY`. Deprecated. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Barcode) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BarcodeSectionDetail) MarshalJSON ¶
func (s *BarcodeSectionDetail) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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:Google-Valuables. // // Please contact Google support before using this field. 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:Google-Valuables. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 two 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*ClassTemplateInfo) MarshalJSON ¶
func (s *ClassTemplateInfo) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DateTime) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*DetailsTemplateOverride) MarshalJSON ¶
func (s *DetailsTemplateOverride) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 { // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
DiscoverableProgramMerchantSignupInfo: Information about the merchant hosted signup flow for a program.
func (*DiscoverableProgramMerchantSignupInfo) MarshalJSON ¶
func (s *DiscoverableProgramMerchantSignupInfo) 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*EventSeat) MarshalJSON ¶
type EventTicketClass ¶
type EventTicketClass struct { // AllowMultipleUsersPerObject: Deprecated. Use // `multipleDevicesAndHoldersAllowedStatus` // instead. AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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 []*LatLongPoint `json:"locations,omitempty"` // Logo: The logo image of the ticket. This image is displayed in the // 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" // "MULTIPLE_HOLDERS" - Multiple users on multiple devices are // allowed. // "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. // Deprecated. // "ONE_USER_ALL_DEVICES" - One user on multiple devices is allowed. // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. // Deprecated. // "ONE_USER_ONE_DEVICE" - Intended for use by select partners in // limited circumstances. Contact // support for additional information. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. // Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` // RedemptionIssuers: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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"` // 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"` // 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*EventTicketClassListResponse) MarshalJSON ¶
func (s *EventTicketClassListResponse) MarshalJSON() ([]byte, error)
type EventTicketObject ¶
type EventTicketObject struct { // AppLinkData: Optional information about the partner app link. 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 // <var>issuer // ID</var>.<var>identifier</var> 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: Grouping info for event tickets. 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"` // 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 // <var>issuer // ID</var>.<var>identifier</var> 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 // <var>issuer ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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"` // 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"` // SeatInfo: Seating details for this ticket. SeatInfo *EventSeat `json:"seatInfo,omitempty"` // SmartTapRedemptionValue: Available only to Smart Tap enabled // partners. Contact support for // additional guidance. 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 no // longer displayed in the Google Pay app. // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *EventticketclassAddmessageCall) Context(ctx context.Context) *EventticketclassAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketclassAddmessageCall) Do ¶
func (c *EventticketclassAddmessageCall) Do(opts ...googleapi.CallOption) (*EventTicketClassAddMessageResponse, error)
Do executes the "walletobjects.eventticketclass.addmessage" call. Exactly one of *EventTicketClassAddMessageResponse or error will be non-nil. 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 ¶
func (c *EventticketclassAddmessageCall) Fields(s ...googleapi.Field) *EventticketclassAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketclassAddmessageCall) Header ¶
func (c *EventticketclassAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type EventticketclassGetCall ¶
type EventticketclassGetCall struct {
// contains filtered or unexported fields
}
func (*EventticketclassGetCall) Context ¶
func (c *EventticketclassGetCall) Context(ctx context.Context) *EventticketclassGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketclassGetCall) Do ¶
func (c *EventticketclassGetCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
Do executes the "walletobjects.eventticketclass.get" call. Exactly one of *EventTicketClass or error will be non-nil. 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 ¶
func (c *EventticketclassGetCall) Fields(s ...googleapi.Field) *EventticketclassGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketclassGetCall) Header ¶
func (c *EventticketclassGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*EventticketclassGetCall) IfNoneMatch ¶
func (c *EventticketclassGetCall) IfNoneMatch(entityTag string) *EventticketclassGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EventticketclassInsertCall ¶
type EventticketclassInsertCall struct {
// contains filtered or unexported fields
}
func (*EventticketclassInsertCall) Context ¶
func (c *EventticketclassInsertCall) Context(ctx context.Context) *EventticketclassInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketclassInsertCall) Do ¶
func (c *EventticketclassInsertCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
Do executes the "walletobjects.eventticketclass.insert" call. Exactly one of *EventTicketClass or error will be non-nil. 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 ¶
func (c *EventticketclassInsertCall) Fields(s ...googleapi.Field) *EventticketclassInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketclassInsertCall) Header ¶
func (c *EventticketclassInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type EventticketclassListCall ¶
type EventticketclassListCall struct {
// contains filtered or unexported fields
}
func (*EventticketclassListCall) Context ¶
func (c *EventticketclassListCall) Context(ctx context.Context) *EventticketclassListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketclassListCall) Do ¶
func (c *EventticketclassListCall) Do(opts ...googleapi.CallOption) (*EventTicketClassListResponse, error)
Do executes the "walletobjects.eventticketclass.list" call. Exactly one of *EventTicketClassListResponse or error will be non-nil. 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 ¶
func (c *EventticketclassListCall) Fields(s ...googleapi.Field) *EventticketclassListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketclassListCall) Header ¶
func (c *EventticketclassListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*EventticketclassListCall) IfNoneMatch ¶
func (c *EventticketclassListCall) IfNoneMatch(entityTag string) *EventticketclassListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*EventticketclassListCall) IssuerId ¶
func (c *EventticketclassListCall) IssuerId(issuerId int64) *EventticketclassListCall
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 ¶
func (c *EventticketclassListCall) Token(token string) *EventticketclassListCall
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 ¶
func (c *EventticketclassPatchCall) Context(ctx context.Context) *EventticketclassPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketclassPatchCall) Do ¶
func (c *EventticketclassPatchCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
Do executes the "walletobjects.eventticketclass.patch" call. Exactly one of *EventTicketClass or error will be non-nil. 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 ¶
func (c *EventticketclassPatchCall) Fields(s ...googleapi.Field) *EventticketclassPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketclassPatchCall) Header ¶
func (c *EventticketclassPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*EventticketclassService) Get ¶
func (r *EventticketclassService) Get(resourceId string) *EventticketclassGetCall
Get: Returns the event ticket class with the given class ID.
func (*EventticketclassService) Insert ¶
func (r *EventticketclassService) Insert(eventticketclass *EventTicketClass) *EventticketclassInsertCall
Insert: Inserts an event ticket class with the given ID and properties.
func (*EventticketclassService) List ¶
func (r *EventticketclassService) List() *EventticketclassListCall
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.
func (*EventticketclassService) Update ¶
func (r *EventticketclassService) Update(resourceId string, eventticketclass *EventTicketClass) *EventticketclassUpdateCall
Update: Updates the event ticket class referenced by the given class ID.
type EventticketclassUpdateCall ¶
type EventticketclassUpdateCall struct {
// contains filtered or unexported fields
}
func (*EventticketclassUpdateCall) Context ¶
func (c *EventticketclassUpdateCall) Context(ctx context.Context) *EventticketclassUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketclassUpdateCall) Do ¶
func (c *EventticketclassUpdateCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error)
Do executes the "walletobjects.eventticketclass.update" call. Exactly one of *EventTicketClass or error will be non-nil. 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 ¶
func (c *EventticketclassUpdateCall) Fields(s ...googleapi.Field) *EventticketclassUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketclassUpdateCall) Header ¶
func (c *EventticketclassUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type EventticketobjectAddmessageCall ¶
type EventticketobjectAddmessageCall struct {
// contains filtered or unexported fields
}
func (*EventticketobjectAddmessageCall) Context ¶
func (c *EventticketobjectAddmessageCall) Context(ctx context.Context) *EventticketobjectAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketobjectAddmessageCall) Do ¶
func (c *EventticketobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*EventTicketObjectAddMessageResponse, error)
Do executes the "walletobjects.eventticketobject.addmessage" call. Exactly one of *EventTicketObjectAddMessageResponse or error will be non-nil. 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 ¶
func (c *EventticketobjectAddmessageCall) Fields(s ...googleapi.Field) *EventticketobjectAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketobjectAddmessageCall) Header ¶
func (c *EventticketobjectAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type EventticketobjectGetCall ¶
type EventticketobjectGetCall struct {
// contains filtered or unexported fields
}
func (*EventticketobjectGetCall) Context ¶
func (c *EventticketobjectGetCall) Context(ctx context.Context) *EventticketobjectGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketobjectGetCall) Do ¶
func (c *EventticketobjectGetCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
Do executes the "walletobjects.eventticketobject.get" call. Exactly one of *EventTicketObject or error will be non-nil. 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 ¶
func (c *EventticketobjectGetCall) Fields(s ...googleapi.Field) *EventticketobjectGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketobjectGetCall) Header ¶
func (c *EventticketobjectGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*EventticketobjectGetCall) IfNoneMatch ¶
func (c *EventticketobjectGetCall) IfNoneMatch(entityTag string) *EventticketobjectGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EventticketobjectInsertCall ¶
type EventticketobjectInsertCall struct {
// contains filtered or unexported fields
}
func (*EventticketobjectInsertCall) Context ¶
func (c *EventticketobjectInsertCall) Context(ctx context.Context) *EventticketobjectInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketobjectInsertCall) Do ¶
func (c *EventticketobjectInsertCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
Do executes the "walletobjects.eventticketobject.insert" call. Exactly one of *EventTicketObject or error will be non-nil. 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 ¶
func (c *EventticketobjectInsertCall) Fields(s ...googleapi.Field) *EventticketobjectInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketobjectInsertCall) Header ¶
func (c *EventticketobjectInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type EventticketobjectListCall ¶
type EventticketobjectListCall struct {
// contains filtered or unexported fields
}
func (*EventticketobjectListCall) ClassId ¶
func (c *EventticketobjectListCall) ClassId(classId string) *EventticketobjectListCall
ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.
func (*EventticketobjectListCall) Context ¶
func (c *EventticketobjectListCall) Context(ctx context.Context) *EventticketobjectListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketobjectListCall) Do ¶
func (c *EventticketobjectListCall) Do(opts ...googleapi.CallOption) (*EventTicketObjectListResponse, error)
Do executes the "walletobjects.eventticketobject.list" call. Exactly one of *EventTicketObjectListResponse or error will be non-nil. 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 ¶
func (c *EventticketobjectListCall) Fields(s ...googleapi.Field) *EventticketobjectListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketobjectListCall) Header ¶
func (c *EventticketobjectListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*EventticketobjectListCall) IfNoneMatch ¶
func (c *EventticketobjectListCall) IfNoneMatch(entityTag string) *EventticketobjectListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *EventticketobjectListCall) Token(token string) *EventticketobjectListCall
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 ¶
func (c *EventticketobjectModifylinkedofferobjectsCall) Context(ctx context.Context) *EventticketobjectModifylinkedofferobjectsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketobjectModifylinkedofferobjectsCall) Do ¶
func (c *EventticketobjectModifylinkedofferobjectsCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
Do executes the "walletobjects.eventticketobject.modifylinkedofferobjects" call. Exactly one of *EventTicketObject or error will be non-nil. 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 ¶
func (c *EventticketobjectModifylinkedofferobjectsCall) Fields(s ...googleapi.Field) *EventticketobjectModifylinkedofferobjectsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketobjectModifylinkedofferobjectsCall) Header ¶
func (c *EventticketobjectModifylinkedofferobjectsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type EventticketobjectPatchCall ¶
type EventticketobjectPatchCall struct {
// contains filtered or unexported fields
}
func (*EventticketobjectPatchCall) Context ¶
func (c *EventticketobjectPatchCall) Context(ctx context.Context) *EventticketobjectPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketobjectPatchCall) Do ¶
func (c *EventticketobjectPatchCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
Do executes the "walletobjects.eventticketobject.patch" call. Exactly one of *EventTicketObject or error will be non-nil. 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 ¶
func (c *EventticketobjectPatchCall) Fields(s ...googleapi.Field) *EventticketobjectPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketobjectPatchCall) Header ¶
func (c *EventticketobjectPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*EventticketobjectService) Get ¶
func (r *EventticketobjectService) Get(resourceId string) *EventticketobjectGetCall
Get: Returns the event ticket object with the given object ID.
func (*EventticketobjectService) Insert ¶
func (r *EventticketobjectService) Insert(eventticketobject *EventTicketObject) *EventticketobjectInsertCall
Insert: Inserts an event ticket object with the given ID and properties.
func (*EventticketobjectService) List ¶
func (r *EventticketobjectService) List() *EventticketobjectListCall
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.
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.
func (*EventticketobjectService) Update ¶
func (r *EventticketobjectService) Update(resourceId string, eventticketobject *EventTicketObject) *EventticketobjectUpdateCall
Update: Updates the event ticket object referenced by the given object ID.
type EventticketobjectUpdateCall ¶
type EventticketobjectUpdateCall struct {
// contains filtered or unexported fields
}
func (*EventticketobjectUpdateCall) Context ¶
func (c *EventticketobjectUpdateCall) Context(ctx context.Context) *EventticketobjectUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventticketobjectUpdateCall) Do ¶
func (c *EventticketobjectUpdateCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error)
Do executes the "walletobjects.eventticketobject.update" call. Exactly one of *EventTicketObject or error will be non-nil. 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 ¶
func (c *EventticketobjectUpdateCall) Fields(s ...googleapi.Field) *EventticketobjectUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventticketobjectUpdateCall) Header ¶
func (c *EventticketobjectUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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" // "DATE_TIME" // "dateTime" - Legacy alias for `DATE_TIME`. Deprecated. // "DATE_ONLY" // "dateOnly" - Legacy alias for `DATE_ONLY`. Deprecated. // "TIME_ONLY" // "timeOnly" - Legacy alias for `TIME_ONLY`. Deprecated. // "DATE_TIME_YEAR" // "dateTimeYear" - Legacy alias for `DATE_TIME_YEAR`. Deprecated. // "DATE_YEAR" // "dateYear" - Legacy alias for `DATE_YEAR`. Deprecated. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*FirstRowOption) MarshalJSON ¶
func (s *FirstRowOption) MarshalJSON() ([]byte, error)
type FlightCarrier ¶
type FlightCarrier struct { // AirlineAllianceLogo: A logo for the airline alliance, displayed above // the QR code that the // passenger scans to board. AirlineAllianceLogo *Image `json:"airlineAllianceLogo,omitempty"` // AirlineLogo: A logo for the airline described by carrierIataCode // and // 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"` // ForceSendFields is a list of field names (e.g. "AirlineAllianceLogo") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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"` // 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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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"` // 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. // // If this is not set, Google will set it based on data from other // sources. 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: // <ul> // <li>It differs from the scheduled time. Google will use it to // calculate // the delay.</li> // <li>The aircraft already arrived at the gate. Google will use it // to // inform the user that the flight has arrived at the gate.</li> // </ul> // // 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. // // If this is not set, Google will set it based on data from other // sources. 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: // <ul> // <li>It differs from the scheduled time. Google will use it to // calculate // the delay.</li> // <li>The aircraft already pulled from the gate. Google will use it // to // inform the user when the flight actually departed.</li> // </ul> // // 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. // // If this is not set, Google will set it based on data from other // sources. 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. // // If this is not set, Google will set it based on data from other // sources. 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 []*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" // "MULTIPLE_HOLDERS" - Multiple users on multiple devices are // allowed. // "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. // Deprecated. // "ONE_USER_ALL_DEVICES" - One user on multiple devices is allowed. // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. // Deprecated. // "ONE_USER_ONE_DEVICE" - Intended for use by select partners in // limited circumstances. Contact // support for additional information. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. // Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` // Origin: Required. Origin airport. Origin *AirportInfo `json:"origin,omitempty"` // RedemptionIssuers: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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"` // 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"` // 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*FlightHeader) MarshalJSON ¶
func (s *FlightHeader) MarshalJSON() ([]byte, error)
type FlightObject ¶
type FlightObject struct { // AppLinkData: Optional information about the partner app link. 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 // <var>issuer // ID</var>.<var>identifier</var> 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"` // 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"` // 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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"` // 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"` // SecurityProgramLogo: An image for the security program that applies // to the passenger. SecurityProgramLogo *Image `json:"securityProgramLogo,omitempty"` // SmartTapRedemptionValue: Available only to Smart Tap enabled // partners. Contact support for // additional guidance. 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 no // longer displayed in the Google Pay app. // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *FlightclassAddmessageCall) Context(ctx context.Context) *FlightclassAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightclassAddmessageCall) Do ¶
func (c *FlightclassAddmessageCall) Do(opts ...googleapi.CallOption) (*FlightClassAddMessageResponse, error)
Do executes the "walletobjects.flightclass.addmessage" call. Exactly one of *FlightClassAddMessageResponse or error will be non-nil. 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 ¶
func (c *FlightclassAddmessageCall) Fields(s ...googleapi.Field) *FlightclassAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightclassAddmessageCall) Header ¶
func (c *FlightclassAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FlightclassGetCall ¶
type FlightclassGetCall struct {
// contains filtered or unexported fields
}
func (*FlightclassGetCall) Context ¶
func (c *FlightclassGetCall) Context(ctx context.Context) *FlightclassGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightclassGetCall) Do ¶
func (c *FlightclassGetCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
Do executes the "walletobjects.flightclass.get" call. Exactly one of *FlightClass or error will be non-nil. 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 ¶
func (c *FlightclassGetCall) Fields(s ...googleapi.Field) *FlightclassGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightclassGetCall) Header ¶
func (c *FlightclassGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FlightclassGetCall) IfNoneMatch ¶
func (c *FlightclassGetCall) IfNoneMatch(entityTag string) *FlightclassGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type FlightclassInsertCall ¶
type FlightclassInsertCall struct {
// contains filtered or unexported fields
}
func (*FlightclassInsertCall) Context ¶
func (c *FlightclassInsertCall) Context(ctx context.Context) *FlightclassInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightclassInsertCall) Do ¶
func (c *FlightclassInsertCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
Do executes the "walletobjects.flightclass.insert" call. Exactly one of *FlightClass or error will be non-nil. 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 ¶
func (c *FlightclassInsertCall) Fields(s ...googleapi.Field) *FlightclassInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightclassInsertCall) Header ¶
func (c *FlightclassInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FlightclassListCall ¶
type FlightclassListCall struct {
// contains filtered or unexported fields
}
func (*FlightclassListCall) Context ¶
func (c *FlightclassListCall) Context(ctx context.Context) *FlightclassListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightclassListCall) Do ¶
func (c *FlightclassListCall) Do(opts ...googleapi.CallOption) (*FlightClassListResponse, error)
Do executes the "walletobjects.flightclass.list" call. Exactly one of *FlightClassListResponse or error will be non-nil. 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 ¶
func (c *FlightclassListCall) Fields(s ...googleapi.Field) *FlightclassListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightclassListCall) Header ¶
func (c *FlightclassListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FlightclassListCall) IfNoneMatch ¶
func (c *FlightclassListCall) IfNoneMatch(entityTag string) *FlightclassListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *FlightclassListCall) Token(token string) *FlightclassListCall
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 ¶
func (c *FlightclassPatchCall) Context(ctx context.Context) *FlightclassPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightclassPatchCall) Do ¶
func (c *FlightclassPatchCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
Do executes the "walletobjects.flightclass.patch" call. Exactly one of *FlightClass or error will be non-nil. 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 ¶
func (c *FlightclassPatchCall) Fields(s ...googleapi.Field) *FlightclassPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightclassPatchCall) Header ¶
func (c *FlightclassPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*FlightclassService) Get ¶
func (r *FlightclassService) Get(resourceId string) *FlightclassGetCall
Get: Returns the flight class with the given class ID.
func (*FlightclassService) Insert ¶
func (r *FlightclassService) Insert(flightclass *FlightClass) *FlightclassInsertCall
Insert: Inserts an flight class with the given ID and properties.
func (*FlightclassService) List ¶
func (r *FlightclassService) List() *FlightclassListCall
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.
func (*FlightclassService) Update ¶
func (r *FlightclassService) Update(resourceId string, flightclass *FlightClass) *FlightclassUpdateCall
Update: Updates the flight class referenced by the given class ID.
type FlightclassUpdateCall ¶
type FlightclassUpdateCall struct {
// contains filtered or unexported fields
}
func (*FlightclassUpdateCall) Context ¶
func (c *FlightclassUpdateCall) Context(ctx context.Context) *FlightclassUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightclassUpdateCall) Do ¶
func (c *FlightclassUpdateCall) Do(opts ...googleapi.CallOption) (*FlightClass, error)
Do executes the "walletobjects.flightclass.update" call. Exactly one of *FlightClass or error will be non-nil. 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 ¶
func (c *FlightclassUpdateCall) Fields(s ...googleapi.Field) *FlightclassUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightclassUpdateCall) Header ¶
func (c *FlightclassUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FlightobjectAddmessageCall ¶
type FlightobjectAddmessageCall struct {
// contains filtered or unexported fields
}
func (*FlightobjectAddmessageCall) Context ¶
func (c *FlightobjectAddmessageCall) Context(ctx context.Context) *FlightobjectAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightobjectAddmessageCall) Do ¶
func (c *FlightobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*FlightObjectAddMessageResponse, error)
Do executes the "walletobjects.flightobject.addmessage" call. Exactly one of *FlightObjectAddMessageResponse or error will be non-nil. 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 ¶
func (c *FlightobjectAddmessageCall) Fields(s ...googleapi.Field) *FlightobjectAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightobjectAddmessageCall) Header ¶
func (c *FlightobjectAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FlightobjectGetCall ¶
type FlightobjectGetCall struct {
// contains filtered or unexported fields
}
func (*FlightobjectGetCall) Context ¶
func (c *FlightobjectGetCall) Context(ctx context.Context) *FlightobjectGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightobjectGetCall) Do ¶
func (c *FlightobjectGetCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
Do executes the "walletobjects.flightobject.get" call. Exactly one of *FlightObject or error will be non-nil. 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 ¶
func (c *FlightobjectGetCall) Fields(s ...googleapi.Field) *FlightobjectGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightobjectGetCall) Header ¶
func (c *FlightobjectGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FlightobjectGetCall) IfNoneMatch ¶
func (c *FlightobjectGetCall) IfNoneMatch(entityTag string) *FlightobjectGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type FlightobjectInsertCall ¶
type FlightobjectInsertCall struct {
// contains filtered or unexported fields
}
func (*FlightobjectInsertCall) Context ¶
func (c *FlightobjectInsertCall) Context(ctx context.Context) *FlightobjectInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightobjectInsertCall) Do ¶
func (c *FlightobjectInsertCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
Do executes the "walletobjects.flightobject.insert" call. Exactly one of *FlightObject or error will be non-nil. 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 ¶
func (c *FlightobjectInsertCall) Fields(s ...googleapi.Field) *FlightobjectInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightobjectInsertCall) Header ¶
func (c *FlightobjectInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
func (c *FlightobjectListCall) Context(ctx context.Context) *FlightobjectListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightobjectListCall) Do ¶
func (c *FlightobjectListCall) Do(opts ...googleapi.CallOption) (*FlightObjectListResponse, error)
Do executes the "walletobjects.flightobject.list" call. Exactly one of *FlightObjectListResponse or error will be non-nil. 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 ¶
func (c *FlightobjectListCall) Fields(s ...googleapi.Field) *FlightobjectListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightobjectListCall) Header ¶
func (c *FlightobjectListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FlightobjectListCall) IfNoneMatch ¶
func (c *FlightobjectListCall) IfNoneMatch(entityTag string) *FlightobjectListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *FlightobjectListCall) Token(token string) *FlightobjectListCall
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 ¶
func (c *FlightobjectPatchCall) Context(ctx context.Context) *FlightobjectPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightobjectPatchCall) Do ¶
func (c *FlightobjectPatchCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
Do executes the "walletobjects.flightobject.patch" call. Exactly one of *FlightObject or error will be non-nil. 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 ¶
func (c *FlightobjectPatchCall) Fields(s ...googleapi.Field) *FlightobjectPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightobjectPatchCall) Header ¶
func (c *FlightobjectPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*FlightobjectService) Get ¶
func (r *FlightobjectService) Get(resourceId string) *FlightobjectGetCall
Get: Returns the flight object with the given object ID.
func (*FlightobjectService) Insert ¶
func (r *FlightobjectService) Insert(flightobject *FlightObject) *FlightobjectInsertCall
Insert: Inserts an flight object with the given ID and properties.
func (*FlightobjectService) List ¶
func (r *FlightobjectService) List() *FlightobjectListCall
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.
func (*FlightobjectService) Update ¶
func (r *FlightobjectService) Update(resourceId string, flightobject *FlightObject) *FlightobjectUpdateCall
Update: Updates the flight object referenced by the given object ID.
type FlightobjectUpdateCall ¶
type FlightobjectUpdateCall struct {
// contains filtered or unexported fields
}
func (*FlightobjectUpdateCall) Context ¶
func (c *FlightobjectUpdateCall) Context(ctx context.Context) *FlightobjectUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FlightobjectUpdateCall) Do ¶
func (c *FlightobjectUpdateCall) Do(opts ...googleapi.CallOption) (*FlightObject, error)
Do executes the "walletobjects.flightobject.update" call. Exactly one of *FlightObject or error will be non-nil. 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 ¶
func (c *FlightobjectUpdateCall) Fields(s ...googleapi.Field) *FlightobjectUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FlightobjectUpdateCall) Header ¶
func (c *FlightobjectUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*FrequentFlyerInfo) MarshalJSON ¶
func (s *FrequentFlyerInfo) MarshalJSON() ([]byte, error)
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"` // 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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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" // "MULTIPLE_HOLDERS" - Multiple users on multiple devices are // allowed. // "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. // Deprecated. // "ONE_USER_ALL_DEVICES" - One user on multiple devices is allowed. // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. // Deprecated. // "ONE_USER_ONE_DEVICE" - Intended for use by select partners in // limited circumstances. Contact // support for additional information. // "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"` // ProgramLogo: The logo of the gift card program or company. This logo // is displayed in // both the details and list views of the app. ProgramLogo *Image `json:"programLogo,omitempty"` // RedemptionIssuers: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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"` // 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"` // 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GiftCardClassListResponse) MarshalJSON ¶
func (s *GiftCardClassListResponse) MarshalJSON() ([]byte, error)
type GiftCardObject ¶
type GiftCardObject struct { // AppLinkData: Optional information about the partner app link. 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 // <var>issuer // ID</var>.<var>identifier</var> 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"` // 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"` // 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 // <var>issuer // ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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"` // Pin: The card's PIN. Pin string `json:"pin,omitempty"` // SmartTapRedemptionValue: Available only to Smart Tap enabled // partners. Contact support for // additional guidance. 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 no // longer displayed in the Google Pay app. // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *GiftcardclassAddmessageCall) Context(ctx context.Context) *GiftcardclassAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardclassAddmessageCall) Do ¶
func (c *GiftcardclassAddmessageCall) Do(opts ...googleapi.CallOption) (*GiftCardClassAddMessageResponse, error)
Do executes the "walletobjects.giftcardclass.addmessage" call. Exactly one of *GiftCardClassAddMessageResponse or error will be non-nil. 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 ¶
func (c *GiftcardclassAddmessageCall) Fields(s ...googleapi.Field) *GiftcardclassAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardclassAddmessageCall) Header ¶
func (c *GiftcardclassAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GiftcardclassGetCall ¶
type GiftcardclassGetCall struct {
// contains filtered or unexported fields
}
func (*GiftcardclassGetCall) Context ¶
func (c *GiftcardclassGetCall) Context(ctx context.Context) *GiftcardclassGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardclassGetCall) Do ¶
func (c *GiftcardclassGetCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
Do executes the "walletobjects.giftcardclass.get" call. Exactly one of *GiftCardClass or error will be non-nil. 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 ¶
func (c *GiftcardclassGetCall) Fields(s ...googleapi.Field) *GiftcardclassGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardclassGetCall) Header ¶
func (c *GiftcardclassGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GiftcardclassGetCall) IfNoneMatch ¶
func (c *GiftcardclassGetCall) IfNoneMatch(entityTag string) *GiftcardclassGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GiftcardclassInsertCall ¶
type GiftcardclassInsertCall struct {
// contains filtered or unexported fields
}
func (*GiftcardclassInsertCall) Context ¶
func (c *GiftcardclassInsertCall) Context(ctx context.Context) *GiftcardclassInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardclassInsertCall) Do ¶
func (c *GiftcardclassInsertCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
Do executes the "walletobjects.giftcardclass.insert" call. Exactly one of *GiftCardClass or error will be non-nil. 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 ¶
func (c *GiftcardclassInsertCall) Fields(s ...googleapi.Field) *GiftcardclassInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardclassInsertCall) Header ¶
func (c *GiftcardclassInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GiftcardclassListCall ¶
type GiftcardclassListCall struct {
// contains filtered or unexported fields
}
func (*GiftcardclassListCall) Context ¶
func (c *GiftcardclassListCall) Context(ctx context.Context) *GiftcardclassListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardclassListCall) Do ¶
func (c *GiftcardclassListCall) Do(opts ...googleapi.CallOption) (*GiftCardClassListResponse, error)
Do executes the "walletobjects.giftcardclass.list" call. Exactly one of *GiftCardClassListResponse or error will be non-nil. 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 ¶
func (c *GiftcardclassListCall) Fields(s ...googleapi.Field) *GiftcardclassListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardclassListCall) Header ¶
func (c *GiftcardclassListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GiftcardclassListCall) IfNoneMatch ¶
func (c *GiftcardclassListCall) IfNoneMatch(entityTag string) *GiftcardclassListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *GiftcardclassListCall) Token(token string) *GiftcardclassListCall
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 ¶
func (c *GiftcardclassPatchCall) Context(ctx context.Context) *GiftcardclassPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardclassPatchCall) Do ¶
func (c *GiftcardclassPatchCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
Do executes the "walletobjects.giftcardclass.patch" call. Exactly one of *GiftCardClass or error will be non-nil. 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 ¶
func (c *GiftcardclassPatchCall) Fields(s ...googleapi.Field) *GiftcardclassPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardclassPatchCall) Header ¶
func (c *GiftcardclassPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*GiftcardclassService) Get ¶
func (r *GiftcardclassService) Get(resourceId string) *GiftcardclassGetCall
Get: Returns the gift card class with the given class ID.
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 ¶
func (r *GiftcardclassService) List() *GiftcardclassListCall
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.
func (*GiftcardclassService) Update ¶
func (r *GiftcardclassService) Update(resourceId string, giftcardclass *GiftCardClass) *GiftcardclassUpdateCall
Update: Updates the gift card class referenced by the given class ID.
type GiftcardclassUpdateCall ¶
type GiftcardclassUpdateCall struct {
// contains filtered or unexported fields
}
func (*GiftcardclassUpdateCall) Context ¶
func (c *GiftcardclassUpdateCall) Context(ctx context.Context) *GiftcardclassUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardclassUpdateCall) Do ¶
func (c *GiftcardclassUpdateCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error)
Do executes the "walletobjects.giftcardclass.update" call. Exactly one of *GiftCardClass or error will be non-nil. 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 ¶
func (c *GiftcardclassUpdateCall) Fields(s ...googleapi.Field) *GiftcardclassUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardclassUpdateCall) Header ¶
func (c *GiftcardclassUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GiftcardobjectAddmessageCall ¶
type GiftcardobjectAddmessageCall struct {
// contains filtered or unexported fields
}
func (*GiftcardobjectAddmessageCall) Context ¶
func (c *GiftcardobjectAddmessageCall) Context(ctx context.Context) *GiftcardobjectAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardobjectAddmessageCall) Do ¶
func (c *GiftcardobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*GiftCardObjectAddMessageResponse, error)
Do executes the "walletobjects.giftcardobject.addmessage" call. Exactly one of *GiftCardObjectAddMessageResponse or error will be non-nil. 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 ¶
func (c *GiftcardobjectAddmessageCall) Fields(s ...googleapi.Field) *GiftcardobjectAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardobjectAddmessageCall) Header ¶
func (c *GiftcardobjectAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GiftcardobjectGetCall ¶
type GiftcardobjectGetCall struct {
// contains filtered or unexported fields
}
func (*GiftcardobjectGetCall) Context ¶
func (c *GiftcardobjectGetCall) Context(ctx context.Context) *GiftcardobjectGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardobjectGetCall) Do ¶
func (c *GiftcardobjectGetCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
Do executes the "walletobjects.giftcardobject.get" call. Exactly one of *GiftCardObject or error will be non-nil. 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 ¶
func (c *GiftcardobjectGetCall) Fields(s ...googleapi.Field) *GiftcardobjectGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardobjectGetCall) Header ¶
func (c *GiftcardobjectGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GiftcardobjectGetCall) IfNoneMatch ¶
func (c *GiftcardobjectGetCall) IfNoneMatch(entityTag string) *GiftcardobjectGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GiftcardobjectInsertCall ¶
type GiftcardobjectInsertCall struct {
// contains filtered or unexported fields
}
func (*GiftcardobjectInsertCall) Context ¶
func (c *GiftcardobjectInsertCall) Context(ctx context.Context) *GiftcardobjectInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardobjectInsertCall) Do ¶
func (c *GiftcardobjectInsertCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
Do executes the "walletobjects.giftcardobject.insert" call. Exactly one of *GiftCardObject or error will be non-nil. 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 ¶
func (c *GiftcardobjectInsertCall) Fields(s ...googleapi.Field) *GiftcardobjectInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardobjectInsertCall) Header ¶
func (c *GiftcardobjectInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GiftcardobjectListCall ¶
type GiftcardobjectListCall struct {
// contains filtered or unexported fields
}
func (*GiftcardobjectListCall) ClassId ¶
func (c *GiftcardobjectListCall) ClassId(classId string) *GiftcardobjectListCall
ClassId sets the optional parameter "classId": The ID of the class whose objects will be listed.
func (*GiftcardobjectListCall) Context ¶
func (c *GiftcardobjectListCall) Context(ctx context.Context) *GiftcardobjectListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardobjectListCall) Do ¶
func (c *GiftcardobjectListCall) Do(opts ...googleapi.CallOption) (*GiftCardObjectListResponse, error)
Do executes the "walletobjects.giftcardobject.list" call. Exactly one of *GiftCardObjectListResponse or error will be non-nil. 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 ¶
func (c *GiftcardobjectListCall) Fields(s ...googleapi.Field) *GiftcardobjectListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardobjectListCall) Header ¶
func (c *GiftcardobjectListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GiftcardobjectListCall) IfNoneMatch ¶
func (c *GiftcardobjectListCall) IfNoneMatch(entityTag string) *GiftcardobjectListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *GiftcardobjectListCall) Token(token string) *GiftcardobjectListCall
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 ¶
func (c *GiftcardobjectPatchCall) Context(ctx context.Context) *GiftcardobjectPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardobjectPatchCall) Do ¶
func (c *GiftcardobjectPatchCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
Do executes the "walletobjects.giftcardobject.patch" call. Exactly one of *GiftCardObject or error will be non-nil. 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 ¶
func (c *GiftcardobjectPatchCall) Fields(s ...googleapi.Field) *GiftcardobjectPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardobjectPatchCall) Header ¶
func (c *GiftcardobjectPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*GiftcardobjectService) Get ¶
func (r *GiftcardobjectService) Get(resourceId string) *GiftcardobjectGetCall
Get: Returns the gift card object with the given object ID.
func (*GiftcardobjectService) Insert ¶
func (r *GiftcardobjectService) Insert(giftcardobject *GiftCardObject) *GiftcardobjectInsertCall
Insert: Inserts an gift card object with the given ID and properties.
func (*GiftcardobjectService) List ¶
func (r *GiftcardobjectService) List() *GiftcardobjectListCall
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.
func (*GiftcardobjectService) Update ¶
func (r *GiftcardobjectService) Update(resourceId string, giftcardobject *GiftCardObject) *GiftcardobjectUpdateCall
Update: Updates the gift card object referenced by the given object ID.
type GiftcardobjectUpdateCall ¶
type GiftcardobjectUpdateCall struct {
// contains filtered or unexported fields
}
func (*GiftcardobjectUpdateCall) Context ¶
func (c *GiftcardobjectUpdateCall) Context(ctx context.Context) *GiftcardobjectUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GiftcardobjectUpdateCall) Do ¶
func (c *GiftcardobjectUpdateCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error)
Do executes the "walletobjects.giftcardobject.update" call. Exactly one of *GiftCardObject or error will be non-nil. 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 ¶
func (c *GiftcardobjectUpdateCall) Fields(s ...googleapi.Field) *GiftcardobjectUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GiftcardobjectUpdateCall) Header ¶
func (c *GiftcardobjectUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GroupingInfo ¶
type GroupingInfo struct { // 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 same sort index, the sorting behavior is // undefined. SortIndex int64 `json:"sortIndex,omitempty"` // ForceSendFields is a list of field names (e.g. "SortIndex") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "SortIndex") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GroupingInfo: NEXT_ID: 2
func (*GroupingInfo) MarshalJSON ¶
func (s *GroupingInfo) MarshalJSON() ([]byte, error)
type Image ¶
type Image struct { // 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. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Image: Wrapping type for Google hosted images.
func (*Image) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ImageUri) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*InfoModuleData) MarshalJSON ¶
func (s *InfoModuleData) MarshalJSON() ([]byte, error)
type Issuer ¶
type Issuer struct { // 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. "ContactInfo") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContactInfo") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Issuer) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*IssuerGetCall) Do ¶
func (c *IssuerGetCall) Do(opts ...googleapi.CallOption) (*Issuer, error)
Do executes the "walletobjects.issuer.get" call. Exactly one of *Issuer or error will be non-nil. 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 information.
func (*IssuerGetCall) Header ¶
func (c *IssuerGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*IssuerGetCall) IfNoneMatch ¶
func (c *IssuerGetCall) IfNoneMatch(entityTag string) *IssuerGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type IssuerInsertCall ¶
type IssuerInsertCall struct {
// contains filtered or unexported fields
}
func (*IssuerInsertCall) Context ¶
func (c *IssuerInsertCall) Context(ctx context.Context) *IssuerInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*IssuerInsertCall) Do ¶
func (c *IssuerInsertCall) Do(opts ...googleapi.CallOption) (*Issuer, error)
Do executes the "walletobjects.issuer.insert" call. Exactly one of *Issuer or error will be non-nil. 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 ¶
func (c *IssuerInsertCall) Fields(s ...googleapi.Field) *IssuerInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*IssuerInsertCall) Header ¶
func (c *IssuerInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*IssuerListCall) Do ¶
func (c *IssuerListCall) Do(opts ...googleapi.CallOption) (*IssuerListResponse, error)
Do executes the "walletobjects.issuer.list" call. Exactly one of *IssuerListResponse or error will be non-nil. 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 information.
func (*IssuerListCall) Header ¶
func (c *IssuerListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*IssuerListCall) IfNoneMatch ¶
func (c *IssuerListCall) IfNoneMatch(entityTag string) *IssuerListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *IssuerPatchCall) Context(ctx context.Context) *IssuerPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*IssuerPatchCall) Do ¶
func (c *IssuerPatchCall) Do(opts ...googleapi.CallOption) (*Issuer, error)
Do executes the "walletobjects.issuer.patch" call. Exactly one of *Issuer or error will be non-nil. 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 ¶
func (c *IssuerPatchCall) Fields(s ...googleapi.Field) *IssuerPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*IssuerPatchCall) Header ¶
func (c *IssuerPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
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.
func (*IssuerService) Update ¶
func (r *IssuerService) Update(resourceId int64, issuer *Issuer) *IssuerUpdateCall
Update: Updates the issuer referenced by the given issuer ID.
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *IssuerUpdateCall) Context(ctx context.Context) *IssuerUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*IssuerUpdateCall) Do ¶
func (c *IssuerUpdateCall) Do(opts ...googleapi.CallOption) (*Issuer, error)
Do executes the "walletobjects.issuer.update" call. Exactly one of *Issuer or error will be non-nil. 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 ¶
func (c *IssuerUpdateCall) Fields(s ...googleapi.Field) *IssuerUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*IssuerUpdateCall) Header ¶
func (c *IssuerUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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. Any pending HTTP request will be aborted if the provided context is canceled.
func (*JwtInsertCall) Do ¶
func (c *JwtInsertCall) Do(opts ...googleapi.CallOption) (*JwtInsertResponse, error)
Do executes the "walletobjects.jwt.insert" call. Exactly one of *JwtInsertResponse or error will be non-nil. 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 information.
func (*JwtInsertCall) Header ¶
func (c *JwtInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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/pay/passes/reference/s2w-reference#go // ogle-pay-api-for-passes-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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 what the // will be displayed in // the first row. 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 // the // departure date shared by all objects. SecondRowOption *FieldSelector `json:"secondRowOption,omitempty"` // ThirdRowOption: A reference to the field to be displayed in the third // row. // // This option is only displayed if there are not multiple user objects // in a // group. If there is a group, the third row will always display the // number // of objects in the group. Eg: "3 passes" 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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"` // 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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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" // "MULTIPLE_HOLDERS" - Multiple users on multiple devices are // allowed. // "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. // Deprecated. // "ONE_USER_ALL_DEVICES" - One user on multiple devices is allowed. // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. // Deprecated. // "ONE_USER_ONE_DEVICE" - Intended for use by select partners in // limited circumstances. Contact // support for additional information. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. // Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` // ProgramLogo: Required. The logo of the loyalty program or company. // This logo 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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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"` // 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"` // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 information about the partner app link. 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 // <var>issuer // ID</var>.<var>identifier</var> 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"` // 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"` // 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 // <var>issuer // ID</var>.<var>identifier</var> 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 // <var>issuer ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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"` // SecondaryLoyaltyPoints: The secondary loyalty reward points label, // balance, and type. Shown in // addition to the primary loyalty points. SecondaryLoyaltyPoints *LoyaltyPoints `json:"secondaryLoyaltyPoints,omitempty"` // SmartTapRedemptionValue: Available only to Smart Tap enabled // partners. Contact support for // additional guidance. 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 no // longer displayed in the Google Pay app. // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *LoyaltyclassAddmessageCall) Context(ctx context.Context) *LoyaltyclassAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyclassAddmessageCall) Do ¶
func (c *LoyaltyclassAddmessageCall) Do(opts ...googleapi.CallOption) (*LoyaltyClassAddMessageResponse, error)
Do executes the "walletobjects.loyaltyclass.addmessage" call. Exactly one of *LoyaltyClassAddMessageResponse or error will be non-nil. 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 ¶
func (c *LoyaltyclassAddmessageCall) Fields(s ...googleapi.Field) *LoyaltyclassAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyclassAddmessageCall) Header ¶
func (c *LoyaltyclassAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LoyaltyclassGetCall ¶
type LoyaltyclassGetCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyclassGetCall) Context ¶
func (c *LoyaltyclassGetCall) Context(ctx context.Context) *LoyaltyclassGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyclassGetCall) Do ¶
func (c *LoyaltyclassGetCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
Do executes the "walletobjects.loyaltyclass.get" call. Exactly one of *LoyaltyClass or error will be non-nil. 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 ¶
func (c *LoyaltyclassGetCall) Fields(s ...googleapi.Field) *LoyaltyclassGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyclassGetCall) Header ¶
func (c *LoyaltyclassGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LoyaltyclassGetCall) IfNoneMatch ¶
func (c *LoyaltyclassGetCall) IfNoneMatch(entityTag string) *LoyaltyclassGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type LoyaltyclassInsertCall ¶
type LoyaltyclassInsertCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyclassInsertCall) Context ¶
func (c *LoyaltyclassInsertCall) Context(ctx context.Context) *LoyaltyclassInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyclassInsertCall) Do ¶
func (c *LoyaltyclassInsertCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
Do executes the "walletobjects.loyaltyclass.insert" call. Exactly one of *LoyaltyClass or error will be non-nil. 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 ¶
func (c *LoyaltyclassInsertCall) Fields(s ...googleapi.Field) *LoyaltyclassInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyclassInsertCall) Header ¶
func (c *LoyaltyclassInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LoyaltyclassListCall ¶
type LoyaltyclassListCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyclassListCall) Context ¶
func (c *LoyaltyclassListCall) Context(ctx context.Context) *LoyaltyclassListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyclassListCall) Do ¶
func (c *LoyaltyclassListCall) Do(opts ...googleapi.CallOption) (*LoyaltyClassListResponse, error)
Do executes the "walletobjects.loyaltyclass.list" call. Exactly one of *LoyaltyClassListResponse or error will be non-nil. 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 ¶
func (c *LoyaltyclassListCall) Fields(s ...googleapi.Field) *LoyaltyclassListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyclassListCall) Header ¶
func (c *LoyaltyclassListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LoyaltyclassListCall) IfNoneMatch ¶
func (c *LoyaltyclassListCall) IfNoneMatch(entityTag string) *LoyaltyclassListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *LoyaltyclassListCall) Token(token string) *LoyaltyclassListCall
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 ¶
func (c *LoyaltyclassPatchCall) Context(ctx context.Context) *LoyaltyclassPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyclassPatchCall) Do ¶
func (c *LoyaltyclassPatchCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
Do executes the "walletobjects.loyaltyclass.patch" call. Exactly one of *LoyaltyClass or error will be non-nil. 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 ¶
func (c *LoyaltyclassPatchCall) Fields(s ...googleapi.Field) *LoyaltyclassPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyclassPatchCall) Header ¶
func (c *LoyaltyclassPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*LoyaltyclassService) Get ¶
func (r *LoyaltyclassService) Get(resourceId string) *LoyaltyclassGetCall
Get: Returns the loyalty class with the given class ID.
func (*LoyaltyclassService) Insert ¶
func (r *LoyaltyclassService) Insert(loyaltyclass *LoyaltyClass) *LoyaltyclassInsertCall
Insert: Inserts an loyalty class with the given ID and properties.
func (*LoyaltyclassService) List ¶
func (r *LoyaltyclassService) List() *LoyaltyclassListCall
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.
func (*LoyaltyclassService) Update ¶
func (r *LoyaltyclassService) Update(resourceId string, loyaltyclass *LoyaltyClass) *LoyaltyclassUpdateCall
Update: Updates the loyalty class referenced by the given class ID.
type LoyaltyclassUpdateCall ¶
type LoyaltyclassUpdateCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyclassUpdateCall) Context ¶
func (c *LoyaltyclassUpdateCall) Context(ctx context.Context) *LoyaltyclassUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyclassUpdateCall) Do ¶
func (c *LoyaltyclassUpdateCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error)
Do executes the "walletobjects.loyaltyclass.update" call. Exactly one of *LoyaltyClass or error will be non-nil. 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 ¶
func (c *LoyaltyclassUpdateCall) Fields(s ...googleapi.Field) *LoyaltyclassUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyclassUpdateCall) Header ¶
func (c *LoyaltyclassUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LoyaltyobjectAddmessageCall ¶
type LoyaltyobjectAddmessageCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyobjectAddmessageCall) Context ¶
func (c *LoyaltyobjectAddmessageCall) Context(ctx context.Context) *LoyaltyobjectAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyobjectAddmessageCall) Do ¶
func (c *LoyaltyobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*LoyaltyObjectAddMessageResponse, error)
Do executes the "walletobjects.loyaltyobject.addmessage" call. Exactly one of *LoyaltyObjectAddMessageResponse or error will be non-nil. 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 ¶
func (c *LoyaltyobjectAddmessageCall) Fields(s ...googleapi.Field) *LoyaltyobjectAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyobjectAddmessageCall) Header ¶
func (c *LoyaltyobjectAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LoyaltyobjectGetCall ¶
type LoyaltyobjectGetCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyobjectGetCall) Context ¶
func (c *LoyaltyobjectGetCall) Context(ctx context.Context) *LoyaltyobjectGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyobjectGetCall) Do ¶
func (c *LoyaltyobjectGetCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
Do executes the "walletobjects.loyaltyobject.get" call. Exactly one of *LoyaltyObject or error will be non-nil. 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 ¶
func (c *LoyaltyobjectGetCall) Fields(s ...googleapi.Field) *LoyaltyobjectGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyobjectGetCall) Header ¶
func (c *LoyaltyobjectGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LoyaltyobjectGetCall) IfNoneMatch ¶
func (c *LoyaltyobjectGetCall) IfNoneMatch(entityTag string) *LoyaltyobjectGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type LoyaltyobjectInsertCall ¶
type LoyaltyobjectInsertCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyobjectInsertCall) Context ¶
func (c *LoyaltyobjectInsertCall) Context(ctx context.Context) *LoyaltyobjectInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyobjectInsertCall) Do ¶
func (c *LoyaltyobjectInsertCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
Do executes the "walletobjects.loyaltyobject.insert" call. Exactly one of *LoyaltyObject or error will be non-nil. 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 ¶
func (c *LoyaltyobjectInsertCall) Fields(s ...googleapi.Field) *LoyaltyobjectInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyobjectInsertCall) Header ¶
func (c *LoyaltyobjectInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
func (c *LoyaltyobjectListCall) Context(ctx context.Context) *LoyaltyobjectListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyobjectListCall) Do ¶
func (c *LoyaltyobjectListCall) Do(opts ...googleapi.CallOption) (*LoyaltyObjectListResponse, error)
Do executes the "walletobjects.loyaltyobject.list" call. Exactly one of *LoyaltyObjectListResponse or error will be non-nil. 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 ¶
func (c *LoyaltyobjectListCall) Fields(s ...googleapi.Field) *LoyaltyobjectListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyobjectListCall) Header ¶
func (c *LoyaltyobjectListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LoyaltyobjectListCall) IfNoneMatch ¶
func (c *LoyaltyobjectListCall) IfNoneMatch(entityTag string) *LoyaltyobjectListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *LoyaltyobjectListCall) Token(token string) *LoyaltyobjectListCall
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 ¶
func (c *LoyaltyobjectModifylinkedofferobjectsCall) Context(ctx context.Context) *LoyaltyobjectModifylinkedofferobjectsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyobjectModifylinkedofferobjectsCall) Do ¶
func (c *LoyaltyobjectModifylinkedofferobjectsCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
Do executes the "walletobjects.loyaltyobject.modifylinkedofferobjects" call. Exactly one of *LoyaltyObject or error will be non-nil. 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 ¶
func (c *LoyaltyobjectModifylinkedofferobjectsCall) Fields(s ...googleapi.Field) *LoyaltyobjectModifylinkedofferobjectsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyobjectModifylinkedofferobjectsCall) Header ¶
func (c *LoyaltyobjectModifylinkedofferobjectsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LoyaltyobjectPatchCall ¶
type LoyaltyobjectPatchCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyobjectPatchCall) Context ¶
func (c *LoyaltyobjectPatchCall) Context(ctx context.Context) *LoyaltyobjectPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyobjectPatchCall) Do ¶
func (c *LoyaltyobjectPatchCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
Do executes the "walletobjects.loyaltyobject.patch" call. Exactly one of *LoyaltyObject or error will be non-nil. 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 ¶
func (c *LoyaltyobjectPatchCall) Fields(s ...googleapi.Field) *LoyaltyobjectPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyobjectPatchCall) Header ¶
func (c *LoyaltyobjectPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*LoyaltyobjectService) Get ¶
func (r *LoyaltyobjectService) Get(resourceId string) *LoyaltyobjectGetCall
Get: Returns the loyalty object with the given object ID.
func (*LoyaltyobjectService) Insert ¶
func (r *LoyaltyobjectService) Insert(loyaltyobject *LoyaltyObject) *LoyaltyobjectInsertCall
Insert: Inserts an loyalty object with the given ID and properties.
func (*LoyaltyobjectService) List ¶
func (r *LoyaltyobjectService) List() *LoyaltyobjectListCall
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.
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.
func (*LoyaltyobjectService) Update ¶
func (r *LoyaltyobjectService) Update(resourceId string, loyaltyobject *LoyaltyObject) *LoyaltyobjectUpdateCall
Update: Updates the loyalty object referenced by the given object ID.
type LoyaltyobjectUpdateCall ¶
type LoyaltyobjectUpdateCall struct {
// contains filtered or unexported fields
}
func (*LoyaltyobjectUpdateCall) Context ¶
func (c *LoyaltyobjectUpdateCall) Context(ctx context.Context) *LoyaltyobjectUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LoyaltyobjectUpdateCall) Do ¶
func (c *LoyaltyobjectUpdateCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error)
Do executes the "walletobjects.loyaltyobject.update" call. Exactly one of *LoyaltyObject or error will be non-nil. 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 ¶
func (c *LoyaltyobjectUpdateCall) Fields(s ...googleapi.Field) *LoyaltyobjectUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LoyaltyobjectUpdateCall) Header ¶
func (c *LoyaltyobjectUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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 type of the message. Currently, this can only be set // for offers. // // 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" - Notification to display for an offer // expiration. The // `displayInterval.start.date` sets the time the notification // will appear. It can be set up to 30 days prior to the expiration // date. // If a time span greater than this is specified, then the // notification // will trigger at the 30 day mark. // "expirationNotification" - Legacy alias for // `EXPIRATION_NOTIFICATION`. Deprecated. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Message: A message that will be displayed with a Valuable
func (*Message) MarshalJSON ¶
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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Money) MarshalJSON ¶
type OfferClass ¶
type OfferClass struct { // AllowMultipleUsersPerObject: Deprecated. Use // `multipleDevicesAndHoldersAllowedStatus` // instead. AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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" // "MULTIPLE_HOLDERS" - Multiple users on multiple devices are // allowed. // "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. // Deprecated. // "ONE_USER_ALL_DEVICES" - One user on multiple devices is allowed. // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. // Deprecated. // "ONE_USER_ONE_DEVICE" - Intended for use by select partners in // limited circumstances. Contact // support for additional information. // "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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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"` // 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"` // 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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OfferClassListResponse) MarshalJSON ¶
func (s *OfferClassListResponse) MarshalJSON() ([]byte, error)
type OfferObject ¶
type OfferObject struct { // AppLinkData: Optional information about the partner app link. 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 // <var>issuer // ID</var>.<var>identifier</var> 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"` // 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"` // 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 // <var>issuer // ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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"` // SmartTapRedemptionValue: Available only to Smart Tap enabled // partners. Contact support for // additional guidance. 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 no // longer displayed in the Google Pay app. // // 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *OfferclassAddmessageCall) Context(ctx context.Context) *OfferclassAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferclassAddmessageCall) Do ¶
func (c *OfferclassAddmessageCall) Do(opts ...googleapi.CallOption) (*OfferClassAddMessageResponse, error)
Do executes the "walletobjects.offerclass.addmessage" call. Exactly one of *OfferClassAddMessageResponse or error will be non-nil. 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 ¶
func (c *OfferclassAddmessageCall) Fields(s ...googleapi.Field) *OfferclassAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferclassAddmessageCall) Header ¶
func (c *OfferclassAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OfferclassGetCall ¶
type OfferclassGetCall struct {
// contains filtered or unexported fields
}
func (*OfferclassGetCall) Context ¶
func (c *OfferclassGetCall) Context(ctx context.Context) *OfferclassGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferclassGetCall) Do ¶
func (c *OfferclassGetCall) Do(opts ...googleapi.CallOption) (*OfferClass, error)
Do executes the "walletobjects.offerclass.get" call. Exactly one of *OfferClass or error will be non-nil. 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 ¶
func (c *OfferclassGetCall) Fields(s ...googleapi.Field) *OfferclassGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferclassGetCall) Header ¶
func (c *OfferclassGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OfferclassGetCall) IfNoneMatch ¶
func (c *OfferclassGetCall) IfNoneMatch(entityTag string) *OfferclassGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OfferclassInsertCall ¶
type OfferclassInsertCall struct {
// contains filtered or unexported fields
}
func (*OfferclassInsertCall) Context ¶
func (c *OfferclassInsertCall) Context(ctx context.Context) *OfferclassInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferclassInsertCall) Do ¶
func (c *OfferclassInsertCall) Do(opts ...googleapi.CallOption) (*OfferClass, error)
Do executes the "walletobjects.offerclass.insert" call. Exactly one of *OfferClass or error will be non-nil. 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 ¶
func (c *OfferclassInsertCall) Fields(s ...googleapi.Field) *OfferclassInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferclassInsertCall) Header ¶
func (c *OfferclassInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OfferclassListCall ¶
type OfferclassListCall struct {
// contains filtered or unexported fields
}
func (*OfferclassListCall) Context ¶
func (c *OfferclassListCall) Context(ctx context.Context) *OfferclassListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferclassListCall) Do ¶
func (c *OfferclassListCall) Do(opts ...googleapi.CallOption) (*OfferClassListResponse, error)
Do executes the "walletobjects.offerclass.list" call. Exactly one of *OfferClassListResponse or error will be non-nil. 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 ¶
func (c *OfferclassListCall) Fields(s ...googleapi.Field) *OfferclassListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferclassListCall) Header ¶
func (c *OfferclassListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OfferclassListCall) IfNoneMatch ¶
func (c *OfferclassListCall) IfNoneMatch(entityTag string) *OfferclassListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *OfferclassPatchCall) Context(ctx context.Context) *OfferclassPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferclassPatchCall) Do ¶
func (c *OfferclassPatchCall) Do(opts ...googleapi.CallOption) (*OfferClass, error)
Do executes the "walletobjects.offerclass.patch" call. Exactly one of *OfferClass or error will be non-nil. 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 ¶
func (c *OfferclassPatchCall) Fields(s ...googleapi.Field) *OfferclassPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferclassPatchCall) Header ¶
func (c *OfferclassPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*OfferclassService) Get ¶
func (r *OfferclassService) Get(resourceId string) *OfferclassGetCall
Get: Returns the offer class with the given class ID.
func (*OfferclassService) Insert ¶
func (r *OfferclassService) Insert(offerclass *OfferClass) *OfferclassInsertCall
Insert: Inserts an offer class with the given ID and properties.
func (*OfferclassService) List ¶
func (r *OfferclassService) List() *OfferclassListCall
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.
func (*OfferclassService) Update ¶
func (r *OfferclassService) Update(resourceId string, offerclass *OfferClass) *OfferclassUpdateCall
Update: Updates the offer class referenced by the given class ID.
type OfferclassUpdateCall ¶
type OfferclassUpdateCall struct {
// contains filtered or unexported fields
}
func (*OfferclassUpdateCall) Context ¶
func (c *OfferclassUpdateCall) Context(ctx context.Context) *OfferclassUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferclassUpdateCall) Do ¶
func (c *OfferclassUpdateCall) Do(opts ...googleapi.CallOption) (*OfferClass, error)
Do executes the "walletobjects.offerclass.update" call. Exactly one of *OfferClass or error will be non-nil. 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 ¶
func (c *OfferclassUpdateCall) Fields(s ...googleapi.Field) *OfferclassUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferclassUpdateCall) Header ¶
func (c *OfferclassUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OfferobjectAddmessageCall ¶
type OfferobjectAddmessageCall struct {
// contains filtered or unexported fields
}
func (*OfferobjectAddmessageCall) Context ¶
func (c *OfferobjectAddmessageCall) Context(ctx context.Context) *OfferobjectAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferobjectAddmessageCall) Do ¶
func (c *OfferobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*OfferObjectAddMessageResponse, error)
Do executes the "walletobjects.offerobject.addmessage" call. Exactly one of *OfferObjectAddMessageResponse or error will be non-nil. 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 ¶
func (c *OfferobjectAddmessageCall) Fields(s ...googleapi.Field) *OfferobjectAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferobjectAddmessageCall) Header ¶
func (c *OfferobjectAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OfferobjectGetCall ¶
type OfferobjectGetCall struct {
// contains filtered or unexported fields
}
func (*OfferobjectGetCall) Context ¶
func (c *OfferobjectGetCall) Context(ctx context.Context) *OfferobjectGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferobjectGetCall) Do ¶
func (c *OfferobjectGetCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
Do executes the "walletobjects.offerobject.get" call. Exactly one of *OfferObject or error will be non-nil. 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 ¶
func (c *OfferobjectGetCall) Fields(s ...googleapi.Field) *OfferobjectGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferobjectGetCall) Header ¶
func (c *OfferobjectGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OfferobjectGetCall) IfNoneMatch ¶
func (c *OfferobjectGetCall) IfNoneMatch(entityTag string) *OfferobjectGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OfferobjectInsertCall ¶
type OfferobjectInsertCall struct {
// contains filtered or unexported fields
}
func (*OfferobjectInsertCall) Context ¶
func (c *OfferobjectInsertCall) Context(ctx context.Context) *OfferobjectInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferobjectInsertCall) Do ¶
func (c *OfferobjectInsertCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
Do executes the "walletobjects.offerobject.insert" call. Exactly one of *OfferObject or error will be non-nil. 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 ¶
func (c *OfferobjectInsertCall) Fields(s ...googleapi.Field) *OfferobjectInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferobjectInsertCall) Header ¶
func (c *OfferobjectInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
func (c *OfferobjectListCall) Context(ctx context.Context) *OfferobjectListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferobjectListCall) Do ¶
func (c *OfferobjectListCall) Do(opts ...googleapi.CallOption) (*OfferObjectListResponse, error)
Do executes the "walletobjects.offerobject.list" call. Exactly one of *OfferObjectListResponse or error will be non-nil. 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 ¶
func (c *OfferobjectListCall) Fields(s ...googleapi.Field) *OfferobjectListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferobjectListCall) Header ¶
func (c *OfferobjectListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OfferobjectListCall) IfNoneMatch ¶
func (c *OfferobjectListCall) IfNoneMatch(entityTag string) *OfferobjectListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *OfferobjectListCall) Token(token string) *OfferobjectListCall
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 ¶
func (c *OfferobjectPatchCall) Context(ctx context.Context) *OfferobjectPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferobjectPatchCall) Do ¶
func (c *OfferobjectPatchCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
Do executes the "walletobjects.offerobject.patch" call. Exactly one of *OfferObject or error will be non-nil. 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 ¶
func (c *OfferobjectPatchCall) Fields(s ...googleapi.Field) *OfferobjectPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferobjectPatchCall) Header ¶
func (c *OfferobjectPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*OfferobjectService) Get ¶
func (r *OfferobjectService) Get(resourceId string) *OfferobjectGetCall
Get: Returns the offer object with the given object ID.
func (*OfferobjectService) Insert ¶
func (r *OfferobjectService) Insert(offerobject *OfferObject) *OfferobjectInsertCall
Insert: Inserts an offer object with the given ID and properties.
func (*OfferobjectService) List ¶
func (r *OfferobjectService) List() *OfferobjectListCall
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.
func (*OfferobjectService) Update ¶
func (r *OfferobjectService) Update(resourceId string, offerobject *OfferObject) *OfferobjectUpdateCall
Update: Updates the offer object referenced by the given object ID.
type OfferobjectUpdateCall ¶
type OfferobjectUpdateCall struct {
// contains filtered or unexported fields
}
func (*OfferobjectUpdateCall) Context ¶
func (c *OfferobjectUpdateCall) Context(ctx context.Context) *OfferobjectUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OfferobjectUpdateCall) Do ¶
func (c *OfferobjectUpdateCall) Do(opts ...googleapi.CallOption) (*OfferObject, error)
Do executes the "walletobjects.offerobject.update" call. Exactly one of *OfferObject or error will be non-nil. 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 ¶
func (c *OfferobjectUpdateCall) Fields(s ...googleapi.Field) *OfferobjectUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OfferobjectUpdateCall) Header ¶
func (c *OfferobjectUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Pagination) MarshalJSON ¶
func (s *Pagination) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 ¶
func (c *PermissionsGetCall) Context(ctx context.Context) *PermissionsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PermissionsGetCall) Do ¶
func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permissions, error)
Do executes the "walletobjects.permissions.get" call. Exactly one of *Permissions or error will be non-nil. 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 ¶
func (c *PermissionsGetCall) Fields(s ...googleapi.Field) *PermissionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PermissionsGetCall) Header ¶
func (c *PermissionsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PermissionsGetCall) IfNoneMatch ¶
func (c *PermissionsGetCall) IfNoneMatch(entityTag string) *PermissionsGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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.
func (*PermissionsService) Update ¶
func (r *PermissionsService) Update(resourceId int64, permissions *Permissions) *PermissionsUpdateCall
Update: Updates the permissions for the given issuer.
type PermissionsUpdateCall ¶
type PermissionsUpdateCall struct {
// contains filtered or unexported fields
}
func (*PermissionsUpdateCall) Context ¶
func (c *PermissionsUpdateCall) Context(ctx context.Context) *PermissionsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PermissionsUpdateCall) Do ¶
func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permissions, error)
Do executes the "walletobjects.permissions.update" call. Exactly one of *Permissions or error will be non-nil. 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 ¶
func (c *PermissionsUpdateCall) Fields(s ...googleapi.Field) *PermissionsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PermissionsUpdateCall) Header ¶
func (c *PermissionsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ReservationInfo) MarshalJSON ¶
func (s *ReservationInfo) MarshalJSON() ([]byte, error)
type Resources ¶
type Resources struct { EventTicketClasses []*EventTicketClass `json:"eventTicketClasses,omitempty"` EventTicketObjects []*EventTicketObject `json:"eventTicketObjects,omitempty"` FlightClasses []*FlightClass `json:"flightClasses,omitempty"` FlightObjects []*FlightObject `json:"flightObjects,omitempty"` GiftCardClasses []*GiftCardClass `json:"giftCardClasses,omitempty"` GiftCardObjects []*GiftCardObject `json:"giftCardObjects,omitempty"` LoyaltyClasses []*LoyaltyClass `json:"loyaltyClasses,omitempty"` LoyaltyObjects []*LoyaltyObject `json:"loyaltyObjects,omitempty"` OfferClasses []*OfferClass `json:"offerClasses,omitempty"` OfferObjects []*OfferObject `json:"offerObjects,omitempty"` TransitClasses []*TransitClass `json:"transitClasses,omitempty"` 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*Resources) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Review) MarshalJSON ¶
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 Giftcardclass *GiftcardclassService Giftcardobject *GiftcardobjectService Issuer *IssuerService Jwt *JwtService Loyaltyclass *LoyaltyclassService Loyaltyobject *LoyaltyobjectService Offerclass *OfferclassService Offerobject *OfferobjectService Permissions *PermissionsService Smarttap *SmarttapService Transitclass *TransitclassService Transitobject *TransitobjectService // contains filtered or unexported fields }
func New
deprecated
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 ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 // <var>issuer ID</var>.<var>identifier</var> 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SmartTap) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 ¶
func (c *SmarttapInsertCall) Context(ctx context.Context) *SmarttapInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SmarttapInsertCall) Do ¶
func (c *SmarttapInsertCall) Do(opts ...googleapi.CallOption) (*SmartTap, error)
Do executes the "walletobjects.smarttap.insert" call. Exactly one of *SmartTap or error will be non-nil. 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 ¶
func (c *SmarttapInsertCall) Fields(s ...googleapi.Field) *SmarttapInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SmarttapInsertCall) Header ¶
func (c *SmarttapInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*TicketLeg) MarshalJSON ¶
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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TimeInterval) MarshalJSON ¶
func (s *TimeInterval) MarshalJSON() ([]byte, error)
type TransitClass ¶
type TransitClass struct { // AllowMultipleUsersPerObject: Deprecated. Use // `multipleDevicesAndHoldersAllowedStatus` // instead. AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,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: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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 []*LatLongPoint `json:"locations,omitempty"` // Logo: Required. The logo image of the ticket. This image is displayed // in the 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" // "MULTIPLE_HOLDERS" - Multiple users on multiple devices are // allowed. // "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. // Deprecated. // "ONE_USER_ALL_DEVICES" - One user on multiple devices is allowed. // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. // Deprecated. // "ONE_USER_ONE_DEVICE" - Intended for use by select partners in // limited circumstances. Contact // support for additional information. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. // Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` // RedemptionIssuers: Available only to Smart Tap enabled partners. // Contact support for // additional guidance. 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"` // 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"` // Watermark: Watermark image to display on the user's device. Watermark *Image `json:"watermark,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 values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TransitClassListResponse) MarshalJSON ¶
func (s *TransitClassListResponse) MarshalJSON() ([]byte, error)
type TransitObject ¶
type TransitObject struct { // AppLinkData: Optional information about the partner app link. 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 // <var>issuer // ID</var>.<var>identifier</var> 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"` // 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"` // 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"` // 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 #<var>rrggbb</var> where // <var>rrggbb</var> is a // hex RGB triplet, such as `#ffcc00`. You can also use the // shorthand version of the RGB triplet which is #<var>rgb</var>, 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 // <var>issuer // ID</var>.<var>identifier</var> 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: The list of locations where the object can be used. The // platform uses this // information to trigger geolocated notifications to users. Note // that // locations in the object override locations in the class which // override // locations in the Google Places ID. 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"` // 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"` // SmartTapRedemptionValue: Available only to Smart Tap enabled // partners. Contact support for // additional guidance. 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 no // longer displayed in the Google Pay app. // // 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 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. "AppLinkData") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TransitObjectListResponse) MarshalJSON ¶
func (s *TransitObjectListResponse) MarshalJSON() ([]byte, error)
type TransitclassAddmessageCall ¶
type TransitclassAddmessageCall struct {
// contains filtered or unexported fields
}
func (*TransitclassAddmessageCall) Context ¶
func (c *TransitclassAddmessageCall) Context(ctx context.Context) *TransitclassAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitclassAddmessageCall) Do ¶
func (c *TransitclassAddmessageCall) Do(opts ...googleapi.CallOption) (*TransitClassAddMessageResponse, error)
Do executes the "walletobjects.transitclass.addmessage" call. Exactly one of *TransitClassAddMessageResponse or error will be non-nil. 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 ¶
func (c *TransitclassAddmessageCall) Fields(s ...googleapi.Field) *TransitclassAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitclassAddmessageCall) Header ¶
func (c *TransitclassAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TransitclassGetCall ¶
type TransitclassGetCall struct {
// contains filtered or unexported fields
}
func (*TransitclassGetCall) Context ¶
func (c *TransitclassGetCall) Context(ctx context.Context) *TransitclassGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitclassGetCall) Do ¶
func (c *TransitclassGetCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
Do executes the "walletobjects.transitclass.get" call. Exactly one of *TransitClass or error will be non-nil. 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 ¶
func (c *TransitclassGetCall) Fields(s ...googleapi.Field) *TransitclassGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitclassGetCall) Header ¶
func (c *TransitclassGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TransitclassGetCall) IfNoneMatch ¶
func (c *TransitclassGetCall) IfNoneMatch(entityTag string) *TransitclassGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type TransitclassInsertCall ¶
type TransitclassInsertCall struct {
// contains filtered or unexported fields
}
func (*TransitclassInsertCall) Context ¶
func (c *TransitclassInsertCall) Context(ctx context.Context) *TransitclassInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitclassInsertCall) Do ¶
func (c *TransitclassInsertCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
Do executes the "walletobjects.transitclass.insert" call. Exactly one of *TransitClass or error will be non-nil. 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 ¶
func (c *TransitclassInsertCall) Fields(s ...googleapi.Field) *TransitclassInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitclassInsertCall) Header ¶
func (c *TransitclassInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TransitclassListCall ¶
type TransitclassListCall struct {
// contains filtered or unexported fields
}
func (*TransitclassListCall) Context ¶
func (c *TransitclassListCall) Context(ctx context.Context) *TransitclassListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitclassListCall) Do ¶
func (c *TransitclassListCall) Do(opts ...googleapi.CallOption) (*TransitClassListResponse, error)
Do executes the "walletobjects.transitclass.list" call. Exactly one of *TransitClassListResponse or error will be non-nil. 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 ¶
func (c *TransitclassListCall) Fields(s ...googleapi.Field) *TransitclassListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitclassListCall) Header ¶
func (c *TransitclassListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TransitclassListCall) IfNoneMatch ¶
func (c *TransitclassListCall) IfNoneMatch(entityTag string) *TransitclassListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *TransitclassListCall) Token(token string) *TransitclassListCall
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 ¶
func (c *TransitclassPatchCall) Context(ctx context.Context) *TransitclassPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitclassPatchCall) Do ¶
func (c *TransitclassPatchCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
Do executes the "walletobjects.transitclass.patch" call. Exactly one of *TransitClass or error will be non-nil. 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 ¶
func (c *TransitclassPatchCall) Fields(s ...googleapi.Field) *TransitclassPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitclassPatchCall) Header ¶
func (c *TransitclassPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*TransitclassService) Get ¶
func (r *TransitclassService) Get(resourceId string) *TransitclassGetCall
Get: Returns the transit class with the given class ID.
func (*TransitclassService) Insert ¶
func (r *TransitclassService) Insert(transitclass *TransitClass) *TransitclassInsertCall
Insert: Inserts a transit class with the given ID and properties.
func (*TransitclassService) List ¶
func (r *TransitclassService) List() *TransitclassListCall
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.
func (*TransitclassService) Update ¶
func (r *TransitclassService) Update(resourceId string, transitclass *TransitClass) *TransitclassUpdateCall
Update: Updates the transit class referenced by the given class ID.
type TransitclassUpdateCall ¶
type TransitclassUpdateCall struct {
// contains filtered or unexported fields
}
func (*TransitclassUpdateCall) Context ¶
func (c *TransitclassUpdateCall) Context(ctx context.Context) *TransitclassUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitclassUpdateCall) Do ¶
func (c *TransitclassUpdateCall) Do(opts ...googleapi.CallOption) (*TransitClass, error)
Do executes the "walletobjects.transitclass.update" call. Exactly one of *TransitClass or error will be non-nil. 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 ¶
func (c *TransitclassUpdateCall) Fields(s ...googleapi.Field) *TransitclassUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitclassUpdateCall) Header ¶
func (c *TransitclassUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TransitobjectAddmessageCall ¶
type TransitobjectAddmessageCall struct {
// contains filtered or unexported fields
}
func (*TransitobjectAddmessageCall) Context ¶
func (c *TransitobjectAddmessageCall) Context(ctx context.Context) *TransitobjectAddmessageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitobjectAddmessageCall) Do ¶
func (c *TransitobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*TransitObjectAddMessageResponse, error)
Do executes the "walletobjects.transitobject.addmessage" call. Exactly one of *TransitObjectAddMessageResponse or error will be non-nil. 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 ¶
func (c *TransitobjectAddmessageCall) Fields(s ...googleapi.Field) *TransitobjectAddmessageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitobjectAddmessageCall) Header ¶
func (c *TransitobjectAddmessageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type TransitobjectGetCall ¶
type TransitobjectGetCall struct {
// contains filtered or unexported fields
}
func (*TransitobjectGetCall) Context ¶
func (c *TransitobjectGetCall) Context(ctx context.Context) *TransitobjectGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitobjectGetCall) Do ¶
func (c *TransitobjectGetCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
Do executes the "walletobjects.transitobject.get" call. Exactly one of *TransitObject or error will be non-nil. 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 ¶
func (c *TransitobjectGetCall) Fields(s ...googleapi.Field) *TransitobjectGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitobjectGetCall) Header ¶
func (c *TransitobjectGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TransitobjectGetCall) IfNoneMatch ¶
func (c *TransitobjectGetCall) IfNoneMatch(entityTag string) *TransitobjectGetCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type TransitobjectInsertCall ¶
type TransitobjectInsertCall struct {
// contains filtered or unexported fields
}
func (*TransitobjectInsertCall) Context ¶
func (c *TransitobjectInsertCall) Context(ctx context.Context) *TransitobjectInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitobjectInsertCall) Do ¶
func (c *TransitobjectInsertCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
Do executes the "walletobjects.transitobject.insert" call. Exactly one of *TransitObject or error will be non-nil. 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 ¶
func (c *TransitobjectInsertCall) Fields(s ...googleapi.Field) *TransitobjectInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitobjectInsertCall) Header ¶
func (c *TransitobjectInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 ¶
func (c *TransitobjectListCall) Context(ctx context.Context) *TransitobjectListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitobjectListCall) Do ¶
func (c *TransitobjectListCall) Do(opts ...googleapi.CallOption) (*TransitObjectListResponse, error)
Do executes the "walletobjects.transitobject.list" call. Exactly one of *TransitObjectListResponse or error will be non-nil. 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 ¶
func (c *TransitobjectListCall) Fields(s ...googleapi.Field) *TransitobjectListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitobjectListCall) Header ¶
func (c *TransitobjectListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*TransitobjectListCall) IfNoneMatch ¶
func (c *TransitobjectListCall) IfNoneMatch(entityTag string) *TransitobjectListCall
IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
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 ¶
func (c *TransitobjectListCall) Token(token string) *TransitobjectListCall
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 ¶
func (c *TransitobjectPatchCall) Context(ctx context.Context) *TransitobjectPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitobjectPatchCall) Do ¶
func (c *TransitobjectPatchCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
Do executes the "walletobjects.transitobject.patch" call. Exactly one of *TransitObject or error will be non-nil. 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 ¶
func (c *TransitobjectPatchCall) Fields(s ...googleapi.Field) *TransitobjectPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitobjectPatchCall) Header ¶
func (c *TransitobjectPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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.
func (*TransitobjectService) Get ¶
func (r *TransitobjectService) Get(resourceId string) *TransitobjectGetCall
Get: Returns the transit object with the given object ID.
func (*TransitobjectService) Insert ¶
func (r *TransitobjectService) Insert(transitobject *TransitObject) *TransitobjectInsertCall
Insert: Inserts an transit object with the given ID and properties.
func (*TransitobjectService) List ¶
func (r *TransitobjectService) List() *TransitobjectListCall
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.
func (*TransitobjectService) Update ¶
func (r *TransitobjectService) Update(resourceId string, transitobject *TransitObject) *TransitobjectUpdateCall
Update: Updates the transit object referenced by the given object ID.
type TransitobjectUpdateCall ¶
type TransitobjectUpdateCall struct {
// contains filtered or unexported fields
}
func (*TransitobjectUpdateCall) Context ¶
func (c *TransitobjectUpdateCall) Context(ctx context.Context) *TransitobjectUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TransitobjectUpdateCall) Do ¶
func (c *TransitobjectUpdateCall) Do(opts ...googleapi.CallOption) (*TransitObject, error)
Do executes the "walletobjects.transitobject.update" call. Exactly one of *TransitObject or error will be non-nil. 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 ¶
func (c *TransitobjectUpdateCall) Fields(s ...googleapi.Field) *TransitobjectUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TransitobjectUpdateCall) Header ¶
func (c *TransitobjectUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TranslatedString) MarshalJSON ¶
func (s *TranslatedString) 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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }