Skip to content

Commit 68b4e81

Browse files
feat: Automated regeneration of WalletObjects client (googleapis#12232)
Auto-created at 2024-09-28 13:08:57 +0000 using the toys pull request generator.
1 parent 110ad70 commit 68b4e81

19 files changed

+236
-3
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.7"}]
14+
[{:google_api_wallet_objects, "~> 0.8"}]
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 "20240809"
23+
@discovery_revision "20240927"
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketClass do
5858
* `classTemplateInfo` (*type:* `GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo.t`, *default:* `nil`) - Template information about how the class should be displayed. If unset, Google will fallback to a default set of fields to display.
5959
* `callbackOptions` (*type:* `GoogleApi.WalletObjects.V1.Model.CallbackOptions.t`, *default:* `nil`) - 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.
6060
* `enableSmartTap` (*type:* `boolean()`, *default:* `nil`) - 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.
61+
* `valueAddedModuleData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t)`, *default:* `nil`) - Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.
6162
* `countryCode` (*type:* `String.t`, *default:* `nil`) - 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.
6263
* `viewUnlockRequirement` (*type:* `String.t`, *default:* `nil`) - View Unlock Requirement options for the event ticket.
6364
* `customSeatLabel` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - 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.
@@ -108,6 +109,8 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketClass do
108109
:classTemplateInfo => GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo.t() | nil,
109110
:callbackOptions => GoogleApi.WalletObjects.V1.Model.CallbackOptions.t() | nil,
110111
:enableSmartTap => boolean() | nil,
112+
:valueAddedModuleData =>
113+
list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t()) | nil,
111114
:countryCode => String.t() | nil,
112115
:viewUnlockRequirement => String.t() | nil,
113116
:customSeatLabel => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
@@ -154,6 +157,12 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketClass do
154157
field(:classTemplateInfo, as: GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo)
155158
field(:callbackOptions, as: GoogleApi.WalletObjects.V1.Model.CallbackOptions)
156159
field(:enableSmartTap)
160+
161+
field(:valueAddedModuleData,
162+
as: GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData,
163+
type: :list
164+
)
165+
157166
field(:countryCode)
158167
field(:viewUnlockRequirement)
159168
field(:customSeatLabel, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketObject do
4949
* `passConstraints` (*type:* `GoogleApi.WalletObjects.V1.Model.PassConstraints.t`, *default:* `nil`) - Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
5050
* `rotatingBarcode` (*type:* `GoogleApi.WalletObjects.V1.Model.RotatingBarcode.t`, *default:* `nil`) - The rotating barcode type and value.
5151
* `classReference` (*type:* `GoogleApi.WalletObjects.V1.Model.EventTicketClass.t`, *default:* `nil`) - A copy of the inherited fields of the parent class. These fields are retrieved during a GET.
52+
* `valueAddedModuleData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t)`, *default:* `nil`) - Optional value added module data. Maximum of ten on the object.
5253
* `linkedOfferIds` (*type:* `list(String.t)`, *default:* `nil`) - 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.
5354
* `validTimeInterval` (*type:* `GoogleApi.WalletObjects.V1.Model.TimeInterval.t`, *default:* `nil`) - 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.
5455
* `id` (*type:* `String.t`, *default:* `nil`) - 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 '-'.
@@ -87,6 +88,8 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketObject do
8788
:passConstraints => GoogleApi.WalletObjects.V1.Model.PassConstraints.t() | nil,
8889
:rotatingBarcode => GoogleApi.WalletObjects.V1.Model.RotatingBarcode.t() | nil,
8990
:classReference => GoogleApi.WalletObjects.V1.Model.EventTicketClass.t() | nil,
91+
:valueAddedModuleData =>
92+
list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t()) | nil,
9093
:linkedOfferIds => list(String.t()) | nil,
9194
:validTimeInterval => GoogleApi.WalletObjects.V1.Model.TimeInterval.t() | nil,
9295
:id => String.t() | nil,
@@ -122,6 +125,12 @@ defmodule GoogleApi.WalletObjects.V1.Model.EventTicketObject do
122125
field(:passConstraints, as: GoogleApi.WalletObjects.V1.Model.PassConstraints)
123126
field(:rotatingBarcode, as: GoogleApi.WalletObjects.V1.Model.RotatingBarcode)
124127
field(:classReference, as: GoogleApi.WalletObjects.V1.Model.EventTicketClass)
128+
129+
field(:valueAddedModuleData,
130+
as: GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData,
131+
type: :list
132+
)
133+
125134
field(:linkedOfferIds, type: :list)
126135
field(:validTimeInterval, as: GoogleApi.WalletObjects.V1.Model.TimeInterval)
127136
field(:id)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightClass do
5555
* `classTemplateInfo` (*type:* `GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo.t`, *default:* `nil`) - Template information about how the class should be displayed. If unset, Google will fallback to a default set of fields to display.
5656
* `callbackOptions` (*type:* `GoogleApi.WalletObjects.V1.Model.CallbackOptions.t`, *default:* `nil`) - 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.
5757
* `enableSmartTap` (*type:* `boolean()`, *default:* `nil`) - 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.
58+
* `valueAddedModuleData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t)`, *default:* `nil`) - Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.
5859
* `countryCode` (*type:* `String.t`, *default:* `nil`) - 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.
5960
* `viewUnlockRequirement` (*type:* `String.t`, *default:* `nil`) - View Unlock Requirement options for the boarding pass.
6061
* `localEstimatedOrActualDepartureDateTime` (*type:* `String.t`, *default:* `nil`) - 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.
@@ -100,6 +101,8 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightClass do
100101
:classTemplateInfo => GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo.t() | nil,
101102
:callbackOptions => GoogleApi.WalletObjects.V1.Model.CallbackOptions.t() | nil,
102103
:enableSmartTap => boolean() | nil,
104+
:valueAddedModuleData =>
105+
list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t()) | nil,
103106
:countryCode => String.t() | nil,
104107
:viewUnlockRequirement => String.t() | nil,
105108
:localEstimatedOrActualDepartureDateTime => String.t() | nil,
@@ -141,6 +144,12 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightClass do
141144
field(:classTemplateInfo, as: GoogleApi.WalletObjects.V1.Model.ClassTemplateInfo)
142145
field(:callbackOptions, as: GoogleApi.WalletObjects.V1.Model.CallbackOptions)
143146
field(:enableSmartTap)
147+
148+
field(:valueAddedModuleData,
149+
as: GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData,
150+
type: :list
151+
)
152+
144153
field(:countryCode)
145154
field(:viewUnlockRequirement)
146155
field(:localEstimatedOrActualDepartureDateTime)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightObject do
5050
* `state` (*type:* `String.t`, *default:* `nil`) - 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.
5151
* `textModulesData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.TextModuleData.t)`, *default:* `nil`) - 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.
5252
* `validTimeInterval` (*type:* `GoogleApi.WalletObjects.V1.Model.TimeInterval.t`, *default:* `nil`) - 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.
53+
* `valueAddedModuleData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t)`, *default:* `nil`) - Optional value added module data. Maximum of ten on the object.
5354
* `version` (*type:* `String.t`, *default:* `nil`) - Deprecated
5455
"""
5556

@@ -86,6 +87,8 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightObject do
8687
:state => String.t() | nil,
8788
:textModulesData => list(GoogleApi.WalletObjects.V1.Model.TextModuleData.t()) | nil,
8889
:validTimeInterval => GoogleApi.WalletObjects.V1.Model.TimeInterval.t() | nil,
90+
:valueAddedModuleData =>
91+
list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t()) | nil,
8992
:version => String.t() | nil
9093
}
9194

@@ -118,6 +121,12 @@ defmodule GoogleApi.WalletObjects.V1.Model.FlightObject do
118121
field(:state)
119122
field(:textModulesData, as: GoogleApi.WalletObjects.V1.Model.TextModuleData, type: :list)
120123
field(:validTimeInterval, as: GoogleApi.WalletObjects.V1.Model.TimeInterval)
124+
125+
field(:valueAddedModuleData,
126+
as: GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData,
127+
type: :list
128+
)
129+
121130
field(:version)
122131
end
123132

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.GenericClass do
3333
* `redemptionIssuers` (*type:* `list(String.t)`, *default:* `nil`) - 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.
3434
* `securityAnimation` (*type:* `GoogleApi.WalletObjects.V1.Model.SecurityAnimation.t`, *default:* `nil`) - Optional information about the security animation. If this is set a security animation will be rendered on pass details.
3535
* `textModulesData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.TextModuleData.t)`, *default:* `nil`) - 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.
36+
* `valueAddedModuleData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t)`, *default:* `nil`) - Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.
3637
* `viewUnlockRequirement` (*type:* `String.t`, *default:* `nil`) - View Unlock Requirement options for the generic pass.
3738
"""
3839

