Skip to content

Commit db0f171

Browse files
yoshi-automationquirogas
authored andcommitted
fix(merchantapi): update the API
#### merchantapi:products_v1 The following keys were changed: - schemas.ProductAttributes.properties.subscriptionCost.description - schemas.SubscriptionCost.properties.period.description - schemas.SubscriptionCost.properties.period.enum - schemas.SubscriptionCost.properties.period.enumDescriptions #### merchantapi:products_v1beta The following keys were changed: - schemas.Attributes.properties.subscriptionCost.description - schemas.SubscriptionCost.properties.period.description - schemas.SubscriptionCost.properties.period.enum - schemas.SubscriptionCost.properties.period.enumDescriptions
1 parent 0f2c1c7 commit db0f171

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

discovery/merchantapi-products_v1.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
}
282282
}
283283
},
284-
"revision": "20251118",
284+
"revision": "20251207",
285285
"rootUrl": "https://merchantapi.googleapis.com/",
286286
"schemas": {
287287
"AutomatedDiscounts": {
@@ -1808,7 +1808,7 @@
18081808
},
18091809
"subscriptionCost": {
18101810
"$ref": "SubscriptionCost",
1811-
"description": "Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract."
1811+
"description": "Number of periods (weeks, months or years) and amount of payment per period for an item with an associated subscription contract."
18121812
},
18131813
"sustainabilityIncentives": {
18141814
"description": "The list of sustainability incentive programs.",
@@ -2414,16 +2414,18 @@
24142414
"description": "The amount the buyer has to pay per subscription period."
24152415
},
24162416
"period": {
2417-
"description": "The type of subscription period. Supported values are: * \"`month`\" * \"`year`\"",
2417+
"description": "The type of subscription period. Supported values are: * \"`month`\" * \"`year`\" * \"`week`\"",
24182418
"enum": [
24192419
"SUBSCRIPTION_PERIOD_UNSPECIFIED",
24202420
"MONTH",
2421-
"YEAR"
2421+
"YEAR",
2422+
"WEEK"
24222423
],
24232424
"enumDescriptions": [
24242425
"Indicates that the subscription period is unspecified.",
24252426
"Indicates that the subscription period is month.",
2426-
"Indicates that the subscription period is year."
2427+
"Indicates that the subscription period is year.",
2428+
"Indicates that the subscription period is week."
24272429
],
24282430
"type": "string"
24292431
},

discovery/merchantapi-products_v1beta.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
}
282282
}
283283
},
284-
"revision": "20251118",
284+
"revision": "20251207",
285285
"rootUrl": "https://merchantapi.googleapis.com/",
286286
"schemas": {
287287
"Attributes": {
@@ -700,7 +700,7 @@
700700
},
701701
"subscriptionCost": {
702702
"$ref": "SubscriptionCost",
703-
"description": "Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract."
703+
"description": "Number of periods (weeks, months or years) and amount of payment per period for an item with an associated subscription contract."
704704
},
705705
"sustainabilityIncentives": {
706706
"description": "The list of sustainability incentive programs.",
@@ -1765,16 +1765,18 @@
17651765
"description": "The amount the buyer has to pay per subscription period."
17661766
},
17671767
"period": {
1768-
"description": "The type of subscription period. Supported values are: * \"`month`\" * \"`year`\"",
1768+
"description": "The type of subscription period. Supported values are: * \"`month`\" * \"`year`\" * \"`week`\"",
17691769
"enum": [
17701770
"SUBSCRIPTION_PERIOD_UNSPECIFIED",
17711771
"MONTH",
1772-
"YEAR"
1772+
"YEAR",
1773+
"WEEK"
17731774
],
17741775
"enumDescriptions": [
17751776
"Indicates that the subscription period is unspecified.",
17761777
"Indicates that the subscription period is month.",
1777-
"Indicates that the subscription period is year."
1778+
"Indicates that the subscription period is year.",
1779+
"Indicates that the subscription period is week."
17781780
],
17791781
"type": "string"
17801782
},

src/apis/merchantapi/products_v1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ export namespace merchantapi_products_v1 {
851851
*/
852852
structuredTitle?: Schema$StructuredTitle;
853853
/**
854-
* Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract.
854+
* Number of periods (weeks, months or years) and amount of payment per period for an item with an associated subscription contract.
855855
*/
856856
subscriptionCost?: Schema$SubscriptionCost;
857857
/**
@@ -1240,7 +1240,7 @@ export namespace merchantapi_products_v1 {
12401240
*/
12411241
amount?: Schema$Price;
12421242
/**
1243-
* The type of subscription period. Supported values are: * "`month`" * "`year`"
1243+
* The type of subscription period. Supported values are: * "`month`" * "`year`" * "`week`"
12441244
*/
12451245
period?: string | null;
12461246
/**

src/apis/merchantapi/products_v1beta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export namespace merchantapi_products_v1beta {
473473
*/
474474
structuredTitle?: Schema$ProductStructuredTitle;
475475
/**
476-
* Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract.
476+
* Number of periods (weeks, months or years) and amount of payment per period for an item with an associated subscription contract.
477477
*/
478478
subscriptionCost?: Schema$SubscriptionCost;
479479
/**
@@ -1145,7 +1145,7 @@ export namespace merchantapi_products_v1beta {
11451145
*/
11461146
amount?: Schema$Price;
11471147
/**
1148-
* The type of subscription period. Supported values are: * "`month`" * "`year`"
1148+
* The type of subscription period. Supported values are: * "`month`" * "`year`" * "`week`"
11491149
*/
11501150
period?: string | null;
11511151
/**

0 commit comments

Comments
 (0)