Skip to content

Commit c8a7261

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field headline_offer_installment is added to message .google.shopping.css.v1.Attributes
feat: A new field `headline_offer_subscription_cost` is added to message `.google.shopping.css.v1.Attributes` feat: A new message `HeadlineOfferSubscriptionCost` is added feat: A new message `HeadlineOfferInstallment` is added feat: A new enum `SubscriptionPeriod` is added PiperOrigin-RevId: 688649184
1 parent 80bfb11 commit c8a7261

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

google/shopping/css/v1/css_product_common.proto

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,13 @@ message Attributes {
205205

206206
// Custom label 4 for custom grouping of items in a Shopping campaign.
207207
optional string custom_label_4 = 50;
208+
209+
// Number and amount of installments to pay for an item.
210+
HeadlineOfferInstallment headline_offer_installment = 51;
211+
212+
// Number of periods (months or years) and amount of payment per period
213+
// for an item with an associated subscription contract.
214+
HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52;
208215
}
209216

210217
// The certification for the product. Use the this attribute to describe
@@ -336,3 +343,42 @@ message CssProductStatus {
336343
// 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
337344
google.protobuf.Timestamp google_expiration_date = 7;
338345
}
346+
347+
// The SubscriptionCost of the product.
348+
message HeadlineOfferSubscriptionCost {
349+
// The type of subscription period.
350+
// Supported values are:
351+
// * "`month`"
352+
// * "`year`"
353+
SubscriptionPeriod period = 1;
354+
355+
// The number of subscription periods the buyer has to pay.
356+
int64 period_length = 2;
357+
358+
// The amount the buyer has to pay per subscription period.
359+
google.shopping.type.Price amount = 3;
360+
}
361+
362+
// A message that represents installment.
363+
message HeadlineOfferInstallment {
364+
// The number of installments the buyer has to pay.
365+
int64 months = 1;
366+
367+
// The amount the buyer has to pay per month.
368+
google.shopping.type.Price amount = 2;
369+
370+
// The up-front down payment amount the buyer has to pay.
371+
google.shopping.type.Price downpayment = 3;
372+
}
373+
374+
// The subscription period of the product.
375+
enum SubscriptionPeriod {
376+
// Indicates that the subscription period is unspecified.
377+
SUBSCRIPTION_PERIOD_UNSPECIFIED = 0;
378+
379+
// Indicates that the subscription period is month.
380+
MONTH = 1;
381+
382+
// Indicates that the subscription period is year.
383+
YEAR = 2;
384+
}

0 commit comments

Comments
 (0)