View Source GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Promotion (google_api_payments_reseller_subscription v0.5.0)

A Promotion resource that defines a promotion for a subscription that can be resold.

Attributes

  • applicableProducts (type: list(String.t), default: nil) - Output only. The product ids this promotion can be applied to.
  • endTime (type: DateTime.t, default: nil) - Optional. Specifies the end time (exclusive) of the period that the promotion is available in. If unset, the promotion is available indefinitely.
  • freeTrialDuration (type: GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Duration.t, default: nil) - Optional. Specifies the duration of the free trial of the subscription when promotion_type is PROMOTION_TYPE_FREE_TRIAL
  • introductoryPricingDetails (type: GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails.t, default: nil) - Optional. Specifies the introductory pricing details when the promotion_type is PROMOTION_TYPE_INTRODUCTORY_PRICING.
  • name (type: String.t, default: nil) - Identifier. Response only. Resource name of the subscription promotion. It will have the format of "partners/{partner_id}/promotion/{promotion_id}"
  • promotionType (type: String.t, default: nil) - Output only. Output Only. Specifies the type of the promotion.
  • regionCodes (type: list(String.t), default: nil) - Output only. 2-letter ISO region code where the promotion is available in. Ex. "US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1
  • startTime (type: DateTime.t, default: nil) - Optional. Specifies the start time (inclusive) of the period that the promotion is available in.
  • titles (type: list(GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleTypeLocalizedText.t), default: nil) - Output only. Localized human readable name of the promotion.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Promotion{
    applicableProducts: [String.t()] | nil,
    endTime: DateTime.t() | nil,
    freeTrialDuration:
      GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1Duration.t()
      | nil,
    introductoryPricingDetails:
      GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails.t()
      | nil,
    name: String.t() | nil,
    promotionType: String.t() | nil,
    regionCodes: [String.t()] | nil,
    startTime: DateTime.t() | nil,
    titles:
      [
        GoogleApi.PaymentsResellerSubscription.V1.Model.GoogleTypeLocalizedText.t()
      ]
      | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.