Class: Google::Apis::ResellerV1::ChangePlanRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/reseller_v1/classes.rb,
generated/google/apis/reseller_v1/representations.rb,
generated/google/apis/reseller_v1/representations.rb

Overview

JSON template for the ChangePlan rpc request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChangePlanRequest

Returns a new instance of ChangePlanRequest.



148
149
150
# File 'generated/google/apis/reseller_v1/classes.rb', line 148

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deal_codeString

Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in changePlan request in order to receive discounted rate. This property is optional. If a deal code has already been added to a subscription, this property may be left empty and the existing discounted rate will still apply (if not empty, only provide the deal code that is already present on the subscription). If a deal code has never been added to a subscription and this property is left blank, regular pricing will apply. Corresponds to the JSON property dealCode

Returns:

  • (String)


116
117
118
# File 'generated/google/apis/reseller_v1/classes.rb', line 116

def deal_code
  @deal_code
end

#kindString

Identifies the resource as a subscription change plan request. Value: subscriptions#changePlanRequest Corresponds to the JSON property kind

Returns:

  • (String)


122
123
124
# File 'generated/google/apis/reseller_v1/classes.rb', line 122

def kind
  @kind
end

#plan_nameString

The planName property is required. This is the name of the subscription's payment plan. For more information about the Google payment plans, see API concepts. Possible values are: - ANNUAL_MONTHLY_PAY - The annual commitment plan with monthly payments *Caution: *ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses. - ANNUAL_YEARLY_PAY - The annual commitment plan with yearly payments - FLEXIBLE - The flexible plan - TRIAL - The 30-day free trial plan Corresponds to the JSON property planName

Returns:

  • (String)


133
134
135
# File 'generated/google/apis/reseller_v1/classes.rb', line 133

def plan_name
  @plan_name
end

#purchase_order_idString

This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters. Corresponds to the JSON property purchaseOrderId

Returns:

  • (String)


141
142
143
# File 'generated/google/apis/reseller_v1/classes.rb', line 141

def purchase_order_id
  @purchase_order_id
end

#seatsGoogle::Apis::ResellerV1::Seats

JSON template for subscription seats. Corresponds to the JSON property seats



146
147
148
# File 'generated/google/apis/reseller_v1/classes.rb', line 146

def seats
  @seats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



153
154
155
156
157
158
159
# File 'generated/google/apis/reseller_v1/classes.rb', line 153

def update!(**args)
  @deal_code = args[:deal_code] if args.key?(:deal_code)
  @kind = args[:kind] if args.key?(:kind)
  @plan_name = args[:plan_name] if args.key?(:plan_name)
  @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
  @seats = args[:seats] if args.key?(:seats)
end