Skip to content

Commit 56d8532

Browse files
feat: Automated regeneration of AndroidPublisher client (googleapis#12620)
Auto-created at 2024-11-26 13:13:02 +0000 using the toys pull request generator.
1 parent dfca05d commit 56d8532

File tree

7 files changed

+143
-4
lines changed

7 files changed

+143
-4
lines changed

clients/android_publisher/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_android_publisher, "~> 0.40"}]
14+
[{:google_api_android_publisher, "~> 0.41"}]
1515
end
1616
```
1717

clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex

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

23-
@discovery_revision "20241016"
23+
@discovery_revision "20241125"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AndroidPublisher.V3.Model.OneTimeCode do
19+
@moduledoc """
20+
A single use promotion code.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.OneTimeCode do
32+
def decode(value, options) do
33+
GoogleApi.AndroidPublisher.V3.Model.OneTimeCode.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.OneTimeCode do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AndroidPublisher.V3.Model.SignupPromotion do
19+
@moduledoc """
20+
The promotion applied on this item when purchased.
21+
22+
## Attributes
23+
24+
* `oneTimeCode` (*type:* `GoogleApi.AndroidPublisher.V3.Model.OneTimeCode.t`, *default:* `nil`) - A one-time code was applied.
25+
* `vanityCode` (*type:* `GoogleApi.AndroidPublisher.V3.Model.VanityCode.t`, *default:* `nil`) - A vanity code was applied.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:oneTimeCode => GoogleApi.AndroidPublisher.V3.Model.OneTimeCode.t() | nil,
32+
:vanityCode => GoogleApi.AndroidPublisher.V3.Model.VanityCode.t() | nil
33+
}
34+
35+
field(:oneTimeCode, as: GoogleApi.AndroidPublisher.V3.Model.OneTimeCode)
36+
field(:vanityCode, as: GoogleApi.AndroidPublisher.V3.Model.VanityCode)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SignupPromotion do
40+
def decode(value, options) do
41+
GoogleApi.AndroidPublisher.V3.Model.SignupPromotion.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SignupPromotion do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase_line_item.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionPurchaseLineItem do
2727
* `offerDetails` (*type:* `GoogleApi.AndroidPublisher.V3.Model.OfferDetails.t`, *default:* `nil`) - The offer details for this item.
2828
* `prepaidPlan` (*type:* `GoogleApi.AndroidPublisher.V3.Model.PrepaidPlan.t`, *default:* `nil`) - The item is prepaid.
2929
* `productId` (*type:* `String.t`, *default:* `nil`) - The purchased product ID (for example, 'monthly001').
30+
* `signupPromotion` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SignupPromotion.t`, *default:* `nil`) - Promotion details about this item. Only set if a promotion was applied during signup.
3031
"""
3132

3233
use GoogleApi.Gax.ModelBase
@@ -38,7 +39,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionPurchaseLineItem do
3839
:expiryTime => DateTime.t() | nil,
3940
:offerDetails => GoogleApi.AndroidPublisher.V3.Model.OfferDetails.t() | nil,
4041
:prepaidPlan => GoogleApi.AndroidPublisher.V3.Model.PrepaidPlan.t() | nil,
41-
:productId => String.t() | nil
42+
:productId => String.t() | nil,
43+
:signupPromotion => GoogleApi.AndroidPublisher.V3.Model.SignupPromotion.t() | nil
4244
}
4345

4446
field(:autoRenewingPlan, as: GoogleApi.AndroidPublisher.V3.Model.AutoRenewingPlan)
@@ -47,6 +49,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionPurchaseLineItem do
4749
field(:offerDetails, as: GoogleApi.AndroidPublisher.V3.Model.OfferDetails)
4850
field(:prepaidPlan, as: GoogleApi.AndroidPublisher.V3.Model.PrepaidPlan)
4951
field(:productId)
52+
field(:signupPromotion, as: GoogleApi.AndroidPublisher.V3.Model.SignupPromotion)
5053
end
5154

5255
defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SubscriptionPurchaseLineItem do
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AndroidPublisher.V3.Model.VanityCode do
19+
@moduledoc """
20+
A multiple use, predefined promotion code.
21+
22+
## Attributes
23+
24+
* `promotionCode` (*type:* `String.t`, *default:* `nil`) - The promotion code.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:promotionCode => String.t() | nil
31+
}
32+
33+
field(:promotionCode)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.VanityCode do
37+
def decode(value, options) do
38+
GoogleApi.AndroidPublisher.V3.Model.VanityCode.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.VanityCode do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/android_publisher/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.AndroidPublisher.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.40.0"
21+
@version "0.41.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)