All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem Maven / Gradle / Ivy

There is a newer version: v1-rev20241211-2.0.0
Show newest version
/*
 * 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.paymentsresellersubscription.v1.model;

/**
 * Individual line item definition of a subscription.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Payments Reseller Subscription API. For a detailed * explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem extends com.google.api.client.json.GenericJson { /** * Output only. The price of the product/service in this line item. The amount could be the * wholesale price, or it can include a cost of sale based on the contract. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudPaymentsResellerSubscriptionV1Amount amount; /** * Output only. The bundle details for the line item. Only populated if the line item corresponds * to a hard bundle. * The value may be {@code null}. */ @com.google.api.client.util.Key private SubscriptionLineItemBundleDetails bundleDetails; /** * Output only. Description of this line item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * Optional. Details for a subscription line item with finite billing cycles. If unset, the line * item will be charged indefinitely. Used only with LINE_ITEM_RECURRENCE_TYPE_PERIODIC. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails finiteBillingCycleDetails; /** * Output only. The free trial end time will be populated after the line item is successfully * processed. End time of the line item 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private String lineItemFreeTrialEndTime; /** * Output only. A unique index of the subscription line item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer lineItemIndex; /** * Optional. The promotions applied on the line item. It can be: - an introductory pricing * promotion. - a free trial promotion. This feature is not enabled. If used, the request will be * rejected. When used as input in Create or Provision API, specify its resource name only. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List lineItemPromotionSpecs; /** * Output only. Details only set for a ONE_TIME recurrence line item. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails oneTimeRecurrenceDetails; /** * Required. Product resource name that identifies one the line item The format is * 'partners/{partner_id}/products/{product_id}'. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String product; /** * Optional. Product specific payload for this line item. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudPaymentsResellerSubscriptionV1ProductPayload productPayload; /** * Output only. The recurrence type of the line item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String recurrenceType; /** * Output only. The state of the line item. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** * Output only. The price of the product/service in this line item. The amount could be the * wholesale price, or it can include a cost of sale based on the contract. * @return value or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1Amount getAmount() { return amount; } /** * Output only. The price of the product/service in this line item. The amount could be the * wholesale price, or it can include a cost of sale based on the contract. * @param amount amount or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setAmount(GoogleCloudPaymentsResellerSubscriptionV1Amount amount) { this.amount = amount; return this; } /** * Output only. The bundle details for the line item. Only populated if the line item corresponds * to a hard bundle. * @return value or {@code null} for none */ public SubscriptionLineItemBundleDetails getBundleDetails() { return bundleDetails; } /** * Output only. The bundle details for the line item. Only populated if the line item corresponds * to a hard bundle. * @param bundleDetails bundleDetails or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setBundleDetails(SubscriptionLineItemBundleDetails bundleDetails) { this.bundleDetails = bundleDetails; return this; } /** * Output only. Description of this line item. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * Output only. Description of this line item. * @param description description or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setDescription(java.lang.String description) { this.description = description; return this; } /** * Optional. Details for a subscription line item with finite billing cycles. If unset, the line * item will be charged indefinitely. Used only with LINE_ITEM_RECURRENCE_TYPE_PERIODIC. * @return value or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails getFiniteBillingCycleDetails() { return finiteBillingCycleDetails; } /** * Optional. Details for a subscription line item with finite billing cycles. If unset, the line * item will be charged indefinitely. Used only with LINE_ITEM_RECURRENCE_TYPE_PERIODIC. * @param finiteBillingCycleDetails finiteBillingCycleDetails or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setFiniteBillingCycleDetails(GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails finiteBillingCycleDetails) { this.finiteBillingCycleDetails = finiteBillingCycleDetails; return this; } /** * Output only. The free trial end time will be populated after the line item is successfully * processed. End time of the line item 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. * @return value or {@code null} for none */ public String getLineItemFreeTrialEndTime() { return lineItemFreeTrialEndTime; } /** * Output only. The free trial end time will be populated after the line item is successfully * processed. End time of the line item 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. * @param lineItemFreeTrialEndTime lineItemFreeTrialEndTime or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setLineItemFreeTrialEndTime(String lineItemFreeTrialEndTime) { this.lineItemFreeTrialEndTime = lineItemFreeTrialEndTime; return this; } /** * Output only. A unique index of the subscription line item. * @return value or {@code null} for none */ public java.lang.Integer getLineItemIndex() { return lineItemIndex; } /** * Output only. A unique index of the subscription line item. * @param lineItemIndex lineItemIndex or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setLineItemIndex(java.lang.Integer lineItemIndex) { this.lineItemIndex = lineItemIndex; return this; } /** * Optional. The promotions applied on the line item. It can be: - an introductory pricing * promotion. - a free trial promotion. This feature is not enabled. If used, the request will be * rejected. When used as input in Create or Provision API, specify its resource name only. * @return value or {@code null} for none */ public java.util.List getLineItemPromotionSpecs() { return lineItemPromotionSpecs; } /** * Optional. The promotions applied on the line item. It can be: - an introductory pricing * promotion. - a free trial promotion. This feature is not enabled. If used, the request will be * rejected. When used as input in Create or Provision API, specify its resource name only. * @param lineItemPromotionSpecs lineItemPromotionSpecs or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setLineItemPromotionSpecs(java.util.List lineItemPromotionSpecs) { this.lineItemPromotionSpecs = lineItemPromotionSpecs; return this; } /** * Output only. Details only set for a ONE_TIME recurrence line item. * @return value or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails getOneTimeRecurrenceDetails() { return oneTimeRecurrenceDetails; } /** * Output only. Details only set for a ONE_TIME recurrence line item. * @param oneTimeRecurrenceDetails oneTimeRecurrenceDetails or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setOneTimeRecurrenceDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails oneTimeRecurrenceDetails) { this.oneTimeRecurrenceDetails = oneTimeRecurrenceDetails; return this; } /** * Required. Product resource name that identifies one the line item The format is * 'partners/{partner_id}/products/{product_id}'. * @return value or {@code null} for none */ public java.lang.String getProduct() { return product; } /** * Required. Product resource name that identifies one the line item The format is * 'partners/{partner_id}/products/{product_id}'. * @param product product or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setProduct(java.lang.String product) { this.product = product; return this; } /** * Optional. Product specific payload for this line item. * @return value or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1ProductPayload getProductPayload() { return productPayload; } /** * Optional. Product specific payload for this line item. * @param productPayload productPayload or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setProductPayload(GoogleCloudPaymentsResellerSubscriptionV1ProductPayload productPayload) { this.productPayload = productPayload; return this; } /** * Output only. The recurrence type of the line item. * @return value or {@code null} for none */ public java.lang.String getRecurrenceType() { return recurrenceType; } /** * Output only. The recurrence type of the line item. * @param recurrenceType recurrenceType or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setRecurrenceType(java.lang.String recurrenceType) { this.recurrenceType = recurrenceType; return this; } /** * Output only. The state of the line item. * @return value or {@code null} for none */ public java.lang.String getState() { return state; } /** * Output only. The state of the line item. * @param state state or {@code null} for none */ public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem setState(java.lang.String state) { this.state = state; return this; } @Override public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem set(String fieldName, Object value) { return (GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem) super.set(fieldName, value); } @Override public GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem clone() { return (GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy