Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [css] A new field headline_offer_installment is added to message .google.shopping.css.v1.Attributes #5765

Merged
merged 3 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/google-shopping-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
1. [Select or create a Cloud Platform project][projects].
1. [Enable billing for your project][billing].
1. [Enable the CSS API API][enable_api].
1. [Set up authentication with a service account][auth] so you can access the
1. [Set up authentication][auth] so you can access the
API from your local workstation.

### Installing the client library
Expand Down Expand Up @@ -203,4 +203,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=css.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ message Attributes {

// Custom label 4 for custom grouping of items in a Shopping campaign.
optional string custom_label_4 = 50;

// Number and amount of installments to pay for an item.
HeadlineOfferInstallment headline_offer_installment = 51;

// Number of periods (months or years) and amount of payment per period
// for an item with an associated subscription contract.
HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52;
}

// The certification for the product. Use the this attribute to describe
Expand Down Expand Up @@ -336,3 +343,42 @@ message CssProductStatus {
// 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
google.protobuf.Timestamp google_expiration_date = 7;
}

// The SubscriptionCost of the product.
message HeadlineOfferSubscriptionCost {
// The type of subscription period.
// Supported values are:
// * "`month`"
// * "`year`"
SubscriptionPeriod period = 1;

// The number of subscription periods the buyer has to pay.
int64 period_length = 2;

// The amount the buyer has to pay per subscription period.
google.shopping.type.Price amount = 3;
}

// A message that represents installment.
message HeadlineOfferInstallment {
// The number of installments the buyer has to pay.
int64 months = 1;

// The amount the buyer has to pay per month.
google.shopping.type.Price amount = 2;

// The up-front down payment amount the buyer has to pay.
google.shopping.type.Price downpayment = 3;
}

// The subscription period of the product.
enum SubscriptionPeriod {
// Indicates that the subscription period is unspecified.
SUBSCRIPTION_PERIOD_UNSPECIFIED = 0;

// Indicates that the subscription period is month.
MONTH = 1;

// Indicates that the subscription period is year.
YEAR = 2;
}
237 changes: 237 additions & 0 deletions packages/google-shopping-css/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading