Skip to content

Commit 7385608

Browse files
feat: Automated regeneration of WalletObjects client (googleapis#12583)
Auto-created at 2024-11-21 13:15:07 +0000 using the toys pull request generator.
1 parent 03c2570 commit 7385608

18 files changed

+299
-208
lines changed

clients/wallet_objects/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_wallet_objects, "~> 0.10"}]
14+
[{:google_api_wallet_objects, "~> 0.11"}]
1515
end
1616
```
1717

clients/wallet_objects/lib/google_api/wallet_objects/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.WalletObjects.V1 do
2020
API client metadata for GoogleApi.WalletObjects.V1.
2121
"""
2222

23-
@discovery_revision "20241114"
23+
@discovery_revision "20241119"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/wallet_objects/lib/google_api/wallet_objects/v1/model/event_ticket_class.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketClass do
4545
* `allowMultipleUsersPerObject` (*type:* `boolean()`, *default:* `nil`) - Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
4646
* `customGateLabel` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - 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.
4747
* `imageModulesData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ImageModuleData.t)`, *default:* `nil`) - Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level.
48+
* `merchantLocations` (*type:* `list(GoogleApi.WalletObjects.V1.Model.MerchantLocation.t)`, *default:* `nil`) - Merchant locations. There is a maximum of ten on the class. Any additional MerchantLocations added beyond the 10 will be rejected. These locations will trigger a notification when a user enters within a Google-set radius of the point. This field replaces the deprecated LatLongPoints.
4849
* `version` (*type:* `String.t`, *default:* `nil`) - Deprecated
4950
* `locations` (*type:* `list(GoogleApi.WalletObjects.V1.Model.LatLongPoint.t)`, *default:* `nil`) - Note: This field is currently not supported to trigger geo notifications.
5051
* `sectionLabel` (*type:* `String.t`, *default:* `nil`) - 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.
@@ -97,6 +98,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketClass do
9798
:allowMultipleUsersPerObject => boolean() | nil,
9899
:customGateLabel => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
99100
:imageModulesData => list(GoogleApi.WalletObjects.V1.Model.ImageModuleData.t()) | nil,
101+
:merchantLocations => list(GoogleApi.WalletObjects.V1.Model.MerchantLocation.t()) | nil,
100102
:version => String.t() | nil,
101103
:locations => list(GoogleApi.WalletObjects.V1.Model.LatLongPoint.t()) | nil,
102104
:sectionLabel => String.t() | nil,
@@ -146,6 +148,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketClass do
146148
field(:allowMultipleUsersPerObject)
147149
field(:customGateLabel, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)
148150
field(:imageModulesData, as: GoogleApi.WalletObjects.V1.Model.ImageModuleData, type: :list)
151+
field(:merchantLocations, as: GoogleApi.WalletObjects.V1.Model.MerchantLocation, type: :list)
149152
field(:version)
150153
field(:locations, as: GoogleApi.WalletObjects.V1.Model.LatLongPoint, type: :list)
151154
field(:sectionLabel)

clients/wallet_objects/lib/google_api/wallet_objects/v1/model/event_ticket_object.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketObject do
3333
* `smartTapRedemptionValue` (*type:* `String.t`, *default:* `nil`) - 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.
3434
* `classId` (*type:* `String.t`, *default:* `nil`) - 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.
3535
* `imageModulesData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ImageModuleData.t)`, *default:* `nil`) - Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level.
36+
* `merchantLocations` (*type:* `list(GoogleApi.WalletObjects.V1.Model.MerchantLocation.t)`, *default:* `nil`) - Merchant locations. There is a maximum of ten on the object. Any additional MerchantLocations added beyond the 10 will be rejected. These locations will trigger a notification when a user enters within a Google-set radius of the point. This field replaces the deprecated LatLongPoints.
3637
* `version` (*type:* `String.t`, *default:* `nil`) - Deprecated
3738
* `hasUsers` (*type:* `boolean()`, *default:* `nil`) - Indicates if the object has users. This field is set by the platform.
3839
* `locations` (*type:* `list(GoogleApi.WalletObjects.V1.Model.LatLongPoint.t)`, *default:* `nil`) - Note: This field is currently not supported to trigger geo notifications.
@@ -73,6 +74,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketObject do
7374
:smartTapRedemptionValue => String.t() | nil,
7475
:classId => String.t() | nil,
7576
:imageModulesData => list(GoogleApi.WalletObjects.V1.Model.ImageModuleData.t()) | nil,
77+
:merchantLocations => list(GoogleApi.WalletObjects.V1.Model.MerchantLocation.t()) | nil,
7678
:version => String.t() | nil,
7779
:hasUsers => boolean() | nil,
7880
:locations => list(GoogleApi.WalletObjects.V1.Model.LatLongPoint.t()) | nil,
@@ -111,6 +113,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketObject do
111113
field(:smartTapRedemptionValue)
112114
field(:classId)
113115
field(:imageModulesData, as: GoogleApi.WalletObjects.V1.Model.ImageModuleData, type: :list)
116+
field(:merchantLocations, as: GoogleApi.WalletObjects.V1.Model.MerchantLocation, type: :list)
114117
field(:version)
115118
field(:hasUsers)
116119
field(:locations, as: GoogleApi.WalletObjects.V1.Model.LatLongPoint, type: :list)

clients/wallet_objects/lib/google_api/wallet_objects/v1/model/flight_class.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightClass do
3838
* `issuerName` (*type:* `String.t`, *default:* `nil`) - Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens.
3939
* `allowMultipleUsersPerObject` (*type:* `boolean()`, *default:* `nil`) - Deprecated. Use `multipleDevicesAndHoldersAllowedStatus` instead.
4040
* `imageModulesData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ImageModuleData.t)`, *default:* `nil`) - Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level.
41+
* `merchantLocations` (*type:* `list(GoogleApi.WalletObjects.V1.Model.MerchantLocation.t)`, *default:* `nil`) - Merchant locations. There is a maximum of ten on the class. Any additional MerchantLocations added beyond the 10 will be rejected by the validator. These locations will trigger a notification when a user enters within a Google-set radius of the point. This field replaces the deprecated LatLongPoints.
4142
* `version` (*type:* `String.t`, *default:* `nil`) - Deprecated
4243
* `locations` (*type:* `list(GoogleApi.WalletObjects.V1.Model.LatLongPoint.t)`, *default:* `nil`) - Note: This field is currently not supported to trigger geo notifications.
4344
* `notifyPreference` (*type:* `String.t`, *default:* `nil`) - Whether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If not specified, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.
@@ -85,6 +86,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightClass do
8586
:issuerName => String.t() | nil,
8687
:allowMultipleUsersPerObject => boolean() | nil,
8788
:imageModulesData => list(GoogleApi.WalletObjects.V1.Model.ImageModuleData.t()) | nil,
89+
:merchantLocations => list(GoogleApi.WalletObjects.V1.Model.MerchantLocation.t()) | nil,
8890
:version => String.t() | nil,
8991
:locations => list(GoogleApi.WalletObjects.V1.Model.LatLongPoint.t()) | nil,
9092
:notifyPreference => String.t() | nil,
@@ -129,6 +131,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightClass do
129131
field(:issuerName)
130132
field(:allowMultipleUsersPerObject)
131133
field(:imageModulesData, as: GoogleApi.WalletObjects.V1.Model.ImageModuleData, type: :list)
134+
field(:merchantLocations, as: GoogleApi.WalletObjects.V1.Model.MerchantLocation, type: :list)
132135
field(:version)
133136
field(:locations, as: GoogleApi.WalletObjects.V1.Model.LatLongPoint, type: :list)
134137
field(:notifyPreference)

0 commit comments

Comments
 (0)