@@ -51,6 +52,8 @@ defmodule GoogleApi.WalletObjects.V1.Model.GenericClass do
5152
:redemptionIssuers => list(String.t()) | nil,
5253
:securityAnimation => GoogleApi.WalletObjects.V1.Model.SecurityAnimation.t() | nil,
5354
:textModulesData => list(GoogleApi.WalletObjects.V1.Model.TextModuleData.t()) | nil,
55+
:valueAddedModuleData =>
56+
list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t()) | nil,
5457
:viewUnlockRequirement => String.t() | nil
5558
}
5659

@@ -66,6 +69,12 @@ defmodule GoogleApi.WalletObjects.V1.Model.GenericClass do
6669
field(:redemptionIssuers, type: :list)
6770
field(:securityAnimation, as: GoogleApi.WalletObjects.V1.Model.SecurityAnimation)
6871
field(:textModulesData, as: GoogleApi.WalletObjects.V1.Model.TextModuleData, type: :list)
72+
73+
field(:valueAddedModuleData,
74+
as: GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData,
75+
type: :list
76+
)
77+
6978
field(:viewUnlockRequirement)
7079
end
7180

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.GenericObject do
4646
* `subheader` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - 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.
4747
* `textModulesData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.TextModuleData.t)`, *default:* `nil`) - 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.
4848
* `validTimeInterval` (*type:* `GoogleApi.WalletObjects.V1.Model.TimeInterval.t`, *default:* `nil`) - 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.
49+
* `valueAddedModuleData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t)`, *default:* `nil`) - Optional value added module data. Maximum of ten on the object.
4950
* `wideLogo` (*type:* `GoogleApi.WalletObjects.V1.Model.Image.t`, *default:* `nil`) - 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.
5051
"""
5152

@@ -77,6 +78,8 @@ defmodule GoogleApi.WalletObjects.V1.Model.GenericObject do
7778
:subheader => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
7879
:textModulesData => list(GoogleApi.WalletObjects.V1.Model.TextModuleData.t()) | nil,
7980
:validTimeInterval => GoogleApi.WalletObjects.V1.Model.TimeInterval.t() | nil,
81+
:valueAddedModuleData =>
82+
list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t()) | nil,
8083
:wideLogo => GoogleApi.WalletObjects.V1.Model.Image.t() | nil
8184
}
8285

@@ -105,6 +108,12 @@ defmodule GoogleApi.WalletObjects.V1.Model.GenericObject do
105108
field(:subheader, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)
106109
field(:textModulesData, as: GoogleApi.WalletObjects.V1.Model.TextModuleData, type: :list)
107110
field(:validTimeInterval, as: GoogleApi.WalletObjects.V1.Model.TimeInterval)
111+
112+
field(:valueAddedModuleData,
113+
as: GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData,
114+
type: :list
115+
)
116+
108117
field(:wideLogo, as: GoogleApi.WalletObjects.V1.Model.Image)
109118
end
110119

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ defmodule GoogleApi.WalletObjects.V1.Model.GiftCardClass do
5454
* `callbackOptions` (*type:* `GoogleApi.WalletObjects.V1.Model.CallbackOptions.t`, *default:* `nil`) - 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.
5555
* `eventNumberLabel` (*type:* `String.t`, *default:* `nil`) - The label to display for event number, such as "Target Event #".
5656
* `enableSmartTap` (*type:* `boolean()`, *default:* `nil`) - 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.
57+
* `valueAddedModuleData` (*type:* `list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t)`, *default:* `nil`) - Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.
5758
* `countryCode` (*type:* `String.t`, *default:* `nil`) - 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.
5859
* `localizedCardNumberLabel` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - Translated strings for the card_number_label.
5960
* `viewUnlockRequirement` (*type:* `String.t`, *default:* `nil`) - View Unlock Requirement options for the gift card.
@@ -97,6 +98,8 @@ defmodule GoogleApi.WalletObjects.V1.Model.GiftCardClass do
9798
:callbackOptions => GoogleApi.WalletObjects.V1.Model.CallbackOptions.t() | nil,
9899
:eventNumberLabel => String.t() | nil,
99100
:enableSmartTap => boolean() | nil,
101+
:valueAddedModuleData =>
102+
list(GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData.t()) | nil,
100103
:countryCode => String.t() | nil,
101104
:localizedCardNumberLabel => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
102105
:viewUnlockRequirement => String.t() | nil,
@@ -138,6 +141,12 @@ defmodule GoogleApi.WalletObjects.V1.Model.GiftCardClass do
138141
field(:callbackOptions, as: GoogleApi.WalletObjects.V1.Model.CallbackOptions)
139142
field(:eventNumberLabel)
140143
field(:enableSmartTap)
144+
145+
field(:valueAddedModuleData,
146+
as: GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData,
147+
type: :list
148+
)
149+
141150
field(:countryCode)
142151
field(:localizedCardNumberLabel, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)
143152
field(:viewUnlockRequirement)

0 commit comments

Comments
 (0)