diff --git a/clients/android_publisher/README.md b/clients/android_publisher/README.md index fd3f679dc2..698ec7343d 100644 --- a/clients/android_publisher/README.md +++ b/clients/android_publisher/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_android_publisher, "~> 0.31"}] + [{:google_api_android_publisher, "~> 0.32"}] end ``` diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex index eaa09c27a2..86fc5c6c7c 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex @@ -920,6 +920,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Purchases do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:endTime` (*type:* `String.t`) - The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response. + * `:includeQuantityBasedPartialRefund` (*type:* `boolean()`) - Optional. Whether to include voided purchases of quantity-based partial refunds, which are applicable only to multi-quantity purchases. If true, additional voided purchases may be returned with voidedQuantity that indicates the refund quantity of a quantity-based partial refund. The default value is false. * `:maxResults` (*type:* `integer()`) - Defines how many results the list operation should return. The default number depends on the resource collection. * `:startIndex` (*type:* `integer()`) - Defines the index of the first element to return. This can only be used if indexed paging is enabled. * `:startTime` (*type:* `String.t`) - The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response. @@ -961,6 +962,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Purchases do :uploadType => :query, :upload_protocol => :query, :endTime => :query, + :includeQuantityBasedPartialRefund => :query, :maxResults => :query, :startIndex => :query, :startTime => :query, diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex index 3259cd67a3..52de36c346 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AndroidPublisher.V3 do API client metadata for GoogleApi.AndroidPublisher.V3. """ - @discovery_revision "20240318" + @discovery_revision "20240319" def discovery_revision(), do: @discovery_revision end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/voided_purchase.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/voided_purchase.ex index 45349d9420..656627105b 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/voided_purchase.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/voided_purchase.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.VoidedPurchase do * `orderId` (*type:* `String.t`, *default:* `nil`) - The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal. * `purchaseTimeMillis` (*type:* `String.t`, *default:* `nil`) - The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970). * `purchaseToken` (*type:* `String.t`, *default:* `nil`) - The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API). + * `voidedQuantity` (*type:* `integer()`, *default:* `nil`) - The voided quantity as the result of a quantity-based partial refund. Voided purchases of quantity-based partial refunds may only be returned when includeQuantityBasedPartialRefund is set to true. * `voidedReason` (*type:* `integer()`, *default:* `nil`) - The reason why the purchase was voided, possible values are: 0. Other 1. Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6. Friendly_fraud 7. Chargeback * `voidedSource` (*type:* `integer()`, *default:* `nil`) - The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google * `voidedTimeMillis` (*type:* `String.t`, *default:* `nil`) - The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, 1970). @@ -37,6 +38,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.VoidedPurchase do :orderId => String.t() | nil, :purchaseTimeMillis => String.t() | nil, :purchaseToken => String.t() | nil, + :voidedQuantity => integer() | nil, :voidedReason => integer() | nil, :voidedSource => integer() | nil, :voidedTimeMillis => String.t() | nil @@ -46,6 +48,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.VoidedPurchase do field(:orderId) field(:purchaseTimeMillis) field(:purchaseToken) + field(:voidedQuantity) field(:voidedReason) field(:voidedSource) field(:voidedTimeMillis) diff --git a/clients/android_publisher/mix.exs b/clients/android_publisher/mix.exs index b58893c031..cf6bc5ecd6 100644 --- a/clients/android_publisher/mix.exs +++ b/clients/android_publisher/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.AndroidPublisher.Mixfile do use Mix.Project - @version "0.31.1" + @version "0.32.0" def project() do [