Cloud Commerce Producer V1BETA API - Class Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::Installment (v0.1.0)

Reference documentation and code samples for the Cloud Commerce Producer V1BETA API class Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::Installment.

An installment of the offer.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#price_model

def price_model() -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel
Returns

#price_model=

def price_model=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel
Parameter
Returns

#start_time

def start_time() -> ::Google::Type::DateTime
Returns
  • (::Google::Type::DateTime) — Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

    When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

    If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

    The start_time of the installments cannot be before the accept_deadline_time of the offer.

    Installment start times must be in strictly increasing chronological order.

#start_time=

def start_time=(value) -> ::Google::Type::DateTime
Parameter
  • value (::Google::Type::DateTime) — Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

    When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

    If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

    The start_time of the installments cannot be before the accept_deadline_time of the offer.

    Installment start times must be in strictly increasing chronological order.

Returns
  • (::Google::Type::DateTime) — Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

    When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

    If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

    The start_time of the installments cannot be before the accept_deadline_time of the offer.

    Installment start times must be in strictly increasing chronological order.