From 5b9591e94a1662ff42596edf1d19ca907c91b06b Mon Sep 17 00:00:00 2001 From: Amanda Tarafa Mas Date: Mon, 30 Sep 2024 01:13:33 -0700 Subject: [PATCH] feat: Generate Google.Apis.Walletobjects.v1 version 1.68.0.3557 --- DiscoveryJson/walletobjects.v1.json | 143 +++++++++++++++++- .../Google.Apis.Walletobjects.v1.cs | 137 +++++++++++++++++ .../Google.Apis.Walletobjects.v1.csproj | 2 +- 3 files changed, 280 insertions(+), 2 deletions(-) diff --git a/DiscoveryJson/walletobjects.v1.json b/DiscoveryJson/walletobjects.v1.json index 53312893a96..b64a2680dfd 100644 --- a/DiscoveryJson/walletobjects.v1.json +++ b/DiscoveryJson/walletobjects.v1.json @@ -2681,7 +2681,7 @@ } } }, - "revision": "20240919", + "revision": "20240927", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -4078,6 +4078,13 @@ }, "type": "array" }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "venue": { "$ref": "EventVenue", "description": "Event venue details." @@ -4325,6 +4332,13 @@ "$ref": "TimeInterval", "description": "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." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -4812,6 +4826,13 @@ }, "type": "array" }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -5067,6 +5088,13 @@ "$ref": "TimeInterval", "description": "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." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -5214,6 +5242,13 @@ }, "type": "array" }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "viewUnlockRequirement": { "description": "View Unlock Requirement options for the generic pass.", "enum": [ @@ -5439,6 +5474,13 @@ "$ref": "TimeInterval", "description": "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." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "wideLogo": { "$ref": "Image", "description": "The wide logo of the pass. When provided, this will be used in place of the logo in the top left of the card view." @@ -5694,6 +5736,13 @@ }, "type": "array" }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -5922,6 +5971,13 @@ "$ref": "TimeInterval", "description": "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." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -6532,6 +6588,13 @@ }, "type": "array" }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -6763,6 +6826,13 @@ "$ref": "TimeInterval", "description": "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." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -7171,6 +7241,17 @@ }, "type": "object" }, + "ModuleViewConstraints": { + "description": "Constraints that all must be met for the module to be shown.", + "id": "ModuleViewConstraints", + "properties": { + "displayInterval": { + "$ref": "TimeInterval", + "description": "The period of time that the module will be displayed to users. Can define both a `startTime` and `endTime`. The module is displayed immediately after insertion unless a `startTime` is set. The module is displayed indefinitely if `endTime` is not set." + } + }, + "type": "object" + }, "Money": { "id": "Money", "properties": { @@ -7490,6 +7571,13 @@ "$ref": "Image", "description": "The title image of the offer. This image is displayed in both the details and list views of the app." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -7697,6 +7785,13 @@ "$ref": "TimeInterval", "description": "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." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -8861,6 +8956,13 @@ ], "type": "string" }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -9231,6 +9333,13 @@ "$ref": "TimeInterval", "description": "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." }, + "valueAddedModuleData": { + "description": "Optional value added module data. Maximum of ten on the object.", + "items": { + "$ref": "ValueAddedModuleData" + }, + "type": "array" + }, "version": { "deprecated": true, "description": "Deprecated", @@ -9344,6 +9453,38 @@ } }, "type": "object" + }, + "ValueAddedModuleData": { + "description": "Data for Value Added module. Required fields are header and uri.", + "id": "ValueAddedModuleData", + "properties": { + "body": { + "$ref": "LocalizedString", + "description": "Body to be displayed on the module. Character limit is 50 and longer strings will be truncated." + }, + "header": { + "$ref": "LocalizedString", + "description": "Header to be displayed on the module. Character limit is 60 and longer strings will be truncated." + }, + "image": { + "$ref": "Image", + "description": "Image to be displayed on the module. Recommended image ratio is 1:1. Images will be resized to fit this ratio." + }, + "sortIndex": { + "description": "The index for sorting the modules. Modules with a lower sort index are shown before modules with a higher sort index. If unspecified, the sort index is assumed to be INT_MAX. For two modules with the same index, the sorting behavior is undefined.", + "format": "int32", + "type": "integer" + }, + "uri": { + "description": "URI that the module leads to on click. This can be a web link or a deep link as mentioned in https://developer.android.com/training/app-links/deep-linking.", + "type": "string" + }, + "viewConstraints": { + "$ref": "ModuleViewConstraints", + "description": "Constraints that all must be met for the module to be shown." + } + }, + "type": "object" } }, "servicePath": "", diff --git a/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.cs b/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.cs index 6a00249ec24..3ea83245b79 100644 --- a/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.cs +++ b/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.cs @@ -7747,6 +7747,13 @@ public class EventTicketClass : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("textModulesData")] public virtual System.Collections.Generic.IList TextModulesData { get; set; } + /// + /// Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, + /// prioritizing those from the object. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Event venue details. [Newtonsoft.Json.JsonPropertyAttribute("venue")] public virtual EventVenue Venue { get; set; } @@ -8008,6 +8015,10 @@ public class EventTicketObject : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")] public virtual TimeInterval ValidTimeInterval { get; set; } + /// Optional value added module data. Maximum of ten on the object. + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -8440,6 +8451,13 @@ public class FlightClass : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("textModulesData")] public virtual System.Collections.Generic.IList TextModulesData { get; set; } + /// + /// Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, + /// prioritizing those from the object. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -8709,6 +8727,10 @@ public class FlightObject : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")] public virtual TimeInterval ValidTimeInterval { get; set; } + /// Optional value added module data. Maximum of ten on the object. + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -8849,6 +8871,13 @@ public class GenericClass : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("textModulesData")] public virtual System.Collections.Generic.IList TextModulesData { get; set; } + /// + /// Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, + /// prioritizing those from the object. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// View Unlock Requirement options for the generic pass. [Newtonsoft.Json.JsonPropertyAttribute("viewUnlockRequirement")] public virtual string ViewUnlockRequirement { get; set; } @@ -9058,6 +9087,10 @@ public class GenericObject : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")] public virtual TimeInterval ValidTimeInterval { get; set; } + /// Optional value added module data. Maximum of ten on the object. + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// /// The wide logo of the pass. When provided, this will be used in place of the logo in the top left of the card /// view. @@ -9315,6 +9348,13 @@ public class GiftCardClass : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("textModulesData")] public virtual System.Collections.Generic.IList TextModulesData { get; set; } + /// + /// Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, + /// prioritizing those from the object. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -9544,6 +9584,10 @@ public class GiftCardObject : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")] public virtual TimeInterval ValidTimeInterval { get; set; } + /// Optional value added module data. Maximum of ten on the object. + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -10188,6 +10232,13 @@ public class LoyaltyClass : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("textModulesData")] public virtual System.Collections.Generic.IList TextModulesData { get; set; } + /// + /// Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, + /// prioritizing those from the object. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -10426,6 +10477,10 @@ public class LoyaltyObject : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")] public virtual TimeInterval ValidTimeInterval { get; set; } + /// Optional value added module data. Maximum of ten on the object. + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -10801,6 +10856,21 @@ public class ModifyLinkedOfferObjectsRequest : Google.Apis.Requests.IDirectRespo public virtual string ETag { get; set; } } + /// Constraints that all must be met for the module to be shown. + public class ModuleViewConstraints : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The period of time that the module will be displayed to users. Can define both a `startTime` and `endTime`. + /// The module is displayed immediately after insertion unless a `startTime` is set. The module is displayed + /// indefinitely if `endTime` is not set. + /// + [Newtonsoft.Json.JsonPropertyAttribute("displayInterval")] + public virtual TimeInterval DisplayInterval { 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." @@ -11103,6 +11173,13 @@ public class OfferClass : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("titleImage")] public virtual Image TitleImage { get; set; } + /// + /// Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, + /// prioritizing those from the object. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -11309,6 +11386,10 @@ public class OfferObject : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")] public virtual TimeInterval ValidTimeInterval { get; set; } + /// Optional value added module data. Maximum of ten on the object. + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -12335,6 +12416,13 @@ public class TransitClass : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("transitType")] public virtual string TransitType { get; set; } + /// + /// Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, + /// prioritizing those from the object. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -12635,6 +12723,10 @@ public class TransitObject : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("validTimeInterval")] public virtual TimeInterval ValidTimeInterval { get; set; } + /// Optional value added module data. Maximum of ten on the object. + [Newtonsoft.Json.JsonPropertyAttribute("valueAddedModuleData")] + public virtual System.Collections.Generic.IList ValueAddedModuleData { get; set; } + /// Deprecated [Newtonsoft.Json.JsonPropertyAttribute("version")] public virtual System.Nullable Version { get; set; } @@ -12761,4 +12853,49 @@ public class Uri : Google.Apis.Requests.IDirectResponseSchema /// The ETag of the item. public virtual string ETag { get; set; } } + + /// Data for Value Added module. Required fields are header and uri. + public class ValueAddedModuleData : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Body to be displayed on the module. Character limit is 50 and longer strings will be truncated. + /// + [Newtonsoft.Json.JsonPropertyAttribute("body")] + public virtual LocalizedString Body { get; set; } + + /// + /// Header to be displayed on the module. Character limit is 60 and longer strings will be truncated. + /// + [Newtonsoft.Json.JsonPropertyAttribute("header")] + public virtual LocalizedString Header { get; set; } + + /// + /// Image to be displayed on the module. Recommended image ratio is 1:1. Images will be resized to fit this + /// ratio. + /// + [Newtonsoft.Json.JsonPropertyAttribute("image")] + public virtual Image Image { get; set; } + + /// + /// The index for sorting the modules. Modules with a lower sort index are shown before modules with a higher + /// sort index. If unspecified, the sort index is assumed to be INT_MAX. For two modules with the same index, + /// the sorting behavior is undefined. + /// + [Newtonsoft.Json.JsonPropertyAttribute("sortIndex")] + public virtual System.Nullable SortIndex { get; set; } + + /// + /// URI that the module leads to on click. This can be a web link or a deep link as mentioned in + /// https://developer.android.com/training/app-links/deep-linking. + /// + [Newtonsoft.Json.JsonPropertyAttribute("uri")] + public virtual string Uri { get; set; } + + /// Constraints that all must be met for the module to be shown. + [Newtonsoft.Json.JsonPropertyAttribute("viewConstraints")] + public virtual ModuleViewConstraints ViewConstraints { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } } diff --git a/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.csproj b/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.csproj index 4a70799db28..8cf81fab049 100644 --- a/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.csproj +++ b/Src/Generated/Google.Apis.Walletobjects.v1/Google.Apis.Walletobjects.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.Walletobjects.v1 Client Library - 1.68.0.3549 + 1.68.0.3557 Google LLC Copyright 2024 Google LLC Google