Skip to content

Commit be19cf1

Browse files
feat: Automated regeneration of PaymentsResellerSubscription client (#12710)
Auto-created at 2024-12-13 13:18:58 +0000 using the toys pull request generator.
1 parent 941d549 commit be19cf1

File tree

5 files changed

+65
-3
lines changed

5 files changed

+65
-3
lines changed

clients/payments_reseller_subscription/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_payments_reseller_subscription, "~> 0.6"}]
14+
[{:google_api_payments_reseller_subscription, "~> 0.7"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20241110"
23+
@discovery_revision "20241211"
2424

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

clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_subscription.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defmodule GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsRes
2727
* `endUserEntitled` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates if the subscription is entitled to the end user.
2828
* `freeTrialEndTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. End of the free trial period, in ISO 8061 format. For example, "2019-08-31T17:28:54.564Z". It will be set the same as createTime if no free trial promotion is specified.
2929
* `lineItems` (*type:* `list(GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.t)`, *default:* `nil`) - Required. The line items of the subscription.
30+
* `migrationDetails` (*type:* `GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.t`, *default:* `nil`) - Output only. Describes the details of the migrated subscription. Only populated if this subscription is migrated from another system.
3031
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of the subscription. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}". This is available for authorizeAddon, but otherwise is response only.
3132
* `partnerUserToken` (*type:* `String.t`, *default:* `nil`) - Required. Identifier of the end-user in partner’s system. The value is restricted to 63 ASCII characters at the maximum.
3233
* `processingState` (*type:* `String.t`, *default:* `nil`) - Output only. Describes the processing state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
@@ -57,6 +58,9 @@ defmodule GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsRes
5758
GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.t()
5859
)
5960
| nil,
61+
:migrationDetails =>
62+
GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.t()
63+
| nil,
6064
:name => String.t() | nil,
6165
:partnerUserToken => String.t() | nil,
6266
:processingState => String.t() | nil,
@@ -96,6 +100,11 @@ defmodule GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsRes
96100
type: :list
97101
)
98102

103+
field(:migrationDetails,
104+
as:
105+
GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails
106+
)
107+
99108
field(:name)
100109
field(:partnerUserToken)
101110
field(:processingState)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails do
19+
@moduledoc """
20+
Describes the details of the migrated subscription.
21+
22+
## Attributes
23+
24+
* `migratedSubscriptionId` (*type:* `String.t`, *default:* `nil`) - Output only. The migrated subscription id in the legacy system.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:migratedSubscriptionId => String.t() | nil
31+
}
32+
33+
field(:migratedSubscriptionId)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for:
38+
GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails do
39+
def decode(value, options) do
40+
GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.decode(
41+
value,
42+
options
43+
)
44+
end
45+
end
46+
47+
defimpl Poison.Encoder,
48+
for:
49+
GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
end

clients/payments_reseller_subscription/mix.exs

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

21-
@version "0.6.1"
21+
@version "0.7.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)