PK ! ,`Ӓ packages.config
PK ! ܂s s # Google.Apis.Walletobjects.v1.csproj
10.0
Debug
AnyCPU
{6745AAF1-A1B5-4C28-8B33-195FA88BCDAF}
Library
Properties
Google.Apis.Walletobjects.v1
Google.Apis.Walletobjects.v1
v4.0
Profile328
512
{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
true
Google.Apis.Walletobjects.v1.xml
true
full
false
bin\Debug\
DEBUG;TRACE
prompt
4
pdbonly
true
bin\Release\
TRACE
prompt
4
pdbonly
true
bin\ReleaseSigned\
TRACE
prompt
4
True
c:\code\google.apis.snk
..\packages\Google.Apis.Core.1.10.0\lib\portable-net40+sl50+win+wpa81+wp80\Google.Apis.Core.dll
..\packages\Google.Apis.1.10.0\lib\portable-net40+sl50+win+wpa81+wp80\Google.Apis.dll
..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.dll
..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.Extensions.dll
..\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll
..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.IO.dll
..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.dll
..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Extensions.dll
..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll
..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.Runtime.dll
..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.Threading.Tasks.dll
..\packages\Zlib.Portable.Signed.1.11.0\lib\portable-net4+sl5+wp8+win8+wpa81+MonoTouch+MonoAndroid\Zlib.Portable.dll
This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
PK ! Gg7} } Google.Apis.Walletobjects.v1.cs// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
//------------------------------------------------------------------------------
//
// This code was generated by google-apis-code-generator 1.6.0
// C# generator version: 1.10.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
/**
* \mainpage
* Google Pay Passes API Version v1
*
* \section ApiInfo API Version Information
*
*
* \section ForMoreInfo For More Information
*
* The complete API documentation for using Google Pay Passes API can be found at
* https://developers.google.com/pay/passes.
*
* For more information about the Google APIs Client Library for .NET, see
*
* https://developers.google.com/api-client-library/dotnet/get_started
*/
namespace Google.Apis.Walletobjects.v1.Data
{
/// ActivationOptions for the class
public class ActivationOptions : Google.Apis.Requests.IDirectResponseSchema
{
/// HTTPS URL that supports REST semantics. Would be used for requesting activation from partners for
/// given valuable, triggered by the users.
[Newtonsoft.Json.JsonPropertyAttribute("activationUrl")]
public virtual string ActivationUrl { get; set; }
/// Flag to allow users to make activation call from different device. This allows client to render the
/// activation button enabled even if the activationStatus is ACTIVATED but the requested device is different
/// than the current device.
[Newtonsoft.Json.JsonPropertyAttribute("allowReactivation")]
public virtual System.Nullable AllowReactivation { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The activation status of the object. This field includes activation status if valuable supports
/// activation.
public class ActivationStatus : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Resource used when the AddMessage endpoints are called.
public class AddMessageRequest : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("message")]
public virtual Message Message { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class AirportInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Three character IATA airport code. This is a required field for `origin` and `destination`. Eg:
/// "SFO"
[Newtonsoft.Json.JsonPropertyAttribute("airportIataCode")]
public virtual string AirportIataCode { get; set; }
/// Optional field that overrides the airport city name defined by IATA. By default, Google takes the
/// `airportIataCode` provided and maps it to the official airport city name defined by IATA. Official IATA
/// airport city names can be found at IATA airport city names website. For example, for the airport IATA code
/// "LTN", IATA website tells us that the corresponding airport city is "London". If this field is not
/// populated, Google would display "London". However, populating this field with a custom name (eg: "London
/// Luton") would override it.
[Newtonsoft.Json.JsonPropertyAttribute("airportNameOverride")]
public virtual LocalizedString AirportNameOverride { get; set; }
/// A name of the gate. Eg: "B59" or "59"
[Newtonsoft.Json.JsonPropertyAttribute("gate")]
public virtual string Gate { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#airportInfo"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Terminal name. Eg: "INTL" or "I"
[Newtonsoft.Json.JsonPropertyAttribute("terminal")]
public virtual string Terminal { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class AppLinkData : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("androidAppLinkInfo")]
public virtual AppLinkDataAppLinkInfo AndroidAppLinkInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("iosAppLinkInfo")]
public virtual AppLinkDataAppLinkInfo IosAppLinkInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("webAppLinkInfo")]
public virtual AppLinkDataAppLinkInfo WebAppLinkInfo { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class AppLinkDataAppLinkInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional image to be displayed in the App Link Module
[Newtonsoft.Json.JsonPropertyAttribute("appLogoImage")]
public virtual Image AppLogoImage { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("appTarget")]
public virtual AppLinkDataAppLinkInfoAppTarget AppTarget { get; set; }
/// String to be displayed in the description of the App Link Module Required
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual LocalizedString Description { get; set; }
/// String to be displayed in the title of the App Link Module Required
[Newtonsoft.Json.JsonPropertyAttribute("title")]
public virtual LocalizedString Title { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class AppLinkDataAppLinkInfoAppTarget : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("targetUri")]
public virtual Uri TargetUri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class AuthenticationKey : Google.Apis.Requests.IDirectResponseSchema
{
/// Available only to Smart Tap enabled partners. Contact support for additional guidance.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual System.Nullable Id { get; set; }
/// Available only to Smart Tap enabled partners. Contact support for additional guidance.
[Newtonsoft.Json.JsonPropertyAttribute("publicKeyPem")]
public virtual string PublicKeyPem { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Barcode : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("alternateText")]
public virtual string AlternateText { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#barcode"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The render encoding for the barcode. When specified, barcode is rendered in the given encoding.
/// Otherwise best known encoding is chosen by Google.
[Newtonsoft.Json.JsonPropertyAttribute("renderEncoding")]
public virtual string RenderEncoding { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("showCodeText")]
public virtual LocalizedString ShowCodeText { get; set; }
/// The type of barcode.
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
/// The value encoded in the barcode.
[Newtonsoft.Json.JsonPropertyAttribute("value")]
public virtual string Value { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class BarcodeSectionDetail : Google.Apis.Requests.IDirectResponseSchema
{
/// A reference to an existing text-based or image field to display.
[Newtonsoft.Json.JsonPropertyAttribute("fieldSelector")]
public virtual FieldSelector FieldSelector { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Information to read/write to blobstore2.
public class Blobstore2Info : Google.Apis.Requests.IDirectResponseSchema
{
/// The blob generation id.
[Newtonsoft.Json.JsonPropertyAttribute("blobGeneration")]
public virtual System.Nullable BlobGeneration { get; set; }
/// The blob id, e.g., /blobstore/prod/playground/scotty
[Newtonsoft.Json.JsonPropertyAttribute("blobId")]
public virtual string BlobId { get; set; }
/// Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized
/// blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS
/// media downloads.
[Newtonsoft.Json.JsonPropertyAttribute("downloadReadHandle")]
public virtual string DownloadReadHandle { get; set; }
/// The blob read token. Needed to read blobs that have not been replicated. Might not be available
/// until the final call.
[Newtonsoft.Json.JsonPropertyAttribute("readToken")]
public virtual string ReadToken { get; set; }
/// Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized
/// blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not
/// applicable to non-GCS media uploads.
[Newtonsoft.Json.JsonPropertyAttribute("uploadMetadataContainer")]
public virtual string UploadMetadataContainer { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class BoardingAndSeatingInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("boardingDoor")]
public virtual string BoardingDoor { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("boardingGroup")]
public virtual string BoardingGroup { get; set; }
/// The value of boarding position. eg: "76"
[Newtonsoft.Json.JsonPropertyAttribute("boardingPosition")]
public virtual string BoardingPosition { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("boardingPrivilegeImage")]
public virtual Image BoardingPrivilegeImage { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#boardingAndSeatingInfo"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The passenger's seat assignment. To be used when there is no specific identifier to use in
/// `seatNumber`. eg: "assigned at gate"
[Newtonsoft.Json.JsonPropertyAttribute("seatAssignment")]
public virtual LocalizedString SeatAssignment { get; set; }
/// The value of the seat class. eg: "Economy" or "Economy Plus"
[Newtonsoft.Json.JsonPropertyAttribute("seatClass")]
public virtual string SeatClass { get; set; }
/// The value of passenger seat. If there is no specific identifier, use `seatAssignment` instead. eg:
/// "25A"
[Newtonsoft.Json.JsonPropertyAttribute("seatNumber")]
public virtual string SeatNumber { get; set; }
/// 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"
[Newtonsoft.Json.JsonPropertyAttribute("sequenceNumber")]
public virtual string SequenceNumber { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class BoardingAndSeatingPolicy : Google.Apis.Requests.IDirectResponseSchema
{
/// Indicates the policy the airline uses for boarding. If unset, Google will default to
/// `zoneBased`.
[Newtonsoft.Json.JsonPropertyAttribute("boardingPolicy")]
public virtual string BoardingPolicy { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#boardingAndSeatingPolicy"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Seating policy which dictates how we display the seat class. If unset, Google will default to
/// `cabinBased`.
[Newtonsoft.Json.JsonPropertyAttribute("seatClassPolicy")]
public virtual string SeatClassPolicy { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class CallbackOptions : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
/// Deprecated.
[Newtonsoft.Json.JsonPropertyAttribute("updateRequestUrl")]
public virtual string UpdateRequestUrl { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("url")]
public virtual string Url { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class CardBarcodeSectionDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional information to display below the barcode.
[Newtonsoft.Json.JsonPropertyAttribute("firstBottomDetail")]
public virtual BarcodeSectionDetail FirstBottomDetail { get; set; }
/// Optional information to display above the barcode. If `secondTopDetail` is defined, this will be
/// displayed to the start side of this detail section.
[Newtonsoft.Json.JsonPropertyAttribute("firstTopDetail")]
public virtual BarcodeSectionDetail FirstTopDetail { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("secondTopDetail")]
public virtual BarcodeSectionDetail SecondTopDetail { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class CardRowOneItem : Google.Apis.Requests.IDirectResponseSchema
{
/// The item to be displayed in the row. This item will be automatically centered.
[Newtonsoft.Json.JsonPropertyAttribute("item")]
public virtual TemplateItem Item { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class CardRowTemplateInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Template for a row containing one item. Exactly one of "one_item", "two_items", "three_items" must
/// be set.
[Newtonsoft.Json.JsonPropertyAttribute("oneItem")]
public virtual CardRowOneItem OneItem { get; set; }
/// Template for a row containing three items. Exactly one of "one_item", "two_items", "three_items"
/// must be set.
[Newtonsoft.Json.JsonPropertyAttribute("threeItems")]
public virtual CardRowThreeItems ThreeItems { get; set; }
/// Template for a row containing two items. Exactly one of "one_item", "two_items", "three_items" must
/// be set.
[Newtonsoft.Json.JsonPropertyAttribute("twoItems")]
public virtual CardRowTwoItems TwoItems { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class CardRowThreeItems : Google.Apis.Requests.IDirectResponseSchema
{
/// The item to be displayed at the end of the row. This item will be aligned to the right.
[Newtonsoft.Json.JsonPropertyAttribute("endItem")]
public virtual TemplateItem EndItem { get; set; }
/// The item to be displayed in the middle of the row. This item will be centered between the start and
/// end items.
[Newtonsoft.Json.JsonPropertyAttribute("middleItem")]
public virtual TemplateItem MiddleItem { get; set; }
/// The item to be displayed at the start of the row. This item will be aligned to the left.
[Newtonsoft.Json.JsonPropertyAttribute("startItem")]
public virtual TemplateItem StartItem { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class CardRowTwoItems : Google.Apis.Requests.IDirectResponseSchema
{
/// The item to be displayed at the end of the row. This item will be aligned to the right.
[Newtonsoft.Json.JsonPropertyAttribute("endItem")]
public virtual TemplateItem EndItem { get; set; }
/// The item to be displayed at the start of the row. This item will be aligned to the left.
[Newtonsoft.Json.JsonPropertyAttribute("startItem")]
public virtual TemplateItem StartItem { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class CardTemplateOverride : Google.Apis.Requests.IDirectResponseSchema
{
/// Template information for rows in the card view. At most three rows are allowed to be
/// specified.
[Newtonsoft.Json.JsonPropertyAttribute("cardRowTemplateInfos")]
public virtual System.Collections.Generic.IList CardRowTemplateInfos { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class ClassTemplateInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Specifies extra information to be displayed above and below the barcode.
[Newtonsoft.Json.JsonPropertyAttribute("cardBarcodeSectionDetails")]
public virtual CardBarcodeSectionDetails CardBarcodeSectionDetails { get; set; }
/// Override for the card view.
[Newtonsoft.Json.JsonPropertyAttribute("cardTemplateOverride")]
public virtual CardTemplateOverride CardTemplateOverride { get; set; }
/// Override for the details view (beneath the card view).
[Newtonsoft.Json.JsonPropertyAttribute("detailsTemplateOverride")]
public virtual DetailsTemplateOverride DetailsTemplateOverride { get; set; }
/// Override for the passes list view.
[Newtonsoft.Json.JsonPropertyAttribute("listTemplateOverride")]
public virtual ListTemplateOverride ListTemplateOverride { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A sequence of media data references representing composite data. Introduced to support Bigstore
/// composite objects. For details, visit http://go/bigstore-composites.
public class CompositeMedia : Google.Apis.Requests.IDirectResponseSchema
{
/// Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte
/// representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For
/// now, any v2 blob will also be represented in this field as v1 BlobRef.
[Newtonsoft.Json.JsonPropertyAttribute("blobRef")]
public virtual string BlobRef { get; set; }
/// Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
[Newtonsoft.Json.JsonPropertyAttribute("blobstore2Info")]
public virtual Blobstore2Info Blobstore2Info { get; set; }
/// A binary data reference for a media download. Serves as a technology-agnostic binary reference in
/// some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as
/// bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support
/// JavaScript. This prevents us from including the actual type of this field.
[Newtonsoft.Json.JsonPropertyAttribute("cosmoBinaryReference")]
public virtual string CosmoBinaryReference { get; set; }
/// crc32.c hash for the payload.
[Newtonsoft.Json.JsonPropertyAttribute("crc32cHash")]
public virtual System.Nullable Crc32cHash { get; set; }
/// Media data, set if reference_type is INLINE
[Newtonsoft.Json.JsonPropertyAttribute("inline")]
public virtual string Inline { get; set; }
/// Size of the data, in bytes
[Newtonsoft.Json.JsonPropertyAttribute("length")]
public virtual System.Nullable Length { get; set; }
/// MD5 hash for the payload.
[Newtonsoft.Json.JsonPropertyAttribute("md5Hash")]
public virtual string Md5Hash { get; set; }
/// Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
[Newtonsoft.Json.JsonPropertyAttribute("objectId")]
public virtual ObjectId ObjectId { get; set; }
/// Path to the data, set if reference_type is PATH
[Newtonsoft.Json.JsonPropertyAttribute("path")]
public virtual string Path { get; set; }
/// Describes what the field reference contains.
[Newtonsoft.Json.JsonPropertyAttribute("referenceType")]
public virtual string ReferenceType { get; set; }
/// SHA-1 hash for the payload.
[Newtonsoft.Json.JsonPropertyAttribute("sha1Hash")]
public virtual string Sha1Hash { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled
/// in by the header or Scotty's best_guess, but this extended information provides the backend with more
/// information so that it can make a better decision if needed. This is only used on media upload requests from
/// Scotty.
public class ContentTypeInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Scotty's best guess of what the content type of the file is.
[Newtonsoft.Json.JsonPropertyAttribute("bestGuess")]
public virtual string BestGuess { get; set; }
/// The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the
/// actual file.
[Newtonsoft.Json.JsonPropertyAttribute("fromBytes")]
public virtual string FromBytes { get; set; }
/// The content type of the file derived from the file extension of the original file name used by the
/// client.
[Newtonsoft.Json.JsonPropertyAttribute("fromFileName")]
public virtual string FromFileName { get; set; }
/// The content type of the file as specified in the request headers, multipart headers, or RUPIO start
/// request.
[Newtonsoft.Json.JsonPropertyAttribute("fromHeader")]
public virtual string FromHeader { get; set; }
/// The content type of the file derived from the file extension of the URL path. The URL path is
/// assumed to represent a file name (which is typically only true for agents that are providing a REST
/// API).
[Newtonsoft.Json.JsonPropertyAttribute("fromUrlPath")]
public virtual string FromUrlPath { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class DateTime : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("date")]
public virtual string Date { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class DetailsItemInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// The item to be displayed in the details list.
[Newtonsoft.Json.JsonPropertyAttribute("item")]
public virtual TemplateItem Item { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class DetailsTemplateOverride : Google.Apis.Requests.IDirectResponseSchema
{
/// Information for the "nth" item displayed in the details list.
[Newtonsoft.Json.JsonPropertyAttribute("detailsItemInfos")]
public virtual System.Collections.Generic.IList DetailsItemInfos { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Device context associated with the object.
public class DeviceContext : Google.Apis.Requests.IDirectResponseSchema
{
/// If set, redemption information will only be returned to the given device upon activation of the
/// object. This should not be used as a stable identifier to trace a user's device. It can change across
/// different passes for the same device or even across different activations for the same device. When setting
/// this, callers must also set has_linked_device on the object being activated.
[Newtonsoft.Json.JsonPropertyAttribute("deviceToken")]
public virtual string DeviceToken { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit
/// http://go/scotty-diff-protocol.
public class DiffChecksumsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Exactly one of these fields must be populated. If checksums_location is filled, the server will
/// return the corresponding contents to the user. If object_location is filled, the server will calculate the
/// checksums based on the content there and return that to the user. For details on the format of the
/// checksums, see http://go/scotty-diff-protocol.
[Newtonsoft.Json.JsonPropertyAttribute("checksumsLocation")]
public virtual CompositeMedia ChecksumsLocation { get; set; }
/// The chunk size of checksums. Must be a multiple of 256KB.
[Newtonsoft.Json.JsonPropertyAttribute("chunkSizeBytes")]
public virtual System.Nullable ChunkSizeBytes { get; set; }
/// If set, calculate the checksums based on the contents and return them to the caller.
[Newtonsoft.Json.JsonPropertyAttribute("objectLocation")]
public virtual CompositeMedia ObjectLocation { get; set; }
/// The total size of the server object.
[Newtonsoft.Json.JsonPropertyAttribute("objectSizeBytes")]
public virtual System.Nullable ObjectSizeBytes { get; set; }
/// The object version of the object the checksums are being returned for.
[Newtonsoft.Json.JsonPropertyAttribute("objectVersion")]
public virtual string ObjectVersion { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Backend response for a Diff download response. For details on the Scotty Diff protocol, visit
/// http://go/scotty-diff-protocol.
public class DiffDownloadResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The original object location.
[Newtonsoft.Json.JsonPropertyAttribute("objectLocation")]
public virtual CompositeMedia ObjectLocation { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-
/// protocol.
public class DiffUploadRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The location of the checksums for the new object. Agents must clone the object located here, as the
/// upload server will delete the contents once a response is received. For details on the format of the
/// checksums, see http://go/scotty-diff-protocol.
[Newtonsoft.Json.JsonPropertyAttribute("checksumsInfo")]
public virtual CompositeMedia ChecksumsInfo { get; set; }
/// The location of the new object. Agents must clone the object located here, as the upload server
/// will delete the contents once a response is received.
[Newtonsoft.Json.JsonPropertyAttribute("objectInfo")]
public virtual CompositeMedia ObjectInfo { get; set; }
/// The object version of the object that is the base version the incoming diff script will be applied
/// to. This field will always be filled in.
[Newtonsoft.Json.JsonPropertyAttribute("objectVersion")]
public virtual string ObjectVersion { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit
/// http://go/scotty-diff-protocol.
public class DiffUploadResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The object version of the object at the server. Must be included in the end notification response.
/// The version in the end notification response must correspond to the new version of the object that is now
/// stored at the server, after the upload.
[Newtonsoft.Json.JsonPropertyAttribute("objectVersion")]
public virtual string ObjectVersion { get; set; }
/// The location of the original file for a diff upload request. Must be filled in if responding to an
/// upload start notification.
[Newtonsoft.Json.JsonPropertyAttribute("originalObject")]
public virtual CompositeMedia OriginalObject { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit
/// http://go/scotty-diff-protocol.
public class DiffVersionResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The total size of the server object.
[Newtonsoft.Json.JsonPropertyAttribute("objectSizeBytes")]
public virtual System.Nullable ObjectSizeBytes { get; set; }
/// The version of the object stored at the server.
[Newtonsoft.Json.JsonPropertyAttribute("objectVersion")]
public virtual string ObjectVersion { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// 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.
public class DiscoverableProgram : Google.Apis.Requests.IDirectResponseSchema
{
/// Information about the ability to signin and add a valuable for this program through a merchant
/// site. Used when MERCHANT_HOSTED_SIGNIN is enabled.
[Newtonsoft.Json.JsonPropertyAttribute("merchantSigninInfo")]
public virtual DiscoverableProgramMerchantSigninInfo MerchantSigninInfo { get; set; }
/// Information about the ability to signup and add a valuable for this program through a merchant
/// site. Used when MERCHANT_HOSTED_SIGNUP is enabled.
[Newtonsoft.Json.JsonPropertyAttribute("merchantSignupInfo")]
public virtual DiscoverableProgramMerchantSignupInfo MerchantSignupInfo { get; set; }
/// Visibility state of the discoverable program.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Information about the merchant hosted signin flow for a program.
public class DiscoverableProgramMerchantSigninInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// The URL to direct the user to for the merchant's signin site.
[Newtonsoft.Json.JsonPropertyAttribute("signinWebsite")]
public virtual Uri SigninWebsite { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Information about the merchant hosted signup flow for a program.
public class DiscoverableProgramMerchantSignupInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("signupSharedDatas")]
public virtual System.Collections.Generic.IList SignupSharedDatas { get; set; }
/// The URL to direct the user to for the merchant's signup site.
[Newtonsoft.Json.JsonPropertyAttribute("signupWebsite")]
public virtual Uri SignupWebsite { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Parameters specific to media downloads.
public class DownloadParameters : Google.Apis.Requests.IDirectResponseSchema
{
/// A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload
/// content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty
/// to GZip the response to the client.
[Newtonsoft.Json.JsonPropertyAttribute("allowGzipCompression")]
public virtual System.Nullable AllowGzipCompression { get; set; }
/// Determining whether or not Apiary should skip the inclusion of any Content-Range header on its
/// response to Scotty.
[Newtonsoft.Json.JsonPropertyAttribute("ignoreRange")]
public virtual System.Nullable IgnoreRange { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventDateTime : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("customDoorsOpenLabel")]
public virtual LocalizedString CustomDoorsOpenLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("doorsOpen")]
public virtual string DoorsOpen { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("doorsOpenLabel")]
public virtual string DoorsOpenLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("end")]
public virtual string End { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#eventDateTime"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("start")]
public virtual string Start { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventReservationInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// The confirmation code of the event reservation. This may also take the form of an "order number",
/// "confirmation number", "reservation number", or other equivalent.
[Newtonsoft.Json.JsonPropertyAttribute("confirmationCode")]
public virtual string ConfirmationCode { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#eventReservationInfo"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventSeat : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("gate")]
public virtual LocalizedString Gate { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#eventSeat"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("row")]
public virtual LocalizedString Row { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("seat")]
public virtual LocalizedString Seat { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("section")]
public virtual LocalizedString Section { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventTicketClass : Google.Apis.Requests.IDirectResponseSchema
{
/// Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
[Newtonsoft.Json.JsonPropertyAttribute("allowMultipleUsersPerObject")]
public virtual System.Nullable AllowMultipleUsersPerObject { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("callbackOptions")]
public virtual CallbackOptions CallbackOptions { get; set; }
/// Template information about how the class should be displayed. If unset, Google will fallback to a
/// default set of fields to display.
[Newtonsoft.Json.JsonPropertyAttribute("classTemplateInfo")]
public virtual ClassTemplateInfo ClassTemplateInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("confirmationCodeLabel")]
public virtual string ConfirmationCodeLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("countryCode")]
public virtual string CountryCode { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("customConfirmationCodeLabel")]
public virtual LocalizedString CustomConfirmationCodeLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("customGateLabel")]
public virtual LocalizedString CustomGateLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("customRowLabel")]
public virtual LocalizedString CustomRowLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("customSeatLabel")]
public virtual LocalizedString CustomSeatLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("customSectionLabel")]
public virtual LocalizedString CustomSectionLabel { get; set; }
/// The date & time information of the event.
[Newtonsoft.Json.JsonPropertyAttribute("dateTime")]
public virtual EventDateTime DateTime { get; set; }
/// Identifies whether this class supports Smart Tap. The `redemptionIssuers` and object level
/// `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart
/// Tap.
[Newtonsoft.Json.JsonPropertyAttribute("enableSmartTap")]
public virtual System.Nullable EnableSmartTap { get; set; }
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("eventId")]
public virtual string EventId { get; set; }
/// Required. The name of the event, such as "LA Dodgers at SF Giants".
[Newtonsoft.Json.JsonPropertyAttribute("eventName")]
public virtual LocalizedString EventName { get; set; }
/// The fine print, terms, or conditions of the ticket.
[Newtonsoft.Json.JsonPropertyAttribute("finePrint")]
public virtual LocalizedString FinePrint { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("gateLabel")]
public virtual string GateLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("homepageUri")]
public virtual Uri HomepageUri { get; set; }
/// Required. The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is
/// displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("issuerName")]
public virtual string IssuerName { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#eventTicketClass"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Links module data. If links module data is also defined on the object, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedIssuerName")]
public virtual LocalizedString LocalizedIssuerName { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// The logo image of the ticket. This image is displayed in the card detail view of the app.
[Newtonsoft.Json.JsonPropertyAttribute("logo")]
public virtual Image Logo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Identifies whether multiple users and devices will save the same object referencing this
/// class.
[Newtonsoft.Json.JsonPropertyAttribute("multipleDevicesAndHoldersAllowedStatus")]
public virtual string MultipleDevicesAndHoldersAllowedStatus { get; set; }
/// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are
/// identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The
/// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order
/// for a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionIssuers")]
public virtual System.Collections.Generic.IList> RedemptionIssuers { get; set; }
/// The review comments set by the platform when a class is marked `approved` or `rejected`.
[Newtonsoft.Json.JsonPropertyAttribute("review")]
public virtual Review Review { get; set; }
/// 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`.
[Newtonsoft.Json.JsonPropertyAttribute("reviewStatus")]
public virtual string ReviewStatus { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("rowLabel")]
public virtual string RowLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("seatLabel")]
public virtual string SeatLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("sectionLabel")]
public virtual string SectionLabel { get; set; }
/// Optional information about the security animation. If this is set a security animation will be
/// rendered on pass details.
[Newtonsoft.Json.JsonPropertyAttribute("securityAnimation")]
public virtual SecurityAnimation SecurityAnimation { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// Event venue details.
[Newtonsoft.Json.JsonPropertyAttribute("venue")]
public virtual EventVenue Venue { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// View Unlock Requirement options for the event ticket.
[Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")]
public virtual string ViewUnlockRequirement { get; set; }
/// Deprecated.
[Newtonsoft.Json.JsonPropertyAttribute("wordMark")]
public virtual Image WordMark { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventTicketClassAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated EventTicketClass resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual EventTicketClass Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventTicketClassListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventTicketObject : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional information about the partner app link.
[Newtonsoft.Json.JsonPropertyAttribute("appLinkData")]
public virtual AppLinkData AppLinkData { get; set; }
/// The barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("barcode")]
public virtual Barcode Barcode { get; set; }
/// Required. The class associated with this object. The class must be of the same type as this object,
/// must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the
/// former is issued by Google and latter is chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// A copy of the inherited fields of the parent class. These fields are retrieved during a
/// GET.
[Newtonsoft.Json.JsonPropertyAttribute("classReference")]
public virtual EventTicketClass ClassReference { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("disableExpirationNotification")]
public virtual System.Nullable DisableExpirationNotification { get; set; }
/// The face value of the ticket, matching what would be printed on a physical version of the
/// ticket.
[Newtonsoft.Json.JsonPropertyAttribute("faceValue")]
public virtual Money FaceValue { get; set; }
/// Information that controls how passes are grouped together.
[Newtonsoft.Json.JsonPropertyAttribute("groupingInfo")]
public virtual GroupingInfo GroupingInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("hasLinkedDevice")]
public virtual System.Nullable HasLinkedDevice { get; set; }
/// Indicates if the object has users. This field is set by the platform.
[Newtonsoft.Json.JsonPropertyAttribute("hasUsers")]
public virtual System.Nullable HasUsers { get; set; }
/// Optional banner image displayed on the front of the card. If none is present, hero image of the
/// class, if present, will be displayed. If hero image of the class is also not present, nothing will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// Required. The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and
/// latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#eventTicketObject"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// A list of offer objects linked to this event ticket. The offer objects must already exist. Offer
/// object IDs should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("linkedOfferIds")]
public virtual System.Collections.Generic.IList LinkedOfferIds { get; set; }
/// Links module data. If links module data is also defined on the class, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
[Newtonsoft.Json.JsonPropertyAttribute("passConstraints")]
public virtual PassConstraints PassConstraints { get; set; }
/// Reservation details for this ticket. This is expected to be shared amongst all tickets that were
/// purchased in the same order.
[Newtonsoft.Json.JsonPropertyAttribute("reservationInfo")]
public virtual EventReservationInfo ReservationInfo { get; set; }
/// The rotating barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("rotatingBarcode")]
public virtual RotatingBarcode RotatingBarcode { get; set; }
/// Seating details for this ticket.
[Newtonsoft.Json.JsonPropertyAttribute("seatInfo")]
public virtual EventSeat SeatInfo { get; set; }
/// The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The
/// class level fields `enableSmartTap` and `redemptionIssuers` must also be set up correctly in order for the
/// pass to support Smart Tap. Only ASCII characters are supported.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapRedemptionValue")]
public virtual string SmartTapRedemptionValue { get; set; }
/// Required. The state of the object. This field is used to determine how an object is displayed in
/// the app. For example, an `inactive` object is moved to the "Expired passes" section.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// Name of the ticket holder, if the ticket is assigned to a person. E.g. "John Doe" or "Jane
/// Doe".
[Newtonsoft.Json.JsonPropertyAttribute("ticketHolderName")]
public virtual string TicketHolderName { get; set; }
/// 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.).
[Newtonsoft.Json.JsonPropertyAttribute("ticketNumber")]
public virtual string TicketNumber { get; set; }
/// The type of the ticket, such as "Adult" or "Child", or "VIP" or "Standard".
[Newtonsoft.Json.JsonPropertyAttribute("ticketType")]
public virtual LocalizedString TicketType { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")]
public virtual TimeInterval ValidTimeInterval { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventTicketObjectAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated EventTicketObject resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual EventTicketObject Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventTicketObjectListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class EventVenue : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("address")]
public virtual LocalizedString Address { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#eventVenue"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The name of the venue, such as "AT&T Park". This is required.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual LocalizedString Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Indicates that the issuer would like Google Wallet to send expiry notifications 2 days prior to the
/// card expiration.
public class ExpiryNotification : Google.Apis.Requests.IDirectResponseSchema
{
/// Indicates if the object needs to have expiry notification enabled.
[Newtonsoft.Json.JsonPropertyAttribute("enableNotification")]
public virtual System.Nullable EnableNotification { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Reference definition to use with field overrides.
public class FieldReference : Google.Apis.Requests.IDirectResponseSchema
{
/// Only valid if the `fieldPath` references a date field. Chooses how the date field will be formatted
/// and displayed in the UI.
[Newtonsoft.Json.JsonPropertyAttribute("dateFormat")]
public virtual string DateFormat { get; set; }
/// 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".
[Newtonsoft.Json.JsonPropertyAttribute("fieldPath")]
public virtual string FieldPath { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Custom field selector to use with field overrides.
public class FieldSelector : Google.Apis.Requests.IDirectResponseSchema
{
/// If more than one reference is supplied, then the first one that references a non-empty field will
/// be displayed.
[Newtonsoft.Json.JsonPropertyAttribute("fields")]
public virtual System.Collections.Generic.IList Fields { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FirstRowOption : Google.Apis.Requests.IDirectResponseSchema
{
/// A reference to the field to be displayed in the first row.
[Newtonsoft.Json.JsonPropertyAttribute("fieldOption")]
public virtual FieldSelector FieldOption { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("transitOption")]
public virtual string TransitOption { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightCarrier : Google.Apis.Requests.IDirectResponseSchema
{
/// A logo for the airline alliance, displayed above the QR code that the passenger scans to
/// board.
[Newtonsoft.Json.JsonPropertyAttribute("airlineAllianceLogo")]
public virtual Image AirlineAllianceLogo { get; set; }
/// A logo for the airline described by carrierIataCode and localizedAirlineName. This logo will be
/// rendered at the top of the detailed card view.
[Newtonsoft.Json.JsonPropertyAttribute("airlineLogo")]
public virtual Image AirlineLogo { get; set; }
/// 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"
[Newtonsoft.Json.JsonPropertyAttribute("airlineName")]
public virtual LocalizedString AirlineName { get; set; }
/// 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
[Newtonsoft.Json.JsonPropertyAttribute("carrierIataCode")]
public virtual string CarrierIataCode { get; set; }
/// 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
[Newtonsoft.Json.JsonPropertyAttribute("carrierIcaoCode")]
public virtual string CarrierIcaoCode { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#flightCarrier"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightClass : Google.Apis.Requests.IDirectResponseSchema
{
/// Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
[Newtonsoft.Json.JsonPropertyAttribute("allowMultipleUsersPerObject")]
public virtual System.Nullable AllowMultipleUsersPerObject { get; set; }
/// Policies for boarding and seating. These will inform which labels will be shown to users.
[Newtonsoft.Json.JsonPropertyAttribute("boardingAndSeatingPolicy")]
public virtual BoardingAndSeatingPolicy BoardingAndSeatingPolicy { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("callbackOptions")]
public virtual CallbackOptions CallbackOptions { get; set; }
/// Template information about how the class should be displayed. If unset, Google will fallback to a
/// default set of fields to display.
[Newtonsoft.Json.JsonPropertyAttribute("classTemplateInfo")]
public virtual ClassTemplateInfo ClassTemplateInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("countryCode")]
public virtual string CountryCode { get; set; }
/// Required. Destination airport.
[Newtonsoft.Json.JsonPropertyAttribute("destination")]
public virtual AirportInfo Destination { get; set; }
/// Identifies whether this class supports Smart Tap. The `redemptionIssuers` and object level
/// `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart
/// Tap.
[Newtonsoft.Json.JsonPropertyAttribute("enableSmartTap")]
public virtual System.Nullable EnableSmartTap { get; set; }
/// Required. Information about the flight carrier and number.
[Newtonsoft.Json.JsonPropertyAttribute("flightHeader")]
public virtual FlightHeader FlightHeader { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("flightStatus")]
public virtual string FlightStatus { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("homepageUri")]
public virtual Uri HomepageUri { get; set; }
/// Required. The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is
/// displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("issuerName")]
public virtual string IssuerName { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#flightClass"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// If this field is present, boarding passes served to a user's device will always be in this
/// language. Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-
/// AT".
[Newtonsoft.Json.JsonPropertyAttribute("languageOverride")]
public virtual string LanguageOverride { get; set; }
/// Links module data. If links module data is also defined on the object, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("localBoardingDateTime")]
public virtual string LocalBoardingDateTime { get; set; }
/// The estimated time the aircraft plans to reach the destination gate (not the runway) or the actual
/// time it reached the gate. This field should be set if at least one of the below is true: - It differs from
/// the scheduled time. Google will use it to calculate the delay. - The aircraft already arrived at the gate.
/// Google will use it to inform the user that the flight has arrived at the gate. This is an ISO 8601 extended
/// format date/time without an offset. Time may be specified up to millisecond precision. eg:
/// `2027-03-05T06:30:00` This should be the local date/time at the airport (not a UTC time). Google will reject
/// the request if UTC offset is provided. Time zones will be calculated by Google based on arrival airport. If
/// this is not set, Google will set it based on data from other sources.
[Newtonsoft.Json.JsonPropertyAttribute("localEstimatedOrActualArrivalDateTime")]
public virtual string LocalEstimatedOrActualArrivalDateTime { get; set; }
/// The estimated time the aircraft plans to pull from the gate or the actual time the aircraft already
/// pulled from the gate. Note: This is not the runway time. This field should be set if at least one of the
/// below is true: - It differs from the scheduled time. Google will use it to calculate the delay. - The
/// aircraft already pulled from the gate. Google will use it to inform the user when the flight actually
/// departed. This is an ISO 8601 extended format date/time without an offset. Time may be specified up to
/// millisecond precision. eg: `2027-03-05T06:30:00` This should be the local date/time at the airport (not a
/// UTC time). Google will reject the request if UTC offset is provided. Time zones will be calculated by Google
/// based on departure airport. If this is not set, Google will set it based on data from other
/// sources.
[Newtonsoft.Json.JsonPropertyAttribute("localEstimatedOrActualDepartureDateTime")]
public virtual string LocalEstimatedOrActualDepartureDateTime { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("localGateClosingDateTime")]
public virtual string LocalGateClosingDateTime { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("localScheduledArrivalDateTime")]
public virtual string LocalScheduledArrivalDateTime { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("localScheduledDepartureDateTime")]
public virtual string LocalScheduledDepartureDateTime { get; set; }
/// Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedIssuerName")]
public virtual LocalizedString LocalizedIssuerName { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Identifies whether multiple users and devices will save the same object referencing this
/// class.
[Newtonsoft.Json.JsonPropertyAttribute("multipleDevicesAndHoldersAllowedStatus")]
public virtual string MultipleDevicesAndHoldersAllowedStatus { get; set; }
/// Required. Origin airport.
[Newtonsoft.Json.JsonPropertyAttribute("origin")]
public virtual AirportInfo Origin { get; set; }
/// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are
/// identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The
/// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order
/// for a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionIssuers")]
public virtual System.Collections.Generic.IList> RedemptionIssuers { get; set; }
/// The review comments set by the platform when a class is marked `approved` or `rejected`.
[Newtonsoft.Json.JsonPropertyAttribute("review")]
public virtual Review Review { get; set; }
/// 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`.
[Newtonsoft.Json.JsonPropertyAttribute("reviewStatus")]
public virtual string ReviewStatus { get; set; }
/// Optional information about the security animation. If this is set a security animation will be
/// rendered on pass details.
[Newtonsoft.Json.JsonPropertyAttribute("securityAnimation")]
public virtual SecurityAnimation SecurityAnimation { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// View Unlock Requirement options for the boarding pass.
[Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")]
public virtual string ViewUnlockRequirement { get; set; }
/// Deprecated.
[Newtonsoft.Json.JsonPropertyAttribute("wordMark")]
public virtual Image WordMark { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightClassAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated FlightClass resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual FlightClass Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightClassListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightHeader : Google.Apis.Requests.IDirectResponseSchema
{
/// Information about airline carrier. This is a required property of `flightHeader`.
[Newtonsoft.Json.JsonPropertyAttribute("carrier")]
public virtual FlightCarrier Carrier { get; set; }
/// The flight number without IATA carrier code. This field should contain only digits. This is a
/// required property of `flightHeader`. eg: "123"
[Newtonsoft.Json.JsonPropertyAttribute("flightNumber")]
public virtual string FlightNumber { get; set; }
/// Override value to use for flight number. The default value used for display purposes is carrier +
/// flight_number. If a different value needs to be shown to passengers, use this field to override the default
/// behavior. eg: "XX1234 / YY576"
[Newtonsoft.Json.JsonPropertyAttribute("flightNumberDisplayOverride")]
public virtual string FlightNumberDisplayOverride { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#flightHeader"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Information about operating airline carrier.
[Newtonsoft.Json.JsonPropertyAttribute("operatingCarrier")]
public virtual FlightCarrier OperatingCarrier { get; set; }
/// The flight number used by the operating carrier without IATA carrier code. This field should
/// contain only digits. eg: "234"
[Newtonsoft.Json.JsonPropertyAttribute("operatingFlightNumber")]
public virtual string OperatingFlightNumber { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightObject : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional information about the partner app link.
[Newtonsoft.Json.JsonPropertyAttribute("appLinkData")]
public virtual AppLinkData AppLinkData { get; set; }
/// The barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("barcode")]
public virtual Barcode Barcode { get; set; }
/// Passenger specific information about boarding and seating.
[Newtonsoft.Json.JsonPropertyAttribute("boardingAndSeatingInfo")]
public virtual BoardingAndSeatingInfo BoardingAndSeatingInfo { get; set; }
/// Required. The class associated with this object. The class must be of the same type as this object,
/// must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the
/// former is issued by Google and latter is chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// A copy of the inherited fields of the parent class. These fields are retrieved during a
/// GET.
[Newtonsoft.Json.JsonPropertyAttribute("classReference")]
public virtual FlightClass ClassReference { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("disableExpirationNotification")]
public virtual System.Nullable DisableExpirationNotification { get; set; }
/// Information that controls how passes are grouped together.
[Newtonsoft.Json.JsonPropertyAttribute("groupingInfo")]
public virtual GroupingInfo GroupingInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("hasLinkedDevice")]
public virtual System.Nullable HasLinkedDevice { get; set; }
/// Indicates if the object has users. This field is set by the platform.
[Newtonsoft.Json.JsonPropertyAttribute("hasUsers")]
public virtual System.Nullable HasUsers { get; set; }
/// Optional banner image displayed on the front of the card. If none is present, hero image of the
/// class, if present, will be displayed. If hero image of the class is also not present, nothing will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// Required. The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and
/// latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#flightObject"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Links module data. If links module data is also defined on the class, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
[Newtonsoft.Json.JsonPropertyAttribute("passConstraints")]
public virtual PassConstraints PassConstraints { get; set; }
/// Required. Passenger name as it would appear on the boarding pass. eg: "Dave M Gahan" or
/// "Gahan/Dave" or "GAHAN/DAVEM"
[Newtonsoft.Json.JsonPropertyAttribute("passengerName")]
public virtual string PassengerName { get; set; }
/// Required. Information about flight reservation.
[Newtonsoft.Json.JsonPropertyAttribute("reservationInfo")]
public virtual ReservationInfo ReservationInfo { get; set; }
/// The rotating barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("rotatingBarcode")]
public virtual RotatingBarcode RotatingBarcode { get; set; }
/// An image for the security program that applies to the passenger.
[Newtonsoft.Json.JsonPropertyAttribute("securityProgramLogo")]
public virtual Image SecurityProgramLogo { get; set; }
/// The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The
/// class level fields `enableSmartTap` and `redemptionIssuers` must also be set up correctly in order for the
/// pass to support Smart Tap. Only ASCII characters are supported.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapRedemptionValue")]
public virtual string SmartTapRedemptionValue { get; set; }
/// Required. The state of the object. This field is used to determine how an object is displayed in
/// the app. For example, an `inactive` object is moved to the "Expired passes" section.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")]
public virtual TimeInterval ValidTimeInterval { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightObjectAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated FlightObject resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual FlightObject Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FlightObjectListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class FrequentFlyerInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Frequent flyer number. Required for each nested object of kind
/// `walletobjects#frequentFlyerInfo`.
[Newtonsoft.Json.JsonPropertyAttribute("frequentFlyerNumber")]
public virtual string FrequentFlyerNumber { get; set; }
/// Frequent flyer program name. eg: "Lufthansa Miles & More"
[Newtonsoft.Json.JsonPropertyAttribute("frequentFlyerProgramName")]
public virtual LocalizedString FrequentFlyerProgramName { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#frequentFlyerInfo"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Generic Class
public class GenericClass : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("callbackOptions")]
public virtual CallbackOptions CallbackOptions { get; set; }
/// Template information about how the class should be displayed. If unset, Google will fallback to a
/// default set of fields to display.
[Newtonsoft.Json.JsonPropertyAttribute("classTemplateInfo")]
public virtual ClassTemplateInfo ClassTemplateInfo { get; set; }
/// Available only to Smart Tap enabled partners. Contact support for additional guidance.
[Newtonsoft.Json.JsonPropertyAttribute("enableSmartTap")]
public virtual System.Nullable EnableSmartTap { get; set; }
/// Required. The unique identifier for the class. This ID must be unique across all from an issuer.
/// This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. If `imageModulesData` is also defined on the object, both will be displayed.
/// Only one of the image from class and one from object level will be rendered when both set.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Links module data. If `linksModuleData` is also defined on the object, both will be displayed. The
/// maximum number of these fields displayed is 10 from class and 10 from object.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Identifies whether multiple users and devices will save the same object referencing this
/// class.
[Newtonsoft.Json.JsonPropertyAttribute("multipleDevicesAndHoldersAllowedStatus")]
public virtual string MultipleDevicesAndHoldersAllowedStatus { get; set; }
/// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are
/// identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The
/// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order
/// for a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionIssuers")]
public virtual System.Collections.Generic.IList> RedemptionIssuers { get; set; }
/// Optional information about the security animation. If this is set a security animation will be
/// rendered on pass details.
[Newtonsoft.Json.JsonPropertyAttribute("securityAnimation")]
public virtual SecurityAnimation SecurityAnimation { get; set; }
/// Text module data. If `textModulesData` is also defined on the object, both will be displayed. The
/// maximum number of these fields displayed is 10 from class and 10 from object.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// View Unlock Requirement options for the generic pass.
[Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")]
public virtual string ViewUnlockRequirement { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// List response which contains the list of all generic classes for a given issuer ID.
public class GenericClassListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Generic Object Next ID: 121
public class GenericObject : Google.Apis.Requests.IDirectResponseSchema
{
/// Information about the partner app link. The maximum number of these fields displayed is
/// 10.
[Newtonsoft.Json.JsonPropertyAttribute("appLinkData")]
public virtual AppLinkData AppLinkData { get; set; }
/// The barcode type and value. If pass does not have a barcode, we can allow the issuer to set
/// Barcode.alternate_text and display just that.
[Newtonsoft.Json.JsonPropertyAttribute("barcode")]
public virtual Barcode Barcode { get; set; }
/// Required. The header of the pass. This is usually the Business name such as "XXX Gym", "AAA
/// Insurance". This field is required and appears in the header row at the very top of the pass.
[Newtonsoft.Json.JsonPropertyAttribute("cardTitle")]
public virtual LocalizedString CardTitle { get; set; }
/// Required. The class associated with this object. The class must be of the same type as this object,
/// must already exist, and must be approved. Class IDs should follow the format `issuerID.identifier` where
/// `issuerID` is issued by Google and `identifier` is chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// Specify which `GenericType` the card belongs to.
[Newtonsoft.Json.JsonPropertyAttribute("genericType")]
public virtual string GenericType { get; set; }
/// Information that controls how passes are grouped together.
[Newtonsoft.Json.JsonPropertyAttribute("groupingInfo")]
public virtual GroupingInfo GroupingInfo { get; set; }
/// Indicates if the object has users. This field is set by the platform.
[Newtonsoft.Json.JsonPropertyAttribute("hasUsers")]
public virtual System.Nullable HasUsers { get; set; }
/// Required. The title of the pass, such as "50% off coupon" or "Library card" or "Voucher". This
/// field is required and appears in the title row of the pass detail view.
[Newtonsoft.Json.JsonPropertyAttribute("header")]
public virtual LocalizedString Header { get; set; }
/// Banner image displayed on the front of the card if present. The image will be displayed at 100%
/// width.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set, the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used and if logo is not set, a color would be chosen
/// by Google.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// Required. The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. Only one of the image from class and one from object level will be rendered when
/// both set.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Links module data. If `linksModuleData` is also defined on the class, both will be displayed. The
/// maximum number of these fields displayed is 10 from class and 10 from object.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// The logo image of the pass. This image is displayed in the card detail view in upper left, and also
/// on the list/thumbnail view. If the logo is not present, the first letter of `cardTitle` would be shown as
/// logo.
[Newtonsoft.Json.JsonPropertyAttribute("logo")]
public virtual Image Logo { get; set; }
/// The notification settings that are enabled for this object.
[Newtonsoft.Json.JsonPropertyAttribute("notifications")]
public virtual Notifications Notifications { get; set; }
/// Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
[Newtonsoft.Json.JsonPropertyAttribute("passConstraints")]
public virtual PassConstraints PassConstraints { get; set; }
/// The rotating barcode settings/details.
[Newtonsoft.Json.JsonPropertyAttribute("rotatingBarcode")]
public virtual RotatingBarcode RotatingBarcode { get; set; }
/// The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The
/// class level fields `enableSmartTap` and `redemptionIssuers` must also be set up correctly in order for the
/// pass to support Smart Tap. Only ASCII characters are supported.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapRedemptionValue")]
public virtual string SmartTapRedemptionValue { get; set; }
/// The state of the object. This field is used to determine how an object is displayed in the app. For
/// example, an `inactive` object is moved to the "Expired passes" section. If this is not provided, the object
/// would be considered `ACTIVE`.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// The title label of the pass, such as location where this pass can be used. Appears right above the
/// title in the title row in the pass detail view.
[Newtonsoft.Json.JsonPropertyAttribute("subheader")]
public virtual LocalizedString Subheader { get; set; }
/// Text module data. If `textModulesData` is also defined on the class, both will be displayed. The
/// maximum number of these fields displayed is 10 from class and 10 from object.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// The time period this object will be considered valid or usable. When the time period is passed, the
/// object will be considered expired, which will affect the rendering on user's devices.
[Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")]
public virtual TimeInterval ValidTimeInterval { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// List response which contains the list of all generic objects for a given issuer ID.
public class GenericObjectListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class GiftCardClass : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("allowBarcodeRedemption")]
public virtual System.Nullable AllowBarcodeRedemption { get; set; }
/// Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
[Newtonsoft.Json.JsonPropertyAttribute("allowMultipleUsersPerObject")]
public virtual System.Nullable AllowMultipleUsersPerObject { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("callbackOptions")]
public virtual CallbackOptions CallbackOptions { get; set; }
/// The label to display for the card number, such as "Card Number".
[Newtonsoft.Json.JsonPropertyAttribute("cardNumberLabel")]
public virtual string CardNumberLabel { get; set; }
/// Template information about how the class should be displayed. If unset, Google will fallback to a
/// default set of fields to display.
[Newtonsoft.Json.JsonPropertyAttribute("classTemplateInfo")]
public virtual ClassTemplateInfo ClassTemplateInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("countryCode")]
public virtual string CountryCode { get; set; }
/// Identifies whether this class supports Smart Tap. The `redemptionIssuers` and object level
/// `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart
/// Tap.
[Newtonsoft.Json.JsonPropertyAttribute("enableSmartTap")]
public virtual System.Nullable EnableSmartTap { get; set; }
/// The label to display for event number, such as "Target Event #".
[Newtonsoft.Json.JsonPropertyAttribute("eventNumberLabel")]
public virtual string EventNumberLabel { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("homepageUri")]
public virtual Uri HomepageUri { get; set; }
/// Required. The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is
/// displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("issuerName")]
public virtual string IssuerName { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#giftCardClass"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Links module data. If links module data is also defined on the object, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Translated strings for the card_number_label.
[Newtonsoft.Json.JsonPropertyAttribute("localizedCardNumberLabel")]
public virtual LocalizedString LocalizedCardNumberLabel { get; set; }
/// Translated strings for the event_number_label.
[Newtonsoft.Json.JsonPropertyAttribute("localizedEventNumberLabel")]
public virtual LocalizedString LocalizedEventNumberLabel { get; set; }
/// Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedIssuerName")]
public virtual LocalizedString LocalizedIssuerName { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("localizedMerchantName")]
public virtual LocalizedString LocalizedMerchantName { get; set; }
/// Translated strings for the pin_label.
[Newtonsoft.Json.JsonPropertyAttribute("localizedPinLabel")]
public virtual LocalizedString LocalizedPinLabel { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("merchantName")]
public virtual string MerchantName { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Identifies whether multiple users and devices will save the same object referencing this
/// class.
[Newtonsoft.Json.JsonPropertyAttribute("multipleDevicesAndHoldersAllowedStatus")]
public virtual string MultipleDevicesAndHoldersAllowedStatus { get; set; }
/// The label to display for the PIN, such as "4-digit PIN".
[Newtonsoft.Json.JsonPropertyAttribute("pinLabel")]
public virtual string PinLabel { get; set; }
/// The logo of the gift card program or company. This logo is displayed in both the details and list
/// views of the app.
[Newtonsoft.Json.JsonPropertyAttribute("programLogo")]
public virtual Image ProgramLogo { get; set; }
/// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are
/// identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The
/// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order
/// for a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionIssuers")]
public virtual System.Collections.Generic.IList> RedemptionIssuers { get; set; }
/// The review comments set by the platform when a class is marked `approved` or `rejected`.
[Newtonsoft.Json.JsonPropertyAttribute("review")]
public virtual Review Review { get; set; }
/// 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`.
[Newtonsoft.Json.JsonPropertyAttribute("reviewStatus")]
public virtual string ReviewStatus { get; set; }
/// Optional information about the security animation. If this is set a security animation will be
/// rendered on pass details.
[Newtonsoft.Json.JsonPropertyAttribute("securityAnimation")]
public virtual SecurityAnimation SecurityAnimation { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// View Unlock Requirement options for the gift card.
[Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")]
public virtual string ViewUnlockRequirement { get; set; }
/// Deprecated.
[Newtonsoft.Json.JsonPropertyAttribute("wordMark")]
public virtual Image WordMark { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class GiftCardClassAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated GiftCardClass resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual GiftCardClass Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class GiftCardClassListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class GiftCardObject : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional information about the partner app link.
[Newtonsoft.Json.JsonPropertyAttribute("appLinkData")]
public virtual AppLinkData AppLinkData { get; set; }
/// The card's monetary balance.
[Newtonsoft.Json.JsonPropertyAttribute("balance")]
public virtual Money Balance { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("balanceUpdateTime")]
public virtual DateTime BalanceUpdateTime { get; set; }
/// The barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("barcode")]
public virtual Barcode Barcode { get; set; }
/// Required. The card's number.
[Newtonsoft.Json.JsonPropertyAttribute("cardNumber")]
public virtual string CardNumber { get; set; }
/// Required. The class associated with this object. The class must be of the same type as this object,
/// must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the
/// former is issued by Google and latter is chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// A copy of the inherited fields of the parent class. These fields are retrieved during a
/// GET.
[Newtonsoft.Json.JsonPropertyAttribute("classReference")]
public virtual GiftCardClass ClassReference { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("disableExpirationNotification")]
public virtual System.Nullable DisableExpirationNotification { get; set; }
/// The card's event number, an optional field used by some gift cards.
[Newtonsoft.Json.JsonPropertyAttribute("eventNumber")]
public virtual string EventNumber { get; set; }
/// Information that controls how passes are grouped together.
[Newtonsoft.Json.JsonPropertyAttribute("groupingInfo")]
public virtual GroupingInfo GroupingInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("hasLinkedDevice")]
public virtual System.Nullable HasLinkedDevice { get; set; }
/// Indicates if the object has users. This field is set by the platform.
[Newtonsoft.Json.JsonPropertyAttribute("hasUsers")]
public virtual System.Nullable HasUsers { get; set; }
/// Optional banner image displayed on the front of the card. If none is present, hero image of the
/// class, if present, will be displayed. If hero image of the class is also not present, nothing will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// Required. The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and
/// latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#giftCardObject"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Links module data. If links module data is also defined on the class, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
[Newtonsoft.Json.JsonPropertyAttribute("passConstraints")]
public virtual PassConstraints PassConstraints { get; set; }
/// The card's PIN.
[Newtonsoft.Json.JsonPropertyAttribute("pin")]
public virtual string Pin { get; set; }
/// The rotating barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("rotatingBarcode")]
public virtual RotatingBarcode RotatingBarcode { get; set; }
/// The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The
/// class level fields `enableSmartTap` and `redemptionIssuers` must also be set up correctly in order for the
/// pass to support Smart Tap. Only ASCII characters are supported.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapRedemptionValue")]
public virtual string SmartTapRedemptionValue { get; set; }
/// Required. The state of the object. This field is used to determine how an object is displayed in
/// the app. For example, an `inactive` object is moved to the "Expired passes" section.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")]
public virtual TimeInterval ValidTimeInterval { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class GiftCardObjectAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated GiftCardObject resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual GiftCardObject Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class GiftCardObjectListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class GroupingInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional grouping ID for grouping the passes with the same ID visually together. Grouping with
/// different types of passes is allowed.
[Newtonsoft.Json.JsonPropertyAttribute("groupingId")]
public virtual string GroupingId { get; set; }
/// Optional index for sorting the passes when they are grouped with other passes. Passes with lower
/// sort index are shown before passes with higher sort index. If unspecified, the value is assumed to be
/// INT_MAX. For two passes with the same sort index, the sorting behavior is undefined.
[Newtonsoft.Json.JsonPropertyAttribute("sortIndex")]
public virtual System.Nullable SortIndex { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Wrapping type for Google hosted images. Next ID: 7
public class Image : Google.Apis.Requests.IDirectResponseSchema
{
/// Description of the image used for accessibility.
[Newtonsoft.Json.JsonPropertyAttribute("contentDescription")]
public virtual LocalizedString ContentDescription { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#image"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The URI for the image.
[Newtonsoft.Json.JsonPropertyAttribute("sourceUri")]
public virtual ImageUri SourceUri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class ImageModuleData : Google.Apis.Requests.IDirectResponseSchema
{
/// The ID associated with an image module. This field is here to enable ease of management of image
/// modules.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// A 100% width image.
[Newtonsoft.Json.JsonPropertyAttribute("mainImage")]
public virtual Image MainImage { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class ImageUri : Google.Apis.Requests.IDirectResponseSchema
{
/// Additional information about the image, which is unused and retained only for backward
/// compatibility.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Translated strings for the description, which are unused and retained only for backward
/// compatibility.
[Newtonsoft.Json.JsonPropertyAttribute("localizedDescription")]
public virtual LocalizedString LocalizedDescription { get; set; }
/// The location of the image. URIs must have a scheme.
[Newtonsoft.Json.JsonPropertyAttribute("uri")]
public virtual string Uri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class InfoModuleData : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of collections of labels and values. These will be displayed one after the other in a
/// singular column.
[Newtonsoft.Json.JsonPropertyAttribute("labelValueRows")]
public virtual System.Collections.Generic.IList LabelValueRows { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("showLastUpdateTime")]
public virtual System.Nullable ShowLastUpdateTime { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Issuer : Google.Apis.Requests.IDirectResponseSchema
{
/// Issuer contact information.
[Newtonsoft.Json.JsonPropertyAttribute("contactInfo")]
public virtual IssuerContactInfo ContactInfo { get; set; }
/// URL for the issuer's home page.
[Newtonsoft.Json.JsonPropertyAttribute("homepageUrl")]
public virtual string HomepageUrl { get; set; }
/// The unique identifier for an issuer account. This is automatically generated when the issuer is
/// inserted.
[Newtonsoft.Json.JsonPropertyAttribute("issuerId")]
public virtual System.Nullable IssuerId { get; set; }
/// The account name of the issuer.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Available only to Smart Tap enabled partners. Contact support for additional guidance.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapMerchantData")]
public virtual SmartTapMerchantData SmartTapMerchantData { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class IssuerContactInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// Email addresses which will receive alerts.
[Newtonsoft.Json.JsonPropertyAttribute("alertsEmails")]
public virtual System.Collections.Generic.IList AlertsEmails { get; set; }
/// The primary contact email address.
[Newtonsoft.Json.JsonPropertyAttribute("email")]
public virtual string Email { get; set; }
/// The primary contact name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The primary contact phone number.
[Newtonsoft.Json.JsonPropertyAttribute("phone")]
public virtual string Phone { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class IssuerListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class IssuerToUserInfo : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("action")]
public virtual string Action { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("signUpInfo")]
public virtual SignUpInfo SignUpInfo { get; set; }
/// Currently not used, consider deprecating.
[Newtonsoft.Json.JsonPropertyAttribute("url")]
public virtual string Url { get; set; }
/// JSON web token for action S2AP.
[Newtonsoft.Json.JsonPropertyAttribute("value")]
public virtual string Value { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class JwtInsertResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual Resources Resources { get; set; }
/// A URI that, when opened, will allow the end user to save the object(s) identified in the JWT to
/// their Google account.
[Newtonsoft.Json.JsonPropertyAttribute("saveUri")]
public virtual string SaveUri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class JwtResource : Google.Apis.Requests.IDirectResponseSchema
{
/// A string representing a JWT of the format described at
/// https://developers.google.com/pay/passes/reference/s2w-reference#google-pay-api-for-passes-jwt
[Newtonsoft.Json.JsonPropertyAttribute("jwt")]
public virtual string Jwt { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// 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.
public class LabelValue : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("label")]
public virtual string Label { get; set; }
/// Translated strings for the label. Recommended maximum is 15 characters for a two-column layout and
/// 30 characters for a one-column layout.
[Newtonsoft.Json.JsonPropertyAttribute("localizedLabel")]
public virtual LocalizedString LocalizedLabel { get; set; }
/// Translated strings for the value. Recommended maximum is 15 characters for a two-column layout and
/// 30 characters for a one-column layout.
[Newtonsoft.Json.JsonPropertyAttribute("localizedValue")]
public virtual LocalizedString LocalizedValue { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("value")]
public virtual string Value { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LabelValueRow : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("columns")]
public virtual System.Collections.Generic.IList Columns { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LatLongPoint : Google.Apis.Requests.IDirectResponseSchema
{
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#latLongPoint"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The latitude specified as any value in the range of -90.0 through +90.0, both inclusive. Values
/// outside these bounds will be rejected.
[Newtonsoft.Json.JsonPropertyAttribute("latitude")]
public virtual System.Nullable Latitude { get; set; }
/// The longitude specified in the range -180.0 through +180.0, both inclusive. Values outside these
/// bounds will be rejected.
[Newtonsoft.Json.JsonPropertyAttribute("longitude")]
public virtual System.Nullable Longitude { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LinksModuleData : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of URIs.
[Newtonsoft.Json.JsonPropertyAttribute("uris")]
public virtual System.Collections.Generic.IList Uris { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class ListTemplateOverride : Google.Apis.Requests.IDirectResponseSchema
{
/// Specifies from a predefined set of options or from a reference to the field what will be displayed
/// in the first row.
[Newtonsoft.Json.JsonPropertyAttribute("firstRowOption")]
public virtual FirstRowOption FirstRowOption { get; set; }
/// A reference to the field to be displayed in the second row. This option is only displayed if there
/// are not multiple user objects in a group. If there is a group, the second row will always display a field
/// shared by all objects.
[Newtonsoft.Json.JsonPropertyAttribute("secondRowOption")]
public virtual FieldSelector SecondRowOption { get; set; }
/// 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"
[Newtonsoft.Json.JsonPropertyAttribute("thirdRowOption")]
public virtual FieldSelector ThirdRowOption { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LocalizedString : Google.Apis.Requests.IDirectResponseSchema
{
/// Contains the string to be displayed if no appropriate translation is available.
[Newtonsoft.Json.JsonPropertyAttribute("defaultValue")]
public virtual TranslatedString DefaultValue { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#localizedString"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Contains the translations for the string.
[Newtonsoft.Json.JsonPropertyAttribute("translatedValues")]
public virtual System.Collections.Generic.IList TranslatedValues { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyClass : Google.Apis.Requests.IDirectResponseSchema
{
/// The account ID label, such as "Member ID." Recommended maximum length is 15 characters to ensure
/// full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("accountIdLabel")]
public virtual string AccountIdLabel { get; set; }
/// The account name label, such as "Member Name." Recommended maximum length is 15 characters to
/// ensure full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("accountNameLabel")]
public virtual string AccountNameLabel { get; set; }
/// Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
[Newtonsoft.Json.JsonPropertyAttribute("allowMultipleUsersPerObject")]
public virtual System.Nullable AllowMultipleUsersPerObject { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("callbackOptions")]
public virtual CallbackOptions CallbackOptions { get; set; }
/// Template information about how the class should be displayed. If unset, Google will fallback to a
/// default set of fields to display.
[Newtonsoft.Json.JsonPropertyAttribute("classTemplateInfo")]
public virtual ClassTemplateInfo ClassTemplateInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("countryCode")]
public virtual string CountryCode { get; set; }
/// Information about how the class may be discovered and instantiated from within the Google Pay
/// app.
[Newtonsoft.Json.JsonPropertyAttribute("discoverableProgram")]
public virtual DiscoverableProgram DiscoverableProgram { get; set; }
/// Identifies whether this class supports Smart Tap. The `redemptionIssuers` and one of object level
/// `smartTapRedemptionLevel`, barcode.value`, or `accountId` fields must also be set up correctly in order for
/// a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("enableSmartTap")]
public virtual System.Nullable EnableSmartTap { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("homepageUri")]
public virtual Uri HomepageUri { get; set; }
/// Required. The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is
/// displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("issuerName")]
public virtual string IssuerName { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#loyaltyClass"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Links module data. If links module data is also defined on the object, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Translated strings for the account_id_label. Recommended maximum length is 15 characters to ensure
/// full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedAccountIdLabel")]
public virtual LocalizedString LocalizedAccountIdLabel { get; set; }
/// Translated strings for the account_name_label. Recommended maximum length is 15 characters to
/// ensure full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedAccountNameLabel")]
public virtual LocalizedString LocalizedAccountNameLabel { get; set; }
/// Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedIssuerName")]
public virtual LocalizedString LocalizedIssuerName { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("localizedProgramName")]
public virtual LocalizedString LocalizedProgramName { get; set; }
/// Translated strings for the rewards_tier. Recommended maximum length is 7 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedRewardsTier")]
public virtual LocalizedString LocalizedRewardsTier { get; set; }
/// Translated strings for the rewards_tier_label. Recommended maximum length is 9 characters to ensure
/// full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedRewardsTierLabel")]
public virtual LocalizedString LocalizedRewardsTierLabel { get; set; }
/// Translated strings for the secondary_rewards_tier.
[Newtonsoft.Json.JsonPropertyAttribute("localizedSecondaryRewardsTier")]
public virtual LocalizedString LocalizedSecondaryRewardsTier { get; set; }
/// Translated strings for the secondary_rewards_tier_label.
[Newtonsoft.Json.JsonPropertyAttribute("localizedSecondaryRewardsTierLabel")]
public virtual LocalizedString LocalizedSecondaryRewardsTierLabel { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Identifies whether multiple users and devices will save the same object referencing this
/// class.
[Newtonsoft.Json.JsonPropertyAttribute("multipleDevicesAndHoldersAllowedStatus")]
public virtual string MultipleDevicesAndHoldersAllowedStatus { get; set; }
/// Required. The logo of the loyalty program or company. This logo is displayed in both the details
/// and list views of the app.
[Newtonsoft.Json.JsonPropertyAttribute("programLogo")]
public virtual Image ProgramLogo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("programName")]
public virtual string ProgramName { get; set; }
/// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are
/// identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The
/// `enableSmartTap` and one of object level `smartTapRedemptionValue`, barcode.value`, or `accountId` fields
/// must also be set up correctly in order for a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionIssuers")]
public virtual System.Collections.Generic.IList> RedemptionIssuers { get; set; }
/// The review comments set by the platform when a class is marked `approved` or `rejected`.
[Newtonsoft.Json.JsonPropertyAttribute("review")]
public virtual Review Review { get; set; }
/// 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`.
[Newtonsoft.Json.JsonPropertyAttribute("reviewStatus")]
public virtual string ReviewStatus { get; set; }
/// The rewards tier, such as "Gold" or "Platinum." Recommended maximum length is 7 characters to
/// ensure full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("rewardsTier")]
public virtual string RewardsTier { get; set; }
/// The rewards tier label, such as "Rewards Tier." Recommended maximum length is 9 characters to
/// ensure full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("rewardsTierLabel")]
public virtual string RewardsTierLabel { get; set; }
/// The secondary rewards tier, such as "Gold" or "Platinum."
[Newtonsoft.Json.JsonPropertyAttribute("secondaryRewardsTier")]
public virtual string SecondaryRewardsTier { get; set; }
/// The secondary rewards tier label, such as "Rewards Tier."
[Newtonsoft.Json.JsonPropertyAttribute("secondaryRewardsTierLabel")]
public virtual string SecondaryRewardsTierLabel { get; set; }
/// Optional information about the security animation. If this is set a security animation will be
/// rendered on pass details.
[Newtonsoft.Json.JsonPropertyAttribute("securityAnimation")]
public virtual SecurityAnimation SecurityAnimation { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// View Unlock Requirement options for the loyalty card.
[Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")]
public virtual string ViewUnlockRequirement { get; set; }
/// Deprecated.
[Newtonsoft.Json.JsonPropertyAttribute("wordMark")]
public virtual Image WordMark { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyClassAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated LoyaltyClass resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual LoyaltyClass Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyClassListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyObject : Google.Apis.Requests.IDirectResponseSchema
{
/// The loyalty account identifier. Recommended maximum length is 20 characters.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// The loyalty account holder name, such as "John Smith." Recommended maximum length is 20 characters
/// to ensure full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("accountName")]
public virtual string AccountName { get; set; }
/// Optional information about the partner app link.
[Newtonsoft.Json.JsonPropertyAttribute("appLinkData")]
public virtual AppLinkData AppLinkData { get; set; }
/// The barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("barcode")]
public virtual Barcode Barcode { get; set; }
/// Required. The class associated with this object. The class must be of the same type as this object,
/// must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the
/// former is issued by Google and latter is chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// A copy of the inherited fields of the parent class. These fields are retrieved during a
/// GET.
[Newtonsoft.Json.JsonPropertyAttribute("classReference")]
public virtual LoyaltyClass ClassReference { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("disableExpirationNotification")]
public virtual System.Nullable DisableExpirationNotification { get; set; }
/// Information that controls how passes are grouped together.
[Newtonsoft.Json.JsonPropertyAttribute("groupingInfo")]
public virtual GroupingInfo GroupingInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("hasLinkedDevice")]
public virtual System.Nullable HasLinkedDevice { get; set; }
/// Indicates if the object has users. This field is set by the platform.
[Newtonsoft.Json.JsonPropertyAttribute("hasUsers")]
public virtual System.Nullable HasUsers { get; set; }
/// Optional banner image displayed on the front of the card. If none is present, hero image of the
/// class, if present, will be displayed. If hero image of the class is also not present, nothing will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// Required. The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and
/// latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#loyaltyObject"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// A list of offer objects linked to this loyalty card. The offer objects must already exist. Offer
/// object IDs should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("linkedOfferIds")]
public virtual System.Collections.Generic.IList LinkedOfferIds { get; set; }
/// Links module data. If links module data is also defined on the class, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// The loyalty reward points label, balance, and type.
[Newtonsoft.Json.JsonPropertyAttribute("loyaltyPoints")]
public virtual LoyaltyPoints LoyaltyPoints { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
[Newtonsoft.Json.JsonPropertyAttribute("passConstraints")]
public virtual PassConstraints PassConstraints { get; set; }
/// The rotating barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("rotatingBarcode")]
public virtual RotatingBarcode RotatingBarcode { get; set; }
/// The secondary loyalty reward points label, balance, and type. Shown in addition to the primary
/// loyalty points.
[Newtonsoft.Json.JsonPropertyAttribute("secondaryLoyaltyPoints")]
public virtual LoyaltyPoints SecondaryLoyaltyPoints { get; set; }
/// The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The
/// class level fields `enableSmartTap` and `redemptionIssuers` must also be set up correctly in order for the
/// pass to support Smart Tap. Only ASCII characters are supported. If this value is not set but the class level
/// fields `enableSmartTap` and `redemptionIssuers` are set up correctly, the `barcode.value` or the `accountId`
/// fields are used as fallback if present.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapRedemptionValue")]
public virtual string SmartTapRedemptionValue { get; set; }
/// Required. The state of the object. This field is used to determine how an object is displayed in
/// the app. For example, an `inactive` object is moved to the "Expired passes" section.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")]
public virtual TimeInterval ValidTimeInterval { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyObjectAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated LoyaltyObject resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual LoyaltyObject Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyObjectListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyPoints : Google.Apis.Requests.IDirectResponseSchema
{
/// 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`.
[Newtonsoft.Json.JsonPropertyAttribute("balance")]
public virtual LoyaltyPointsBalance Balance { get; set; }
/// The loyalty points label, such as "Points". Recommended maximum length is 9 characters.
[Newtonsoft.Json.JsonPropertyAttribute("label")]
public virtual string Label { get; set; }
/// Translated strings for the label. Recommended maximum length is 9 characters.
[Newtonsoft.Json.JsonPropertyAttribute("localizedLabel")]
public virtual LocalizedString LocalizedLabel { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class LoyaltyPointsBalance : Google.Apis.Requests.IDirectResponseSchema
{
/// The double form of a balance. Only one of these subtypes (string, int, double, money) should be
/// populated.
[Newtonsoft.Json.JsonPropertyAttribute("double")]
public virtual System.Nullable Double__ { get; set; }
/// The integer form of a balance. Only one of these subtypes (string, int, double, money) should be
/// populated.
[Newtonsoft.Json.JsonPropertyAttribute("int")]
public virtual System.Nullable Int__ { get; set; }
/// The money form of a balance. Only one of these subtypes (string, int, double, money) should be
/// populated.
[Newtonsoft.Json.JsonPropertyAttribute("money")]
public virtual Money Money { get; set; }
/// The string form of a balance. Only one of these subtypes (string, int, double, money) should be
/// populated.
[Newtonsoft.Json.JsonPropertyAttribute("string")]
public virtual string String__ { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A reference to data stored on the filesystem, on GFS or in blobstore.
public class Media : Google.Apis.Requests.IDirectResponseSchema
{
/// Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash.
/// As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any
/// time.
[Newtonsoft.Json.JsonPropertyAttribute("algorithm")]
public virtual string Algorithm { get; set; }
/// Use object_id instead.
[Newtonsoft.Json.JsonPropertyAttribute("bigstoreObjectRef")]
public virtual string BigstoreObjectRef { get; set; }
/// Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte
/// representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For
/// now, any v2 blob will also be represented in this field as v1 BlobRef.
[Newtonsoft.Json.JsonPropertyAttribute("blobRef")]
public virtual string BlobRef { get; set; }
/// Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
[Newtonsoft.Json.JsonPropertyAttribute("blobstore2Info")]
public virtual Blobstore2Info Blobstore2Info { get; set; }
/// A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA.
/// The media length field must be set to the sum of the lengths of all composite media objects. Note: All
/// composite media must have length specified.
[Newtonsoft.Json.JsonPropertyAttribute("compositeMedia")]
public virtual System.Collections.Generic.IList CompositeMedia { get; set; }
/// MIME type of the data
[Newtonsoft.Json.JsonPropertyAttribute("contentType")]
public virtual string ContentType { get; set; }
/// Extended content type information provided for Scotty uploads.
[Newtonsoft.Json.JsonPropertyAttribute("contentTypeInfo")]
public virtual ContentTypeInfo ContentTypeInfo { get; set; }
/// A binary data reference for a media download. Serves as a technology-agnostic binary reference in
/// some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as
/// bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support
/// JavaScript. This prevents us from including the actual type of this field.
[Newtonsoft.Json.JsonPropertyAttribute("cosmoBinaryReference")]
public virtual string CosmoBinaryReference { get; set; }
/// For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE
/// WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being
/// downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently
/// supported.
[Newtonsoft.Json.JsonPropertyAttribute("crc32cHash")]
public virtual System.Nullable Crc32cHash { get; set; }
/// Set if reference_type is DIFF_CHECKSUMS_RESPONSE.
[Newtonsoft.Json.JsonPropertyAttribute("diffChecksumsResponse")]
public virtual DiffChecksumsResponse DiffChecksumsResponse { get; set; }
/// Set if reference_type is DIFF_DOWNLOAD_RESPONSE.
[Newtonsoft.Json.JsonPropertyAttribute("diffDownloadResponse")]
public virtual DiffDownloadResponse DiffDownloadResponse { get; set; }
/// Set if reference_type is DIFF_UPLOAD_REQUEST.
[Newtonsoft.Json.JsonPropertyAttribute("diffUploadRequest")]
public virtual DiffUploadRequest DiffUploadRequest { get; set; }
/// Set if reference_type is DIFF_UPLOAD_RESPONSE.
[Newtonsoft.Json.JsonPropertyAttribute("diffUploadResponse")]
public virtual DiffUploadResponse DiffUploadResponse { get; set; }
/// Set if reference_type is DIFF_VERSION_RESPONSE.
[Newtonsoft.Json.JsonPropertyAttribute("diffVersionResponse")]
public virtual DiffVersionResponse DiffVersionResponse { get; set; }
/// Parameters for a media download.
[Newtonsoft.Json.JsonPropertyAttribute("downloadParameters")]
public virtual DownloadParameters DownloadParameters { get; set; }
/// Original file name
[Newtonsoft.Json.JsonPropertyAttribute("filename")]
public virtual string Filename { get; set; }
/// Deprecated, use one of explicit hash type fields instead. These two hash related fields will only
/// be populated on Scotty based media uploads and will contain the content of the hash group in the
/// NotificationRequest: http://cs/#google3/uploader/service/proto/upload_listener.proto&q=class:Hash Hex
/// encoded hash value of the uploaded media.
[Newtonsoft.Json.JsonPropertyAttribute("hash")]
public virtual string Hash { get; set; }
/// For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty
/// verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will
/// reject it if the hashes don't match. This is set to true if Scotty performed this verification.
[Newtonsoft.Json.JsonPropertyAttribute("hashVerified")]
public virtual System.Nullable HashVerified { get; set; }
/// Media data, set if reference_type is INLINE
[Newtonsoft.Json.JsonPropertyAttribute("inline")]
public virtual string Inline { get; set; }
/// |is_potential_retry| is set false only when Scotty is certain that it has not sent the request
/// before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot
/// be certain that it has never sent the request before due to potential failure in the session state
/// persistence.
[Newtonsoft.Json.JsonPropertyAttribute("isPotentialRetry")]
public virtual System.Nullable IsPotentialRetry { get; set; }
/// Size of the data, in bytes
[Newtonsoft.Json.JsonPropertyAttribute("length")]
public virtual System.Nullable Length { get; set; }
/// Scotty-provided MD5 hash for an upload.
[Newtonsoft.Json.JsonPropertyAttribute("md5Hash")]
public virtual string Md5Hash { get; set; }
/// Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.
[Newtonsoft.Json.JsonPropertyAttribute("mediaId")]
public virtual string MediaId { get; set; }
/// Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
[Newtonsoft.Json.JsonPropertyAttribute("objectId")]
public virtual ObjectId ObjectId { get; set; }
/// Path to the data, set if reference_type is PATH
[Newtonsoft.Json.JsonPropertyAttribute("path")]
public virtual string Path { get; set; }
/// Describes what the field reference contains.
[Newtonsoft.Json.JsonPropertyAttribute("referenceType")]
public virtual string ReferenceType { get; set; }
/// Scotty-provided SHA1 hash for an upload.
[Newtonsoft.Json.JsonPropertyAttribute("sha1Hash")]
public virtual string Sha1Hash { get; set; }
/// Scotty-provided SHA256 hash for an upload.
[Newtonsoft.Json.JsonPropertyAttribute("sha256Hash")]
public virtual string Sha256Hash { get; set; }
/// Time at which the media data was last updated, in milliseconds since UNIX epoch
[Newtonsoft.Json.JsonPropertyAttribute("timestamp")]
public virtual System.Nullable Timestamp { get; set; }
/// A unique fingerprint/version id for the media data
[Newtonsoft.Json.JsonPropertyAttribute("token")]
public virtual string Token { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Extra information added to operations that support Scotty media requests.
public class MediaRequestInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// The number of current bytes uploaded or downloaded.
[Newtonsoft.Json.JsonPropertyAttribute("currentBytes")]
public virtual System.Nullable CurrentBytes { get; set; }
/// Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field,
/// which Scotty will then provide in subsequent upload notifications.
[Newtonsoft.Json.JsonPropertyAttribute("customData")]
public virtual string CustomData { get; set; }
/// Set if the http request info is diff encoded. The value of this field is the version number of the
/// base revision. This is corresponding to Apiary's mediaDiffObjectVersion
/// (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-
/// scotty-diff-upload for more information.
[Newtonsoft.Json.JsonPropertyAttribute("diffObjectVersion")]
public virtual string DiffObjectVersion { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("finalStatus")]
public virtual System.Nullable FinalStatus { get; set; }
/// The type of notification received from Scotty.
[Newtonsoft.Json.JsonPropertyAttribute("notificationType")]
public virtual string NotificationType { get; set; }
/// The Scotty request ID.
[Newtonsoft.Json.JsonPropertyAttribute("requestId")]
public virtual string RequestId { get; set; }
/// The total size of the file.
[Newtonsoft.Json.JsonPropertyAttribute("totalBytes")]
public virtual System.Nullable TotalBytes { get; set; }
/// Whether the total bytes field contains an estimated data.
[Newtonsoft.Json.JsonPropertyAttribute("totalBytesIsEstimated")]
public virtual System.Nullable TotalBytesIsEstimated { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A message that will be displayed with a Valuable
public class Message : Google.Apis.Requests.IDirectResponseSchema
{
/// The message body.
[Newtonsoft.Json.JsonPropertyAttribute("body")]
public virtual string Body { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("displayInterval")]
public virtual TimeInterval DisplayInterval { get; set; }
/// The message header.
[Newtonsoft.Json.JsonPropertyAttribute("header")]
public virtual string Header { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#walletObjectMessage"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Translated strings for the message body.
[Newtonsoft.Json.JsonPropertyAttribute("localizedBody")]
public virtual LocalizedString LocalizedBody { get; set; }
/// Translated strings for the message header.
[Newtonsoft.Json.JsonPropertyAttribute("localizedHeader")]
public virtual LocalizedString LocalizedHeader { get; set; }
/// The type of the message. Currently, this can only be set for offers.
[Newtonsoft.Json.JsonPropertyAttribute("messageType")]
public virtual string MessageType { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class ModifyLinkedOfferObjects : Google.Apis.Requests.IDirectResponseSchema
{
/// The linked offer object ids to add to the object.
[Newtonsoft.Json.JsonPropertyAttribute("addLinkedOfferObjectIds")]
public virtual System.Collections.Generic.IList AddLinkedOfferObjectIds { get; set; }
/// The linked offer object ids to remove from the object.
[Newtonsoft.Json.JsonPropertyAttribute("removeLinkedOfferObjectIds")]
public virtual System.Collections.Generic.IList RemoveLinkedOfferObjectIds { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class ModifyLinkedOfferObjectsRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The linked offer object ids to add or remove from the object.
[Newtonsoft.Json.JsonPropertyAttribute("linkedOfferObjectIds")]
public virtual ModifyLinkedOfferObjects LinkedOfferObjectIds { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Money : Google.Apis.Requests.IDirectResponseSchema
{
/// The currency code, such as "USD" or "EUR."
[Newtonsoft.Json.JsonPropertyAttribute("currencyCode")]
public virtual string CurrencyCode { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#money"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The unit of money amount in micros. For example, $1 USD would be represented as 1000000
/// micros.
[Newtonsoft.Json.JsonPropertyAttribute("micros")]
public virtual System.Nullable Micros { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Indicates if the object needs to have notification enabled. We support only one of
/// ExpiryNotification/UpcomingNotification. `expiryNotification` takes precedence over `upcomingNotification`. In
/// other words if `expiryNotification` is set, we ignore the `upcomingNotification` field.
public class Notifications : Google.Apis.Requests.IDirectResponseSchema
{
/// A notification would be triggered at a specific time before the card expires.
[Newtonsoft.Json.JsonPropertyAttribute("expiryNotification")]
public virtual ExpiryNotification ExpiryNotification { get; set; }
/// A notification would be triggered at a specific time before the card becomes usable.
[Newtonsoft.Json.JsonPropertyAttribute("upcomingNotification")]
public virtual UpcomingNotification UpcomingNotification { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive
/// closure issues with JavaScript support; see http://b/8801763.
public class ObjectId : Google.Apis.Requests.IDirectResponseSchema
{
/// The name of the bucket to which this object belongs.
[Newtonsoft.Json.JsonPropertyAttribute("bucketName")]
public virtual string BucketName { get; set; }
/// Generation of the object. Generations are monotonically increasing across writes, allowing them to
/// be be compared to determine which generation is newer. If this is omitted in a request, then you are
/// requesting the live object. See http://go/bigstore-versions
[Newtonsoft.Json.JsonPropertyAttribute("generation")]
public virtual System.Nullable Generation { get; set; }
/// The name of the object.
[Newtonsoft.Json.JsonPropertyAttribute("objectName")]
public virtual string ObjectName { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class OfferClass : Google.Apis.Requests.IDirectResponseSchema
{
/// Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
[Newtonsoft.Json.JsonPropertyAttribute("allowMultipleUsersPerObject")]
public virtual System.Nullable AllowMultipleUsersPerObject { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("callbackOptions")]
public virtual CallbackOptions CallbackOptions { get; set; }
/// Template information about how the class should be displayed. If unset, Google will fallback to a
/// default set of fields to display.
[Newtonsoft.Json.JsonPropertyAttribute("classTemplateInfo")]
public virtual ClassTemplateInfo ClassTemplateInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("countryCode")]
public virtual string CountryCode { get; set; }
/// The details of the offer.
[Newtonsoft.Json.JsonPropertyAttribute("details")]
public virtual string Details { get; set; }
/// Identifies whether this class supports Smart Tap. The `redemptionIssuers` and object level
/// `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart
/// Tap.
[Newtonsoft.Json.JsonPropertyAttribute("enableSmartTap")]
public virtual System.Nullable EnableSmartTap { get; set; }
/// The fine print or terms of the offer, such as "20% off any t-shirt at Adam's Apparel."
[Newtonsoft.Json.JsonPropertyAttribute("finePrint")]
public virtual string FinePrint { get; set; }
/// The help link for the offer, such as `http://myownpersonaldomain.com/help`
[Newtonsoft.Json.JsonPropertyAttribute("helpUri")]
public virtual Uri HelpUri { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("homepageUri")]
public virtual Uri HomepageUri { get; set; }
/// Required. The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is
/// displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("issuerName")]
public virtual string IssuerName { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#offerClass"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Links module data. If links module data is also defined on the object, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Translated strings for the details.
[Newtonsoft.Json.JsonPropertyAttribute("localizedDetails")]
public virtual LocalizedString LocalizedDetails { get; set; }
/// Translated strings for the fine_print.
[Newtonsoft.Json.JsonPropertyAttribute("localizedFinePrint")]
public virtual LocalizedString LocalizedFinePrint { get; set; }
/// Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedIssuerName")]
public virtual LocalizedString LocalizedIssuerName { get; set; }
/// Translated strings for the provider. Recommended maximum length is 12 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedProvider")]
public virtual LocalizedString LocalizedProvider { get; set; }
/// Translated strings for the short title. Recommended maximum length is 20 characters.
[Newtonsoft.Json.JsonPropertyAttribute("localizedShortTitle")]
public virtual LocalizedString LocalizedShortTitle { get; set; }
/// Translated strings for the title. Recommended maximum length is 60 characters to ensure full string
/// is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedTitle")]
public virtual LocalizedString LocalizedTitle { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Identifies whether multiple users and devices will save the same object referencing this
/// class.
[Newtonsoft.Json.JsonPropertyAttribute("multipleDevicesAndHoldersAllowedStatus")]
public virtual string MultipleDevicesAndHoldersAllowedStatus { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("provider")]
public virtual string Provider { get; set; }
/// Required. The redemption channels applicable to this offer.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionChannel")]
public virtual string RedemptionChannel { get; set; }
/// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are
/// identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The
/// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order
/// for a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionIssuers")]
public virtual System.Collections.Generic.IList> RedemptionIssuers { get; set; }
/// The review comments set by the platform when a class is marked `approved` or `rejected`.
[Newtonsoft.Json.JsonPropertyAttribute("review")]
public virtual Review Review { get; set; }
/// 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`.
[Newtonsoft.Json.JsonPropertyAttribute("reviewStatus")]
public virtual string ReviewStatus { get; set; }
/// Optional information about the security animation. If this is set a security animation will be
/// rendered on pass details.
[Newtonsoft.Json.JsonPropertyAttribute("securityAnimation")]
public virtual SecurityAnimation SecurityAnimation { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("shortTitle")]
public virtual string ShortTitle { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("title")]
public virtual string Title { get; set; }
/// The title image of the offer. This image is displayed in both the details and list views of the
/// app.
[Newtonsoft.Json.JsonPropertyAttribute("titleImage")]
public virtual Image TitleImage { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// View Unlock Requirement options for the offer.
[Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")]
public virtual string ViewUnlockRequirement { get; set; }
/// Deprecated.
[Newtonsoft.Json.JsonPropertyAttribute("wordMark")]
public virtual Image WordMark { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class OfferClassAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated OfferClass resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual OfferClass Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class OfferClassListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class OfferObject : Google.Apis.Requests.IDirectResponseSchema
{
/// Optional information about the partner app link.
[Newtonsoft.Json.JsonPropertyAttribute("appLinkData")]
public virtual AppLinkData AppLinkData { get; set; }
/// The barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("barcode")]
public virtual Barcode Barcode { get; set; }
/// Required. The class associated with this object. The class must be of the same type as this object,
/// must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the
/// former is issued by Google and latter is chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// A copy of the inherited fields of the parent class. These fields are retrieved during a
/// GET.
[Newtonsoft.Json.JsonPropertyAttribute("classReference")]
public virtual OfferClass ClassReference { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("disableExpirationNotification")]
public virtual System.Nullable DisableExpirationNotification { get; set; }
/// Information that controls how passes are grouped together.
[Newtonsoft.Json.JsonPropertyAttribute("groupingInfo")]
public virtual GroupingInfo GroupingInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("hasLinkedDevice")]
public virtual System.Nullable HasLinkedDevice { get; set; }
/// Indicates if the object has users. This field is set by the platform.
[Newtonsoft.Json.JsonPropertyAttribute("hasUsers")]
public virtual System.Nullable HasUsers { get; set; }
/// Optional banner image displayed on the front of the card. If none is present, hero image of the
/// class, if present, will be displayed. If hero image of the class is also not present, nothing will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// Required. The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and
/// latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#offerObject"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Links module data. If links module data is also defined on the class, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
[Newtonsoft.Json.JsonPropertyAttribute("passConstraints")]
public virtual PassConstraints PassConstraints { get; set; }
/// The rotating barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("rotatingBarcode")]
public virtual RotatingBarcode RotatingBarcode { get; set; }
/// The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The
/// class level fields `enableSmartTap` and `redemptionIssuers` must also be set up correctly in order for the
/// pass to support Smart Tap. Only ASCII characters are supported.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapRedemptionValue")]
public virtual string SmartTapRedemptionValue { get; set; }
/// Required. The state of the object. This field is used to determine how an object is displayed in
/// the app. For example, an `inactive` object is moved to the "Expired passes" section.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")]
public virtual TimeInterval ValidTimeInterval { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class OfferObjectAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated OfferObject resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual OfferObject Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class OfferObjectListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Pagination : Google.Apis.Requests.IDirectResponseSchema
{
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#pagination"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Page token to send to fetch the next page.
[Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")]
public virtual string NextPageToken { get; set; }
/// Number of results returned in this page.
[Newtonsoft.Json.JsonPropertyAttribute("resultsPerPage")]
public virtual System.Nullable ResultsPerPage { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Container for any constraints that may be placed on passes.
public class PassConstraints : Google.Apis.Requests.IDirectResponseSchema
{
/// The NFC constraints for the pass.
[Newtonsoft.Json.JsonPropertyAttribute("nfcConstraint")]
public virtual System.Collections.Generic.IList NfcConstraint { get; set; }
/// The screenshot eligibility for the pass.
[Newtonsoft.Json.JsonPropertyAttribute("screenshotEligibility")]
public virtual string ScreenshotEligibility { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Permission : Google.Apis.Requests.IDirectResponseSchema
{
/// The email address of the user, group, or service account to which this permission refers
/// to.
[Newtonsoft.Json.JsonPropertyAttribute("emailAddress")]
public virtual string EmailAddress { get; set; }
/// The role granted by this permission.
[Newtonsoft.Json.JsonPropertyAttribute("role")]
public virtual string Role { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Permissions : Google.Apis.Requests.IDirectResponseSchema
{
/// ID of the issuer the list of permissions refer to.
[Newtonsoft.Json.JsonPropertyAttribute("issuerId")]
public virtual System.Nullable IssuerId { get; set; }
/// The complete list of permissions for the issuer account.
[Newtonsoft.Json.JsonPropertyAttribute("permissions")]
public virtual System.Collections.Generic.IList PermissionsValue { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Private data for TextModule. This data will be rendered as a TextModule for a pass.
public class PrivateText : Google.Apis.Requests.IDirectResponseSchema
{
/// Translated strings for the body.
[Newtonsoft.Json.JsonPropertyAttribute("body")]
public virtual LocalizedString Body { get; set; }
/// Translated strings for the header.
[Newtonsoft.Json.JsonPropertyAttribute("header")]
public virtual LocalizedString Header { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Private data for LinkModule. This data will be rendered as the LinkModule for a pass.
public class PrivateUri : Google.Apis.Requests.IDirectResponseSchema
{
/// The URI's title appearing in the app as text and its translated strings. Recommended maximum is 20
/// characters to ensure the full string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual LocalizedString Description { get; set; }
/// The location of a web page, image, or other resource. URIs in the `LinksModuleData` 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).
[Newtonsoft.Json.JsonPropertyAttribute("uri")]
public virtual string Uri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class PurchaseDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// ID of the account used to purchase the ticket.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// The confirmation code for the purchase. This may be the same for multiple different tickets and is
/// used to group tickets together.
[Newtonsoft.Json.JsonPropertyAttribute("confirmationCode")]
public virtual string ConfirmationCode { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("purchaseDateTime")]
public virtual string PurchaseDateTime { get; set; }
/// Receipt number/identifier for tracking the ticket purchase via the body that sold the
/// ticket.
[Newtonsoft.Json.JsonPropertyAttribute("purchaseReceiptNumber")]
public virtual string PurchaseReceiptNumber { get; set; }
/// The cost of the ticket.
[Newtonsoft.Json.JsonPropertyAttribute("ticketCost")]
public virtual TicketCost TicketCost { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class ReservationInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("confirmationCode")]
public virtual string ConfirmationCode { get; set; }
/// E-ticket number.
[Newtonsoft.Json.JsonPropertyAttribute("eticketNumber")]
public virtual string EticketNumber { get; set; }
/// Frequent flyer membership information.
[Newtonsoft.Json.JsonPropertyAttribute("frequentFlyerInfo")]
public virtual FrequentFlyerInfo FrequentFlyerInfo { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#reservationInfo"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Resources : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("eventTicketClasses")]
public virtual System.Collections.Generic.IList EventTicketClasses { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("eventTicketObjects")]
public virtual System.Collections.Generic.IList EventTicketObjects { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("flightClasses")]
public virtual System.Collections.Generic.IList FlightClasses { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("flightObjects")]
public virtual System.Collections.Generic.IList FlightObjects { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("giftCardClasses")]
public virtual System.Collections.Generic.IList GiftCardClasses { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("giftCardObjects")]
public virtual System.Collections.Generic.IList GiftCardObjects { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("loyaltyClasses")]
public virtual System.Collections.Generic.IList LoyaltyClasses { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("loyaltyObjects")]
public virtual System.Collections.Generic.IList LoyaltyObjects { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("offerClasses")]
public virtual System.Collections.Generic.IList OfferClasses { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("offerObjects")]
public virtual System.Collections.Generic.IList OfferObjects { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("transitClasses")]
public virtual System.Collections.Generic.IList TransitClasses { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("transitObjects")]
public virtual System.Collections.Generic.IList TransitObjects { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Review : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("comments")]
public virtual string Comments { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class RotatingBarcode : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("alternateText")]
public virtual string AlternateText { get; set; }
/// The render encoding for the barcode. When specified, barcode is rendered in the given encoding.
/// Otherwise best known encoding is chosen by Google.
[Newtonsoft.Json.JsonPropertyAttribute("renderEncoding")]
public virtual string RenderEncoding { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("showCodeText")]
public virtual LocalizedString ShowCodeText { get; set; }
/// Details used to evaluate the {totp_value_n} substitutions.
[Newtonsoft.Json.JsonPropertyAttribute("totpDetails")]
public virtual RotatingBarcodeTotpDetails TotpDetails { get; set; }
/// The type of this barcode.
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
/// String encoded barcode value. This string supports the following substitutions: * {totp_value_n}:
/// Replaced with the TOTP value (see TotpDetails.parameters). * {totp_timestamp_millis}: Replaced with the
/// timestamp (millis since epoch) at which the barcode was generated. * {totp_timestamp_seconds}: Replaced with
/// the timestamp (seconds since epoch) at which the barcode was generated.
[Newtonsoft.Json.JsonPropertyAttribute("valuePattern")]
public virtual string ValuePattern { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Configuration for the time-based OTP substitutions. See https://tools.ietf.org/html/rfc6238
public class RotatingBarcodeTotpDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// The TOTP algorithm used to generate the OTP.
[Newtonsoft.Json.JsonPropertyAttribute("algorithm")]
public virtual string Algorithm { get; set; }
/// The TOTP parameters for each of the {totp_value_*} substitutions. The TotpParameters at index n is
/// used for the {totp_value_n} substitution.
[Newtonsoft.Json.JsonPropertyAttribute("parameters")]
public virtual System.Collections.Generic.IList Parameters { get; set; }
/// The time interval used for the TOTP value generation, in milliseconds.
[Newtonsoft.Json.JsonPropertyAttribute("periodMillis")]
public virtual System.Nullable PeriodMillis { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Configuration for the key and value length. See https://www.rfc-
/// editor.org/rfc/rfc4226#section-5.3
public class RotatingBarcodeTotpDetailsTotpParameters : Google.Apis.Requests.IDirectResponseSchema
{
/// The secret key used for the TOTP value generation, encoded as a Base16 string.
[Newtonsoft.Json.JsonPropertyAttribute("key")]
public virtual string Key { get; set; }
/// The length of the TOTP value in decimal digits.
[Newtonsoft.Json.JsonPropertyAttribute("valueLength")]
public virtual System.Nullable ValueLength { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class SecurityAnimation : Google.Apis.Requests.IDirectResponseSchema
{
/// Type of animation.
[Newtonsoft.Json.JsonPropertyAttribute("animationType")]
public virtual string AnimationType { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class SignUpInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// ID of the class the user can sign up for.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class SmartTap : Google.Apis.Requests.IDirectResponseSchema
{
/// The unique identifier for a smart tap. This value should follow the format issuer ID.identifier
/// where the former is issued by Google and latter is the Smart Tap id. The Smart Tap id is a Base64 encoded
/// string which represents the id which was generated by the Google Pay app.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Communication from merchant to user.
[Newtonsoft.Json.JsonPropertyAttribute("infos")]
public virtual System.Collections.Generic.IList Infos { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#smartTap"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Smart Tap merchant ID of who engaged in the Smart Tap interaction.
[Newtonsoft.Json.JsonPropertyAttribute("merchantId")]
public virtual System.Nullable MerchantId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class SmartTapMerchantData : Google.Apis.Requests.IDirectResponseSchema
{
/// Available only to Smart Tap enabled partners. Contact support for additional guidance.
[Newtonsoft.Json.JsonPropertyAttribute("authenticationKeys")]
public virtual System.Collections.Generic.IList AuthenticationKeys { get; set; }
/// Available only to Smart Tap enabled partners. Contact support for additional guidance.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapMerchantId")]
public virtual System.Nullable SmartTapMerchantId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TemplateItem : Google.Apis.Requests.IDirectResponseSchema
{
/// 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".
[Newtonsoft.Json.JsonPropertyAttribute("firstValue")]
public virtual FieldSelector FirstValue { get; set; }
/// A predefined item to display. Only one of `firstValue` or `predefinedItem` may be set.
[Newtonsoft.Json.JsonPropertyAttribute("predefinedItem")]
public virtual string PredefinedItem { get; set; }
/// A reference to a field to display. This may only be populated if the `firstValue` field is
/// populated.
[Newtonsoft.Json.JsonPropertyAttribute("secondValue")]
public virtual FieldSelector SecondValue { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// 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.
public class TextModuleData : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("body")]
public virtual string Body { get; set; }
/// The header of the Text Module. Recommended maximum length is 35 characters to ensure full string is
/// displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("header")]
public virtual string Header { get; set; }
/// The ID associated with a text module. This field is here to enable ease of management of text
/// modules.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Translated strings for the body. Recommended maximum length is 500 characters to ensure full string
/// is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedBody")]
public virtual LocalizedString LocalizedBody { get; set; }
/// Translated strings for the header. Recommended maximum length is 35 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedHeader")]
public virtual LocalizedString LocalizedHeader { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TicketCost : Google.Apis.Requests.IDirectResponseSchema
{
/// A message describing any kind of discount that was applied.
[Newtonsoft.Json.JsonPropertyAttribute("discountMessage")]
public virtual LocalizedString DiscountMessage { get; set; }
/// The face value of the ticket.
[Newtonsoft.Json.JsonPropertyAttribute("faceValue")]
public virtual Money FaceValue { get; set; }
/// The actual purchase price of the ticket, after tax and/or discounts.
[Newtonsoft.Json.JsonPropertyAttribute("purchasePrice")]
public virtual Money PurchasePrice { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TicketLeg : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("arrivalDateTime")]
public virtual string ArrivalDateTime { get; set; }
/// The train or ship name/number that the passsenger needs to board.
[Newtonsoft.Json.JsonPropertyAttribute("carriage")]
public virtual string Carriage { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("departureDateTime")]
public virtual string DepartureDateTime { get; set; }
/// The destination name.
[Newtonsoft.Json.JsonPropertyAttribute("destinationName")]
public virtual LocalizedString DestinationName { get; set; }
/// The destination station code.
[Newtonsoft.Json.JsonPropertyAttribute("destinationStationCode")]
public virtual string DestinationStationCode { get; set; }
/// Short description/name of the fare for this leg of travel. Eg "Anytime Single Use".
[Newtonsoft.Json.JsonPropertyAttribute("fareName")]
public virtual LocalizedString FareName { get; set; }
/// The name of the origin station. This is required if `desinationName` is present or if
/// `originStationCode` is not present.
[Newtonsoft.Json.JsonPropertyAttribute("originName")]
public virtual LocalizedString OriginName { get; set; }
/// The origin station code. This is required if `destinationStationCode` is present or if `originName`
/// is not present.
[Newtonsoft.Json.JsonPropertyAttribute("originStationCode")]
public virtual string OriginStationCode { get; set; }
/// The platform or gate where the passenger can board the carriage.
[Newtonsoft.Json.JsonPropertyAttribute("platform")]
public virtual string Platform { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("ticketSeat")]
public virtual TicketSeat TicketSeat { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("ticketSeats")]
public virtual System.Collections.Generic.IList TicketSeats { get; set; }
/// The name of the transit operator that is operating this leg of a trip.
[Newtonsoft.Json.JsonPropertyAttribute("transitOperatorName")]
public virtual LocalizedString TransitOperatorName { get; set; }
/// Terminus station or destination of the train/bus/etc.
[Newtonsoft.Json.JsonPropertyAttribute("transitTerminusName")]
public virtual LocalizedString TransitTerminusName { get; set; }
/// The zone of boarding within the platform.
[Newtonsoft.Json.JsonPropertyAttribute("zone")]
public virtual string Zone { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TicketRestrictions : Google.Apis.Requests.IDirectResponseSchema
{
/// Extra restrictions that don't fall under the "route" or "time" categories.
[Newtonsoft.Json.JsonPropertyAttribute("otherRestrictions")]
public virtual LocalizedString OtherRestrictions { get; set; }
/// Restrictions about routes that may be taken. For example, this may be the string "Reserved
/// CrossCountry trains only".
[Newtonsoft.Json.JsonPropertyAttribute("routeRestrictions")]
public virtual LocalizedString RouteRestrictions { get; set; }
/// More details about the above `routeRestrictions`.
[Newtonsoft.Json.JsonPropertyAttribute("routeRestrictionsDetails")]
public virtual LocalizedString RouteRestrictionsDetails { get; set; }
/// Restrictions about times this ticket may be used.
[Newtonsoft.Json.JsonPropertyAttribute("timeRestrictions")]
public virtual LocalizedString TimeRestrictions { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TicketSeat : Google.Apis.Requests.IDirectResponseSchema
{
/// The identifier of the train car or coach in which the ticketed seat is located. Eg. "10"
[Newtonsoft.Json.JsonPropertyAttribute("coach")]
public virtual string Coach { get; set; }
/// A custome fare class to be used if no `fareClass` applies. Both `fareClass` and `customFareClass`
/// may not be set.
[Newtonsoft.Json.JsonPropertyAttribute("customFareClass")]
public virtual LocalizedString CustomFareClass { get; set; }
/// The fare class of the ticketed seat.
[Newtonsoft.Json.JsonPropertyAttribute("fareClass")]
public virtual string FareClass { get; set; }
/// The identifier of where the ticketed seat is located. Eg. "42". If there is no specific identifier,
/// use `seatAssigment` instead.
[Newtonsoft.Json.JsonPropertyAttribute("seat")]
public virtual string Seat { get; set; }
/// The passenger's seat assignment. Eg. "no specific seat". To be used when there is no specific
/// identifier to use in `seat`.
[Newtonsoft.Json.JsonPropertyAttribute("seatAssignment")]
public virtual LocalizedString SeatAssignment { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TimeInterval : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("end")]
public virtual DateTime End { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#timeInterval"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("start")]
public virtual DateTime Start { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TransitClass : Google.Apis.Requests.IDirectResponseSchema
{
/// Activation options for an activatable ticket.
[Newtonsoft.Json.JsonPropertyAttribute("activationOptions")]
public virtual ActivationOptions ActivationOptions { get; set; }
/// Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
[Newtonsoft.Json.JsonPropertyAttribute("allowMultipleUsersPerObject")]
public virtual System.Nullable AllowMultipleUsersPerObject { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("callbackOptions")]
public virtual CallbackOptions CallbackOptions { get; set; }
/// Template information about how the class should be displayed. If unset, Google will fallback to a
/// default set of fields to display.
[Newtonsoft.Json.JsonPropertyAttribute("classTemplateInfo")]
public virtual ClassTemplateInfo ClassTemplateInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("countryCode")]
public virtual string CountryCode { get; set; }
/// A custom label to use for the carriage value (`transitObject.ticketLeg.carriage`).
[Newtonsoft.Json.JsonPropertyAttribute("customCarriageLabel")]
public virtual LocalizedString CustomCarriageLabel { get; set; }
/// A custom label to use for the coach value (`transitObject.ticketLeg.ticketSeat.coach`).
[Newtonsoft.Json.JsonPropertyAttribute("customCoachLabel")]
public virtual LocalizedString CustomCoachLabel { get; set; }
/// A custom label to use for the transit concession category value
/// (`transitObject.concessionCategory`).
[Newtonsoft.Json.JsonPropertyAttribute("customConcessionCategoryLabel")]
public virtual LocalizedString CustomConcessionCategoryLabel { get; set; }
/// A custom label to use for the confirmation code value
/// (`transitObject.purchaseDetails.confirmationCode`).
[Newtonsoft.Json.JsonPropertyAttribute("customConfirmationCodeLabel")]
public virtual LocalizedString CustomConfirmationCodeLabel { get; set; }
/// A custom label to use for the transit discount message value
/// (`transitObject.purchaseDetails.ticketCost.discountMessage`).
[Newtonsoft.Json.JsonPropertyAttribute("customDiscountMessageLabel")]
public virtual LocalizedString CustomDiscountMessageLabel { get; set; }
/// A custom label to use for the fare class value
/// (`transitObject.ticketLeg.ticketSeat.fareClass`).
[Newtonsoft.Json.JsonPropertyAttribute("customFareClassLabel")]
public virtual LocalizedString CustomFareClassLabel { get; set; }
/// A custom label to use for the transit fare name value
/// (`transitObject.ticketLeg.fareName`).
[Newtonsoft.Json.JsonPropertyAttribute("customFareNameLabel")]
public virtual LocalizedString CustomFareNameLabel { get; set; }
/// A custom label to use for the other restrictions value
/// (`transitObject.ticketRestrictions.otherRestrictions`).
[Newtonsoft.Json.JsonPropertyAttribute("customOtherRestrictionsLabel")]
public virtual LocalizedString CustomOtherRestrictionsLabel { get; set; }
/// A custom label to use for the boarding platform value
/// (`transitObject.ticketLeg.platform`).
[Newtonsoft.Json.JsonPropertyAttribute("customPlatformLabel")]
public virtual LocalizedString CustomPlatformLabel { get; set; }
/// A custom label to use for the purchase face value
/// (`transitObject.purchaseDetails.ticketCost.faceValue`).
[Newtonsoft.Json.JsonPropertyAttribute("customPurchaseFaceValueLabel")]
public virtual LocalizedString CustomPurchaseFaceValueLabel { get; set; }
/// A custom label to use for the purchase price value
/// (`transitObject.purchaseDetails.ticketCost.purchasePrice`).
[Newtonsoft.Json.JsonPropertyAttribute("customPurchasePriceLabel")]
public virtual LocalizedString CustomPurchasePriceLabel { get; set; }
/// A custom label to use for the purchase receipt number value
/// (`transitObject.purchaseDetails.purchaseReceiptNumber`).
[Newtonsoft.Json.JsonPropertyAttribute("customPurchaseReceiptNumberLabel")]
public virtual LocalizedString CustomPurchaseReceiptNumberLabel { get; set; }
/// A custom label to use for the route restrictions details value
/// (`transitObject.ticketRestrictions.routeRestrictionsDetails`).
[Newtonsoft.Json.JsonPropertyAttribute("customRouteRestrictionsDetailsLabel")]
public virtual LocalizedString CustomRouteRestrictionsDetailsLabel { get; set; }
/// A custom label to use for the route restrictions value
/// (`transitObject.ticketRestrictions.routeRestrictions`).
[Newtonsoft.Json.JsonPropertyAttribute("customRouteRestrictionsLabel")]
public virtual LocalizedString CustomRouteRestrictionsLabel { get; set; }
/// A custom label to use for the seat location value
/// (`transitObject.ticketLeg.ticketSeat.seat`).
[Newtonsoft.Json.JsonPropertyAttribute("customSeatLabel")]
public virtual LocalizedString CustomSeatLabel { get; set; }
/// A custom label to use for the ticket number value (`transitObject.ticketNumber`).
[Newtonsoft.Json.JsonPropertyAttribute("customTicketNumberLabel")]
public virtual LocalizedString CustomTicketNumberLabel { get; set; }
/// A custom label to use for the time restrictions details value
/// (`transitObject.ticketRestrictions.timeRestrictions`).
[Newtonsoft.Json.JsonPropertyAttribute("customTimeRestrictionsLabel")]
public virtual LocalizedString CustomTimeRestrictionsLabel { get; set; }
/// A custom label to use for the transit terminus name value
/// (`transitObject.ticketLeg.transitTerminusName`).
[Newtonsoft.Json.JsonPropertyAttribute("customTransitTerminusNameLabel")]
public virtual LocalizedString CustomTransitTerminusNameLabel { get; set; }
/// A custom label to use for the boarding zone value (`transitObject.ticketLeg.zone`).
[Newtonsoft.Json.JsonPropertyAttribute("customZoneLabel")]
public virtual LocalizedString CustomZoneLabel { get; set; }
/// Controls the display of the single-leg itinerary for this class. By default, an itinerary will only
/// display for multi-leg trips.
[Newtonsoft.Json.JsonPropertyAttribute("enableSingleLegItinerary")]
public virtual System.Nullable EnableSingleLegItinerary { get; set; }
/// Identifies whether this class supports Smart Tap. The `redemptionIssuers` and object level
/// `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart
/// Tap.
[Newtonsoft.Json.JsonPropertyAttribute("enableSmartTap")]
public virtual System.Nullable EnableSmartTap { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// 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).
[Newtonsoft.Json.JsonPropertyAttribute("homepageUri")]
public virtual Uri HomepageUri { get; set; }
/// Required. The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is
/// displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("issuerName")]
public virtual string IssuerName { get; set; }
/// 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".
[Newtonsoft.Json.JsonPropertyAttribute("languageOverride")]
public virtual string LanguageOverride { get; set; }
/// Links module data. If links module data is also defined on the object, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full
/// string is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedIssuerName")]
public virtual LocalizedString LocalizedIssuerName { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// Required. The logo image of the ticket. This image is displayed in the card detail view of the
/// app.
[Newtonsoft.Json.JsonPropertyAttribute("logo")]
public virtual Image Logo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Identifies whether multiple users and devices will save the same object referencing this
/// class.
[Newtonsoft.Json.JsonPropertyAttribute("multipleDevicesAndHoldersAllowedStatus")]
public virtual string MultipleDevicesAndHoldersAllowedStatus { get; set; }
/// Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are
/// identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The
/// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order
/// for a pass to support Smart Tap.
[Newtonsoft.Json.JsonPropertyAttribute("redemptionIssuers")]
public virtual System.Collections.Generic.IList> RedemptionIssuers { get; set; }
/// The review comments set by the platform when a class is marked `approved` or `rejected`.
[Newtonsoft.Json.JsonPropertyAttribute("review")]
public virtual Review Review { get; set; }
/// 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`.
[Newtonsoft.Json.JsonPropertyAttribute("reviewStatus")]
public virtual string ReviewStatus { get; set; }
/// Optional information about the security animation. If this is set a security animation will be
/// rendered on pass details.
[Newtonsoft.Json.JsonPropertyAttribute("securityAnimation")]
public virtual SecurityAnimation SecurityAnimation { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// The name of the transit operator.
[Newtonsoft.Json.JsonPropertyAttribute("transitOperatorName")]
public virtual LocalizedString TransitOperatorName { get; set; }
/// Required. The type of transit this class represents, such as "bus".
[Newtonsoft.Json.JsonPropertyAttribute("transitType")]
public virtual string TransitType { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// View Unlock Requirement options for the transit ticket.
[Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")]
public virtual string ViewUnlockRequirement { get; set; }
/// Watermark image to display on the user's device.
[Newtonsoft.Json.JsonPropertyAttribute("watermark")]
public virtual Image Watermark { get; set; }
/// Deprecated.
[Newtonsoft.Json.JsonPropertyAttribute("wordMark")]
public virtual Image WordMark { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TransitClassAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated TransitClass resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual TransitClass Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TransitClassListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TransitObject : Google.Apis.Requests.IDirectResponseSchema
{
/// The activation status for the object. Required if the class has `activationOptions` set.
[Newtonsoft.Json.JsonPropertyAttribute("activationStatus")]
public virtual ActivationStatus ActivationStatus { get; set; }
/// Optional information about the partner app link.
[Newtonsoft.Json.JsonPropertyAttribute("appLinkData")]
public virtual AppLinkData AppLinkData { get; set; }
/// The barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("barcode")]
public virtual Barcode Barcode { get; set; }
/// Required. The class associated with this object. The class must be of the same type as this object,
/// must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the
/// former is issued by Google and latter is chosen by you.
[Newtonsoft.Json.JsonPropertyAttribute("classId")]
public virtual string ClassId { get; set; }
/// A copy of the inherited fields of the parent class. These fields are retrieved during a
/// GET.
[Newtonsoft.Json.JsonPropertyAttribute("classReference")]
public virtual TransitClass ClassReference { get; set; }
/// The concession category for the ticket.
[Newtonsoft.Json.JsonPropertyAttribute("concessionCategory")]
public virtual string ConcessionCategory { get; set; }
/// A custom concession category to use when `concessionCategory` does not provide the right option.
/// Both `concessionCategory` and `customConcessionCategory` may not be set.
[Newtonsoft.Json.JsonPropertyAttribute("customConcessionCategory")]
public virtual LocalizedString CustomConcessionCategory { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("customTicketStatus")]
public virtual LocalizedString CustomTicketStatus { get; set; }
/// Device context associated with the object.
[Newtonsoft.Json.JsonPropertyAttribute("deviceContext")]
public virtual DeviceContext DeviceContext { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("disableExpirationNotification")]
public virtual System.Nullable DisableExpirationNotification { get; set; }
/// Information that controls how passes are grouped together.
[Newtonsoft.Json.JsonPropertyAttribute("groupingInfo")]
public virtual GroupingInfo GroupingInfo { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("hasLinkedDevice")]
public virtual System.Nullable HasLinkedDevice { get; set; }
/// Indicates if the object has users. This field is set by the platform.
[Newtonsoft.Json.JsonPropertyAttribute("hasUsers")]
public virtual System.Nullable HasUsers { get; set; }
/// Optional banner image displayed on the front of the card. If none is present, hero image of the
/// class, if present, will be displayed. If hero image of the class is also not present, nothing will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("heroImage")]
public virtual Image HeroImage { get; set; }
/// The background color for the card. If not set the dominant color of the hero image is used, and if
/// no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex
/// RGB triplet, such as `#ffcc00`. You can also use the shorthand version of the RGB triplet which is #rgb,
/// such as `#fc0`.
[Newtonsoft.Json.JsonPropertyAttribute("hexBackgroundColor")]
public virtual string HexBackgroundColor { get; set; }
/// Required. The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and
/// latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or
/// '-'.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Image module data. The maximum number of these fields displayed is 1 from object level and 1 for
/// class object level.
[Newtonsoft.Json.JsonPropertyAttribute("imageModulesData")]
public virtual System.Collections.Generic.IList ImageModulesData { get; set; }
/// Deprecated. Use textModulesData instead.
[Newtonsoft.Json.JsonPropertyAttribute("infoModuleData")]
public virtual InfoModuleData InfoModuleData { get; set; }
/// Links module data. If links module data is also defined on the class, both will be
/// displayed.
[Newtonsoft.Json.JsonPropertyAttribute("linksModuleData")]
public virtual LinksModuleData LinksModuleData { get; set; }
/// Note: This field is currently not supported to trigger geo notifications.
[Newtonsoft.Json.JsonPropertyAttribute("locations")]
public virtual System.Collections.Generic.IList Locations { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("messages")]
public virtual System.Collections.Generic.IList Messages { get; set; }
/// Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
[Newtonsoft.Json.JsonPropertyAttribute("passConstraints")]
public virtual PassConstraints PassConstraints { get; set; }
/// The name(s) of the passengers the ticket is assigned to. The above `passengerType` field is meant
/// to give Google context on this field.
[Newtonsoft.Json.JsonPropertyAttribute("passengerNames")]
public virtual string PassengerNames { get; set; }
/// The number of passengers.
[Newtonsoft.Json.JsonPropertyAttribute("passengerType")]
public virtual string PassengerType { get; set; }
/// Purchase details for this ticket.
[Newtonsoft.Json.JsonPropertyAttribute("purchaseDetails")]
public virtual PurchaseDetails PurchaseDetails { get; set; }
/// The rotating barcode type and value.
[Newtonsoft.Json.JsonPropertyAttribute("rotatingBarcode")]
public virtual RotatingBarcode RotatingBarcode { get; set; }
/// The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The
/// class level fields `enableSmartTap` and `redemptionIssuers` must also be set up correctly in order for the
/// pass to support Smart Tap. Only ASCII characters are supported.
[Newtonsoft.Json.JsonPropertyAttribute("smartTapRedemptionValue")]
public virtual string SmartTapRedemptionValue { get; set; }
/// Required. The state of the object. This field is used to determine how an object is displayed in
/// the app. For example, an `inactive` object is moved to the "Expired passes" section.
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("textModulesData")]
public virtual System.Collections.Generic.IList TextModulesData { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("ticketLeg")]
public virtual TicketLeg TicketLeg { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("ticketLegs")]
public virtual System.Collections.Generic.IList TicketLegs { get; set; }
/// The number of the ticket. This is a unique identifier for the ticket in the transit operator's
/// system.
[Newtonsoft.Json.JsonPropertyAttribute("ticketNumber")]
public virtual string TicketNumber { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("ticketRestrictions")]
public virtual TicketRestrictions TicketRestrictions { get; set; }
/// The status of the ticket. For states which affect display, use the `state` field instead.
[Newtonsoft.Json.JsonPropertyAttribute("ticketStatus")]
public virtual string TicketStatus { get; set; }
/// This id is used to group tickets together if the user has saved multiple tickets for the same
/// trip.
[Newtonsoft.Json.JsonPropertyAttribute("tripId")]
public virtual string TripId { get; set; }
/// Required. The type of trip this transit object represents. Used to determine the pass title and/or
/// which symbol to use between the origin and destination.
[Newtonsoft.Json.JsonPropertyAttribute("tripType")]
public virtual string TripType { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")]
public virtual TimeInterval ValidTimeInterval { get; set; }
/// Deprecated
[Newtonsoft.Json.JsonPropertyAttribute("version")]
public virtual System.Nullable Version { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TransitObjectAddMessageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated TransitObject resource.
[Newtonsoft.Json.JsonPropertyAttribute("resource")]
public virtual TransitObject Resource { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TransitObjectListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Pagination of the response.
[Newtonsoft.Json.JsonPropertyAttribute("pagination")]
public virtual Pagination Pagination { get; set; }
/// Resources corresponding to the list request.
[Newtonsoft.Json.JsonPropertyAttribute("resources")]
public virtual System.Collections.Generic.IList Resources { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class TranslatedString : Google.Apis.Requests.IDirectResponseSchema
{
/// Identifies what kind of resource this is. Value: the fixed string
/// `"walletobjects#translatedString"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-
/// AT".
[Newtonsoft.Json.JsonPropertyAttribute("language")]
public virtual string Language { get; set; }
/// The UTF-8 encoded translated string.
[Newtonsoft.Json.JsonPropertyAttribute("value")]
public virtual string Value { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Indicates that the issuer would like Google Wallet to send an upcoming card validity notification 1 day
/// before card becomes valid/usable.
public class UpcomingNotification : Google.Apis.Requests.IDirectResponseSchema
{
/// Indicates if the object needs to have upcoming notification enabled.
[Newtonsoft.Json.JsonPropertyAttribute("enableNotification")]
public virtual System.Nullable EnableNotification { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request for sending user private Text or URI by the Issuer.
public class UploadPrivateDataRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The ID of the issuer sending the data.
[Newtonsoft.Json.JsonPropertyAttribute("issuerId")]
public virtual System.Nullable IssuerId { get; set; }
/// Private text data of the user.
[Newtonsoft.Json.JsonPropertyAttribute("text")]
public virtual PrivateText Text { get; set; }
/// Private URIs of the user.
[Newtonsoft.Json.JsonPropertyAttribute("uri")]
public virtual PrivateUri Uri { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response for uploading user private data (text or URIs)
public class UploadPrivateDataResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// A 64-bit content id for the private data that was uploaded by the Issuer.
[Newtonsoft.Json.JsonPropertyAttribute("privateContentId")]
public virtual System.Nullable PrivateContentId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request to upload user's private images by Issuers to be used in passes.
public class UploadPrivateImageRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// A reference to the image payload that was uploaded by Scotty.
[Newtonsoft.Json.JsonPropertyAttribute("blob")]
public virtual Media Blob { get; set; }
/// Extra information about the uploaded media.
[Newtonsoft.Json.JsonPropertyAttribute("mediaRequestInfo")]
public virtual MediaRequestInfo MediaRequestInfo { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response for uploading the private image
public class UploadPrivateImageResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// A 64-bit content id for the image that was uploaded by the Issuer.
[Newtonsoft.Json.JsonPropertyAttribute("privateContentId")]
public virtual System.Nullable PrivateContentId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
public class Uri : Google.Apis.Requests.IDirectResponseSchema
{
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// The ID associated with a uri. This field is here to enable ease of management of uris.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Identifies what kind of resource this is. Value: the fixed string `"walletobjects#uri"`.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Translated strings for the description. Recommended maximum is 20 characters to ensure full string
/// is displayed on smaller screens.
[Newtonsoft.Json.JsonPropertyAttribute("localizedDescription")]
public virtual LocalizedString LocalizedDescription { get; set; }
/// 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.
[Newtonsoft.Json.JsonPropertyAttribute("uri")]
public virtual string UriValue { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
}
namespace Google.Apis.Walletobjects.v1
{
/// The Walletobjects Service.
public class WalletobjectsService : Google.Apis.Services.BaseClientService
{
/// The API version.
public const string Version = "v1";
/// The discovery version used to generate this service.
public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed =
Google.Apis.Discovery.DiscoveryVersion.Version_1_0;
/// Constructs a new service.
public WalletobjectsService() :
this(new Google.Apis.Services.BaseClientService.Initializer()) {}
/// Constructs a new service.
/// The service initializer.
public WalletobjectsService(Google.Apis.Services.BaseClientService.Initializer initializer)
: base(initializer)
{
eventticketclass = new EventticketclassResource(this);
eventticketobject = new EventticketobjectResource(this);
flightclass = new FlightclassResource(this);
flightobject = new FlightobjectResource(this);
genericclass = new GenericclassResource(this);
genericobject = new GenericobjectResource(this);
giftcardclass = new GiftcardclassResource(this);
giftcardobject = new GiftcardobjectResource(this);
issuer = new IssuerResource(this);
jwt = new JwtResource(this);
loyaltyclass = new LoyaltyclassResource(this);
loyaltyobject = new LoyaltyobjectResource(this);
media = new MediaResource(this);
offerclass = new OfferclassResource(this);
offerobject = new OfferobjectResource(this);
permissions = new PermissionsResource(this);
smarttap = new SmarttapResource(this);
transitclass = new TransitclassResource(this);
transitobject = new TransitobjectResource(this);
walletobjects = new WalletobjectsResource(this);
}
/// Gets the service supported features.
public override System.Collections.Generic.IList Features
{
get { return new string[0]; }
}
/// Gets the service name.
public override string Name
{
get { return "walletobjects"; }
}
/// Gets the service base URI.
public override string BaseUri
{
get { return "https://walletobjects.googleapis.com/"; }
}
/// Gets the service base path.
public override string BasePath
{
get { return ""; }
}
/// Available OAuth 2.0 scopes for use with the Google Pay Passes API.
public class Scope
{
/// Private Service: https://www.googleapis.com/auth/wallet_object.issuer
public static string WalletObjectIssuer = "https://www.googleapis.com/auth/wallet_object.issuer";
}
private readonly EventticketclassResource eventticketclass;
/// Gets the Eventticketclass resource.
public virtual EventticketclassResource Eventticketclass
{
get { return eventticketclass; }
}
private readonly EventticketobjectResource eventticketobject;
/// Gets the Eventticketobject resource.
public virtual EventticketobjectResource Eventticketobject
{
get { return eventticketobject; }
}
private readonly FlightclassResource flightclass;
/// Gets the Flightclass resource.
public virtual FlightclassResource Flightclass
{
get { return flightclass; }
}
private readonly FlightobjectResource flightobject;
/// Gets the Flightobject resource.
public virtual FlightobjectResource Flightobject
{
get { return flightobject; }
}
private readonly GenericclassResource genericclass;
/// Gets the Genericclass resource.
public virtual GenericclassResource Genericclass
{
get { return genericclass; }
}
private readonly GenericobjectResource genericobject;
/// Gets the Genericobject resource.
public virtual GenericobjectResource Genericobject
{
get { return genericobject; }
}
private readonly GiftcardclassResource giftcardclass;
/// Gets the Giftcardclass resource.
public virtual GiftcardclassResource Giftcardclass
{
get { return giftcardclass; }
}
private readonly GiftcardobjectResource giftcardobject;
/// Gets the Giftcardobject resource.
public virtual GiftcardobjectResource Giftcardobject
{
get { return giftcardobject; }
}
private readonly IssuerResource issuer;
/// Gets the Issuer resource.
public virtual IssuerResource Issuer
{
get { return issuer; }
}
private readonly JwtResource jwt;
/// Gets the Jwt resource.
public virtual JwtResource Jwt
{
get { return jwt; }
}
private readonly LoyaltyclassResource loyaltyclass;
/// Gets the Loyaltyclass resource.
public virtual LoyaltyclassResource Loyaltyclass
{
get { return loyaltyclass; }
}
private readonly LoyaltyobjectResource loyaltyobject;
/// Gets the Loyaltyobject resource.
public virtual LoyaltyobjectResource Loyaltyobject
{
get { return loyaltyobject; }
}
private readonly MediaResource media;
/// Gets the Media resource.
public virtual MediaResource Media
{
get { return media; }
}
private readonly OfferclassResource offerclass;
/// Gets the Offerclass resource.
public virtual OfferclassResource Offerclass
{
get { return offerclass; }
}
private readonly OfferobjectResource offerobject;
/// Gets the Offerobject resource.
public virtual OfferobjectResource Offerobject
{
get { return offerobject; }
}
private readonly PermissionsResource permissions;
/// Gets the Permissions resource.
public virtual PermissionsResource Permissions
{
get { return permissions; }
}
private readonly SmarttapResource smarttap;
/// Gets the Smarttap resource.
public virtual SmarttapResource Smarttap
{
get { return smarttap; }
}
private readonly TransitclassResource transitclass;
/// Gets the Transitclass resource.
public virtual TransitclassResource Transitclass
{
get { return transitclass; }
}
private readonly TransitobjectResource transitobject;
/// Gets the Transitobject resource.
public virtual TransitobjectResource Transitobject
{
get { return transitobject; }
}
private readonly WalletobjectsResource walletobjects;
/// Gets the Walletobjects resource.
public virtual WalletobjectsResource Walletobjects
{
get { return walletobjects; }
}
}
///A base abstract class for Walletobjects requests.
public abstract class WalletobjectsBaseServiceRequest : Google.Apis.Requests.ClientServiceRequest
{
///Constructs a new WalletobjectsBaseServiceRequest instance.
protected WalletobjectsBaseServiceRequest(Google.Apis.Services.IClientService service)
: base(service)
{
}
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
/// [default: json]
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
/// [default: true]
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string
/// assigned to a user, but should not exceed 40 characters.
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Initializes Walletobjects parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"$.xgafv", new Google.Apis.Discovery.Parameter
{
Name = "$.xgafv",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"access_token", new Google.Apis.Discovery.Parameter
{
Name = "access_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"alt", new Google.Apis.Discovery.Parameter
{
Name = "alt",
IsRequired = false,
ParameterType = "query",
DefaultValue = "json",
Pattern = null,
});
RequestParameters.Add(
"callback", new Google.Apis.Discovery.Parameter
{
Name = "callback",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"fields", new Google.Apis.Discovery.Parameter
{
Name = "fields",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"key", new Google.Apis.Discovery.Parameter
{
Name = "key",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"oauth_token", new Google.Apis.Discovery.Parameter
{
Name = "oauth_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"prettyPrint", new Google.Apis.Discovery.Parameter
{
Name = "prettyPrint",
IsRequired = false,
ParameterType = "query",
DefaultValue = "true",
Pattern = null,
});
RequestParameters.Add(
"quotaUser", new Google.Apis.Discovery.Parameter
{
Name = "quotaUser",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"uploadType", new Google.Apis.Discovery.Parameter
{
Name = "uploadType",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"upload_protocol", new Google.Apis.Discovery.Parameter
{
Name = "upload_protocol",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// The "eventticketclass" collection of methods.
public class EventticketclassResource
{
private const string Resource = "eventticketclass";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public EventticketclassResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Adds a message to the event ticket class referenced by the given class ID.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual AddmessageRequest Addmessage(Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
{
return new AddmessageRequest(service, body, resourceId);
}
/// Adds a message to the event ticket class referenced by the given class ID.
public class AddmessageRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Addmessage request.
public AddmessageRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.AddMessageRequest Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "addmessage"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketClass/{resourceId}/addMessage"; }
}
/// Initializes Addmessage parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns the event ticket class with the given class ID.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the event ticket class with the given class ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketClass/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts an event ticket class with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.EventTicketClass body)
{
return new InsertRequest(service, body);
}
/// Inserts an event ticket class with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.EventTicketClass body)
: base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.EventTicketClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "insert"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketClass"; }
}
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Returns a list of all event ticket classes for a given issuer ID.
public virtual ListRequest List()
{
return new ListRequest(service);
}
/// Returns a list of all event ticket classes for a given issuer ID.
public class ListRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service)
: base(service)
{
InitParameters();
}
/// The ID of the issuer authorized to list classes.
[Google.Apis.Util.RequestParameterAttribute("issuerId", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IssuerId { get; set; }
/// 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.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Identifies the max number of results returned by a list. All results are returned if
/// `maxResults` isn't defined.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///Gets the method name.
public override string MethodName
{
get { return "list"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketClass"; }
}
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"issuerId", new Google.Apis.Discovery.Parameter
{
Name = "issuerId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the event ticket class referenced by the given class ID. This method supports patch
/// semantics.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual PatchRequest Patch(Google.Apis.Walletobjects.v1.Data.EventTicketClass body, string resourceId)
{
return new PatchRequest(service, body, resourceId);
}
/// Updates the event ticket class referenced by the given class ID. This method supports patch
/// semantics.
public class PatchRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.EventTicketClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.EventTicketClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "patch"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PATCH"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketClass/{resourceId}"; }
}
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the event ticket class referenced by the given class ID.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual UpdateRequest Update(Google.Apis.Walletobjects.v1.Data.EventTicketClass body, string resourceId)
{
return new UpdateRequest(service, body, resourceId);
}
/// Updates the event ticket class referenced by the given class ID.
public class UpdateRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.EventTicketClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.EventTicketClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "update"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PUT"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketClass/{resourceId}"; }
}
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "eventticketobject" collection of methods.
public class EventticketobjectResource
{
private const string Resource = "eventticketobject";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public EventticketobjectResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Adds a message to the event ticket object referenced by the given object ID.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual AddmessageRequest Addmessage(Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
{
return new AddmessageRequest(service, body, resourceId);
}
/// Adds a message to the event ticket object referenced by the given object ID.
public class AddmessageRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Addmessage request.
public AddmessageRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.AddMessageRequest Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "addmessage"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketObject/{resourceId}/addMessage"; }
}
/// Initializes Addmessage parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns the event ticket object with the given object ID.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the event ticket object with the given object ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketObject/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts an event ticket object with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.EventTicketObject body)
{
return new InsertRequest(service, body);
}
/// Inserts an event ticket object with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.EventTicketObject body)
: base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.EventTicketObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "insert"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketObject"; }
}
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Returns a list of all event ticket objects for a given issuer ID.
public virtual ListRequest List()
{
return new ListRequest(service);
}
/// Returns a list of all event ticket objects for a given issuer ID.
public class ListRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service)
: base(service)
{
InitParameters();
}
/// The ID of the class whose objects will be listed.
[Google.Apis.Util.RequestParameterAttribute("classId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ClassId { get; set; }
/// 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.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Identifies the max number of results returned by a list. All results are returned if
/// `maxResults` isn't defined.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///Gets the method name.
public override string MethodName
{
get { return "list"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketObject"; }
}
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"classId", new Google.Apis.Discovery.Parameter
{
Name = "classId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Modifies linked offer objects for the event ticket object with the given ID.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual ModifylinkedofferobjectsRequest Modifylinkedofferobjects(Google.Apis.Walletobjects.v1.Data.ModifyLinkedOfferObjectsRequest body, string resourceId)
{
return new ModifylinkedofferobjectsRequest(service, body, resourceId);
}
/// Modifies linked offer objects for the event ticket object with the given ID.
public class ModifylinkedofferobjectsRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Modifylinkedofferobjects request.
public ModifylinkedofferobjectsRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.ModifyLinkedOfferObjectsRequest body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.ModifyLinkedOfferObjectsRequest Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "modifylinkedofferobjects"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketObject/{resourceId}/modifyLinkedOfferObjects"; }
}
/// Initializes Modifylinkedofferobjects parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the event ticket object referenced by the given object ID. This method supports patch
/// semantics.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual PatchRequest Patch(Google.Apis.Walletobjects.v1.Data.EventTicketObject body, string resourceId)
{
return new PatchRequest(service, body, resourceId);
}
/// Updates the event ticket object referenced by the given object ID. This method supports patch
/// semantics.
public class PatchRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.EventTicketObject body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.EventTicketObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "patch"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PATCH"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketObject/{resourceId}"; }
}
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the event ticket object referenced by the given object ID.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual UpdateRequest Update(Google.Apis.Walletobjects.v1.Data.EventTicketObject body, string resourceId)
{
return new UpdateRequest(service, body, resourceId);
}
/// Updates the event ticket object referenced by the given object ID.
public class UpdateRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.EventTicketObject body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.EventTicketObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "update"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PUT"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/eventTicketObject/{resourceId}"; }
}
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "flightclass" collection of methods.
public class FlightclassResource
{
private const string Resource = "flightclass";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public FlightclassResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Adds a message to the flight class referenced by the given class ID.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual AddmessageRequest Addmessage(Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
{
return new AddmessageRequest(service, body, resourceId);
}
/// Adds a message to the flight class referenced by the given class ID.
public class AddmessageRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Addmessage request.
public AddmessageRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.AddMessageRequest Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "addmessage"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightClass/{resourceId}/addMessage"; }
}
/// Initializes Addmessage parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns the flight class with the given class ID.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the flight class with the given class ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightClass/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts an flight class with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.FlightClass body)
{
return new InsertRequest(service, body);
}
/// Inserts an flight class with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.FlightClass body)
: base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.FlightClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "insert"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightClass"; }
}
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Returns a list of all flight classes for a given issuer ID.
public virtual ListRequest List()
{
return new ListRequest(service);
}
/// Returns a list of all flight classes for a given issuer ID.
public class ListRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service)
: base(service)
{
InitParameters();
}
/// The ID of the issuer authorized to list classes.
[Google.Apis.Util.RequestParameterAttribute("issuerId", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IssuerId { get; set; }
/// 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.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Identifies the max number of results returned by a list. All results are returned if
/// `maxResults` isn't defined.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///Gets the method name.
public override string MethodName
{
get { return "list"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightClass"; }
}
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"issuerId", new Google.Apis.Discovery.Parameter
{
Name = "issuerId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the flight class referenced by the given class ID. This method supports patch
/// semantics.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual PatchRequest Patch(Google.Apis.Walletobjects.v1.Data.FlightClass body, string resourceId)
{
return new PatchRequest(service, body, resourceId);
}
/// Updates the flight class referenced by the given class ID. This method supports patch
/// semantics.
public class PatchRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.FlightClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.FlightClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "patch"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PATCH"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightClass/{resourceId}"; }
}
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the flight class referenced by the given class ID.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual UpdateRequest Update(Google.Apis.Walletobjects.v1.Data.FlightClass body, string resourceId)
{
return new UpdateRequest(service, body, resourceId);
}
/// Updates the flight class referenced by the given class ID.
public class UpdateRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.FlightClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.FlightClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "update"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PUT"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightClass/{resourceId}"; }
}
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "flightobject" collection of methods.
public class FlightobjectResource
{
private const string Resource = "flightobject";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public FlightobjectResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Adds a message to the flight object referenced by the given object ID.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual AddmessageRequest Addmessage(Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
{
return new AddmessageRequest(service, body, resourceId);
}
/// Adds a message to the flight object referenced by the given object ID.
public class AddmessageRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Addmessage request.
public AddmessageRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.AddMessageRequest Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "addmessage"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightObject/{resourceId}/addMessage"; }
}
/// Initializes Addmessage parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns the flight object with the given object ID.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the flight object with the given object ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightObject/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts an flight object with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.FlightObject body)
{
return new InsertRequest(service, body);
}
/// Inserts an flight object with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.FlightObject body)
: base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.FlightObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "insert"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightObject"; }
}
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Returns a list of all flight objects for a given issuer ID.
public virtual ListRequest List()
{
return new ListRequest(service);
}
/// Returns a list of all flight objects for a given issuer ID.
public class ListRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service)
: base(service)
{
InitParameters();
}
/// The ID of the class whose objects will be listed.
[Google.Apis.Util.RequestParameterAttribute("classId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ClassId { get; set; }
/// 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.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Identifies the max number of results returned by a list. All results are returned if
/// `maxResults` isn't defined.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///Gets the method name.
public override string MethodName
{
get { return "list"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightObject"; }
}
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"classId", new Google.Apis.Discovery.Parameter
{
Name = "classId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the flight object referenced by the given object ID. This method supports patch
/// semantics.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual PatchRequest Patch(Google.Apis.Walletobjects.v1.Data.FlightObject body, string resourceId)
{
return new PatchRequest(service, body, resourceId);
}
/// Updates the flight object referenced by the given object ID. This method supports patch
/// semantics.
public class PatchRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.FlightObject body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.FlightObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "patch"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PATCH"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightObject/{resourceId}"; }
}
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the flight object referenced by the given object ID.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual UpdateRequest Update(Google.Apis.Walletobjects.v1.Data.FlightObject body, string resourceId)
{
return new UpdateRequest(service, body, resourceId);
}
/// Updates the flight object referenced by the given object ID.
public class UpdateRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.FlightObject body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.FlightObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "update"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PUT"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/flightObject/{resourceId}"; }
}
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "genericclass" collection of methods.
public class GenericclassResource
{
private const string Resource = "genericclass";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GenericclassResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Returns the generic class with the given class ID.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the generic class with the given class ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`,
/// or `-`.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericClass/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts a generic class with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.GenericClass body)
{
return new InsertRequest(service, body);
}
/// Inserts a generic class with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GenericClass body)
: base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GenericClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "insert"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericClass"; }
}
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Returns a list of all generic classes for a given issuer ID.
public virtual ListRequest List()
{
return new ListRequest(service);
}
/// Returns a list of all generic classes for a given issuer ID.
public class ListRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service)
: base(service)
{
InitParameters();
}
/// The ID of the issuer authorized to list classes.
[Google.Apis.Util.RequestParameterAttribute("issuerId", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IssuerId { get; set; }
/// 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.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Identifies the max number of results returned by a list. All results are returned if
/// `maxResults` isn't defined.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///Gets the method name.
public override string MethodName
{
get { return "list"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericClass"; }
}
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"issuerId", new Google.Apis.Discovery.Parameter
{
Name = "issuerId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the generic class referenced by the given class ID. This method supports patch
/// semantics.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
public virtual PatchRequest Patch(Google.Apis.Walletobjects.v1.Data.GenericClass body, string resourceId)
{
return new PatchRequest(service, body, resourceId);
}
/// Updates the generic class referenced by the given class ID. This method supports patch
/// semantics.
public class PatchRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GenericClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`,
/// or `-`.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GenericClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "patch"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PATCH"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericClass/{resourceId}"; }
}
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the Generic class referenced by the given class ID.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
public virtual UpdateRequest Update(Google.Apis.Walletobjects.v1.Data.GenericClass body, string resourceId)
{
return new UpdateRequest(service, body, resourceId);
}
/// Updates the Generic class referenced by the given class ID.
public class UpdateRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GenericClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`,
/// or `-`.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GenericClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "update"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PUT"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericClass/{resourceId}"; }
}
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "genericobject" collection of methods.
public class GenericobjectResource
{
private const string Resource = "genericobject";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GenericobjectResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Returns the generic object with the given object ID.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the generic object with the given object ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`,
/// or `-`.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericObject/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts a generic object with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.GenericObject body)
{
return new InsertRequest(service, body);
}
/// Inserts a generic object with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GenericObject body)
: base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GenericObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "insert"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericObject"; }
}
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Returns a list of all generic objects for a given issuer ID.
public virtual ListRequest List()
{
return new ListRequest(service);
}
/// Returns a list of all generic objects for a given issuer ID.
public class ListRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service)
: base(service)
{
InitParameters();
}
/// The ID of the class whose objects will be listed.
[Google.Apis.Util.RequestParameterAttribute("classId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ClassId { get; set; }
/// 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.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Identifies the max number of results returned by a list. All results are returned if
/// `maxResults` isn't defined.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///Gets the method name.
public override string MethodName
{
get { return "list"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericObject"; }
}
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"classId", new Google.Apis.Discovery.Parameter
{
Name = "classId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the generic object referenced by the given object ID. This method supports patch
/// semantics.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
public virtual PatchRequest Patch(Google.Apis.Walletobjects.v1.Data.GenericObject body, string resourceId)
{
return new PatchRequest(service, body, resourceId);
}
/// Updates the generic object referenced by the given object ID. This method supports patch
/// semantics.
public class PatchRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GenericObject body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`,
/// or `-`.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GenericObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "patch"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PATCH"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericObject/{resourceId}"; }
}
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the generic object referenced by the given object ID.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`, or
/// `-`.
public virtual UpdateRequest Update(Google.Apis.Walletobjects.v1.Data.GenericObject body, string resourceId)
{
return new UpdateRequest(service, body, resourceId);
}
/// Updates the generic object referenced by the given object ID.
public class UpdateRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GenericObject body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value needs to follow the format `issuerID.identifier` where `issuerID` is issued by Google and
/// `identifier` is chosen by you. The unique identifier can only include alphanumeric characters, `.`, `_`,
/// or `-`.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GenericObject Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "update"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PUT"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/genericObject/{resourceId}"; }
}
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "giftcardclass" collection of methods.
public class GiftcardclassResource
{
private const string Resource = "giftcardclass";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GiftcardclassResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Adds a message to the gift card class referenced by the given class ID.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual AddmessageRequest Addmessage(Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
{
return new AddmessageRequest(service, body, resourceId);
}
/// Adds a message to the gift card class referenced by the given class ID.
public class AddmessageRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Addmessage request.
public AddmessageRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.AddMessageRequest Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "addmessage"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardClass/{resourceId}/addMessage"; }
}
/// Initializes Addmessage parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns the gift card class with the given class ID.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the gift card class with the given class ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardClass/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts an gift card class with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.GiftCardClass body)
{
return new InsertRequest(service, body);
}
/// Inserts an gift card class with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GiftCardClass body)
: base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GiftCardClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "insert"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardClass"; }
}
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Returns a list of all gift card classes for a given issuer ID.
public virtual ListRequest List()
{
return new ListRequest(service);
}
/// Returns a list of all gift card classes for a given issuer ID.
public class ListRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service)
: base(service)
{
InitParameters();
}
/// The ID of the issuer authorized to list classes.
[Google.Apis.Util.RequestParameterAttribute("issuerId", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IssuerId { get; set; }
/// 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.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Identifies the max number of results returned by a list. All results are returned if
/// `maxResults` isn't defined.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///Gets the method name.
public override string MethodName
{
get { return "list"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardClass"; }
}
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"issuerId", new Google.Apis.Discovery.Parameter
{
Name = "issuerId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add(
"maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the gift card class referenced by the given class ID. This method supports patch
/// semantics.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual PatchRequest Patch(Google.Apis.Walletobjects.v1.Data.GiftCardClass body, string resourceId)
{
return new PatchRequest(service, body, resourceId);
}
/// Updates the gift card class referenced by the given class ID. This method supports patch
/// semantics.
public class PatchRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GiftCardClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GiftCardClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "patch"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PATCH"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardClass/{resourceId}"; }
}
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates the gift card class referenced by the given class ID.
/// The body of the request.
/// The unique identifier for a class. This ID must be unique across all classes from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual UpdateRequest Update(Google.Apis.Walletobjects.v1.Data.GiftCardClass body, string resourceId)
{
return new UpdateRequest(service, body, resourceId);
}
/// Updates the gift card class referenced by the given class ID.
public class UpdateRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.GiftCardClass body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for a class. This ID must be unique across all classes from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.GiftCardClass Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "update"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "PUT"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardClass/{resourceId}"; }
}
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "giftcardobject" collection of methods.
public class GiftcardobjectResource
{
private const string Resource = "giftcardobject";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GiftcardobjectResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Adds a message to the gift card object referenced by the given object ID.
/// The body of the request.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual AddmessageRequest Addmessage(Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
{
return new AddmessageRequest(service, body, resourceId);
}
/// Adds a message to the gift card object referenced by the given object ID.
public class AddmessageRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Addmessage request.
public AddmessageRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.AddMessageRequest body, string resourceId)
: base(service)
{
ResourceId = resourceId;
Body = body;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Walletobjects.v1.Data.AddMessageRequest Body { get; set; }
///Returns the body of the request.
protected override object GetBody() { return Body; }
///Gets the method name.
public override string MethodName
{
get { return "addmessage"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "POST"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardObject/{resourceId}/addMessage"; }
}
/// Initializes Addmessage parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns the gift card object with the given object ID.
/// The unique identifier for an object. This ID must be unique across all objects from an
/// issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is
/// chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
public virtual GetRequest Get(string resourceId)
{
return new GetRequest(service, resourceId);
}
/// Returns the gift card object with the given object ID.
public class GetRequest : WalletobjectsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string resourceId)
: base(service)
{
ResourceId = resourceId;
InitParameters();
}
/// The unique identifier for an object. This ID must be unique across all objects from an issuer.
/// This value should follow the format issuer ID. identifier where the former is issued by Google and
/// latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_',
/// or '-'.
[Google.Apis.Util.RequestParameterAttribute("resourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ResourceId { get; private set; }
///Gets the method name.
public override string MethodName
{
get { return "get"; }
}
///Gets the HTTP method.
public override string HttpMethod
{
get { return "GET"; }
}
///Gets the REST path.
public override string RestPath
{
get { return "walletobjects/v1/giftCardObject/{resourceId}"; }
}
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add(
"resourceId", new Google.Apis.Discovery.Parameter
{
Name = "resourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Inserts an gift card object with the given ID and properties.
/// The body of the request.
public virtual InsertRequest Insert(Google.Apis.Walletobjects.v1.Data.GiftCardObject body)
{
return new InsertRequest(service, body);
}
/// Inserts an gift card object with the given ID and properties.
public class InsertRequest : WalletobjectsBaseServiceRequest
{
///