Skip to content

Commit 9aa6d7d

Browse files
feat(merchantapi): update the api
#### merchantapi:products_v1beta The following keys were added: - schemas.Attributes.properties.sustainabilityIncentives (Total Keys: 2) - schemas.ProductSustainabilityIncentive (Total Keys: 6)
1 parent 87ee3fc commit 9aa6d7d

File tree

3 files changed

+78
-1
lines changed

3 files changed

+78
-1
lines changed

docs/dyn/merchantapi_products_v1beta.accounts.productInputs.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,16 @@ <h3>Method Details</h3>
369369
&quot;period&quot;: &quot;A String&quot;, # The type of subscription period. Supported values are: * &quot;`month`&quot; * &quot;`year`&quot;
370370
&quot;periodLength&quot;: &quot;A String&quot;, # The number of subscription periods the buyer has to pay.
371371
},
372+
&quot;sustainabilityIncentives&quot;: [ # The list of sustainability incentive programs.
373+
{ # Information regarding sustainability-related incentive programs such as rebates or tax relief.
374+
&quot;amount&quot;: { # The price represented as a number and currency. # The fixed amount of the incentive.
375+
&quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
376+
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
377+
},
378+
&quot;percentage&quot;: 3.14, # The percentage of the sale price that the incentive is applied to.
379+
&quot;type&quot;: &quot;A String&quot;, # Sustainability incentive program.
380+
},
381+
],
372382
&quot;taxCategory&quot;: &quot;A String&quot;, # The tax category of the product.
373383
&quot;taxes&quot;: [ # Tax information.
374384
{ # The Tax of the product.
@@ -671,6 +681,16 @@ <h3>Method Details</h3>
671681
&quot;period&quot;: &quot;A String&quot;, # The type of subscription period. Supported values are: * &quot;`month`&quot; * &quot;`year`&quot;
672682
&quot;periodLength&quot;: &quot;A String&quot;, # The number of subscription periods the buyer has to pay.
673683
},
684+
&quot;sustainabilityIncentives&quot;: [ # The list of sustainability incentive programs.
685+
{ # Information regarding sustainability-related incentive programs such as rebates or tax relief.
686+
&quot;amount&quot;: { # The price represented as a number and currency. # The fixed amount of the incentive.
687+
&quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
688+
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
689+
},
690+
&quot;percentage&quot;: 3.14, # The percentage of the sale price that the incentive is applied to.
691+
&quot;type&quot;: &quot;A String&quot;, # Sustainability incentive program.
692+
},
693+
],
674694
&quot;taxCategory&quot;: &quot;A String&quot;, # The tax category of the product.
675695
&quot;taxes&quot;: [ # Tax information.
676696
{ # The Tax of the product.

docs/dyn/merchantapi_products_v1beta.accounts.products.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,16 @@ <h3>Method Details</h3>
358358
&quot;period&quot;: &quot;A String&quot;, # The type of subscription period. Supported values are: * &quot;`month`&quot; * &quot;`year`&quot;
359359
&quot;periodLength&quot;: &quot;A String&quot;, # The number of subscription periods the buyer has to pay.
360360
},
361+
&quot;sustainabilityIncentives&quot;: [ # The list of sustainability incentive programs.
362+
{ # Information regarding sustainability-related incentive programs such as rebates or tax relief.
363+
&quot;amount&quot;: { # The price represented as a number and currency. # The fixed amount of the incentive.
364+
&quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
365+
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
366+
},
367+
&quot;percentage&quot;: 3.14, # The percentage of the sale price that the incentive is applied to.
368+
&quot;type&quot;: &quot;A String&quot;, # Sustainability incentive program.
369+
},
370+
],
361371
&quot;taxCategory&quot;: &quot;A String&quot;, # The tax category of the product.
362372
&quot;taxes&quot;: [ # Tax information.
363373
{ # The Tax of the product.
@@ -705,6 +715,16 @@ <h3>Method Details</h3>
705715
&quot;period&quot;: &quot;A String&quot;, # The type of subscription period. Supported values are: * &quot;`month`&quot; * &quot;`year`&quot;
706716
&quot;periodLength&quot;: &quot;A String&quot;, # The number of subscription periods the buyer has to pay.
707717
},
718+
&quot;sustainabilityIncentives&quot;: [ # The list of sustainability incentive programs.
719+
{ # Information regarding sustainability-related incentive programs such as rebates or tax relief.
720+
&quot;amount&quot;: { # The price represented as a number and currency. # The fixed amount of the incentive.
721+
&quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
722+
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
723+
},
724+
&quot;percentage&quot;: 3.14, # The percentage of the sale price that the incentive is applied to.
725+
&quot;type&quot;: &quot;A String&quot;, # Sustainability incentive program.
726+
},
727+
],
708728
&quot;taxCategory&quot;: &quot;A String&quot;, # The tax category of the product.
709729
&quot;taxes&quot;: [ # Tax information.
710730
{ # The Tax of the product.

googleapiclient/discovery_cache/documents/merchantapi.products_v1beta.json

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
}
243243
}
244244
},
245-
"revision": "20241211",
245+
"revision": "20241217",
246246
"rootUrl": "https://merchantapi.googleapis.com/",
247247
"schemas": {
248248
"Attributes": {
@@ -651,6 +651,13 @@
651651
"$ref": "SubscriptionCost",
652652
"description": "Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract."
653653
},
654+
"sustainabilityIncentives": {
655+
"description": "The list of sustainability incentive programs.",
656+
"items": {
657+
"$ref": "ProductSustainabilityIncentive"
658+
},
659+
"type": "array"
660+
},
654661
"taxCategory": {
655662
"description": "The tax category of the product.",
656663
"type": "string"
@@ -1516,6 +1523,36 @@ false
15161523
},
15171524
"type": "object"
15181525
},
1526+
"ProductSustainabilityIncentive": {
1527+
"description": "Information regarding sustainability-related incentive programs such as rebates or tax relief.",
1528+
"id": "ProductSustainabilityIncentive",
1529+
"properties": {
1530+
"amount": {
1531+
"$ref": "Price",
1532+
"description": "The fixed amount of the incentive."
1533+
},
1534+
"percentage": {
1535+
"description": "The percentage of the sale price that the incentive is applied to.",
1536+
"format": "double",
1537+
"type": "number"
1538+
},
1539+
"type": {
1540+
"description": "Sustainability incentive program.",
1541+
"enum": [
1542+
"TYPE_UNSPECIFIED",
1543+
"EV_TAX_CREDIT",
1544+
"EV_PRICE_DISCOUNT"
1545+
],
1546+
"enumDescriptions": [
1547+
"Unspecified or unknown sustainability incentive type.",
1548+
"Program offering tax liability reductions for electric vehicles and, in some countries, plug-in hybrids. These reductions can be based on a specific amount or a percentage of the sale price.",
1549+
"A subsidy program, often called an environmental bonus, provides a purchase grant for electric vehicles and, in some countries, plug-in hybrids. The grant amount may be a fixed sum or a percentage of the sale price."
1550+
],
1551+
"type": "string"
1552+
}
1553+
},
1554+
"type": "object"
1555+
},
15191556
"ProductWeight": {
15201557
"description": "The weight of the product.",
15211558
"id": "ProductWeight",

0 commit comments

Comments
 (0)