Packages
Google Workspace Reseller API client library. Perform common functions that are available on the Channel Services console at scale, like placing orders and viewing customer information
Current section
Files
Jump to
Current section
Files
lib/google_api/reseller/v1/model/subscriptions.ex
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.
defmodule GoogleApi.Reseller.V1.Model.Subscriptions do
@moduledoc """
A subscription manages the relationship of a Google customer's payment plan with a product's SKU, user licenses, 30-day free trial status, and renewal options. A primary role of a reseller is to manage the Google customer's subscriptions.
## Attributes
* `kind` (*type:* `String.t`, *default:* `reseller#subscriptions`) - Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
* `subscriptions` (*type:* `list(GoogleApi.Reseller.V1.Model.Subscription.t)`, *default:* `nil`) - The subscriptions in this page of results.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:kind => String.t() | nil,
:nextPageToken => String.t() | nil,
:subscriptions => list(GoogleApi.Reseller.V1.Model.Subscription.t()) | nil
}
field(:kind)
field(:nextPageToken)
field(:subscriptions, as: GoogleApi.Reseller.V1.Model.Subscription, type: :list)
end
defimpl Poison.Decoder, for: GoogleApi.Reseller.V1.Model.Subscriptions do
def decode(value, options) do
GoogleApi.Reseller.V1.Model.Subscriptions.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Reseller.V1.Model.Subscriptions do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end