Skip to content

Commit 2cd5b1c

Browse files
feat(paymentsresellersubscription): update the api
#### paymentsresellersubscription:v1 The following keys were added: - schemas.GoogleCloudPaymentsResellerSubscriptionV1Subscription.properties.upgradeDowngradeDetails.$ref (Total Keys: 1) - schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails (Total Keys: 4)
1 parent 98d464e commit 2cd5b1c

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

docs/dyn/paymentsresellersubscription_v1.partners.subscriptions.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ <h3>Method Details</h3>
145145
},
146146
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
147147
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
148+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
149+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
150+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
151+
},
148152
},
149153
}</pre>
150154
</div>
@@ -186,6 +190,10 @@ <h3>Method Details</h3>
186190
},
187191
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
188192
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
193+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
194+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
195+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
196+
},
189197
}
190198

191199
subscriptionId: string, Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.
@@ -220,6 +228,10 @@ <h3>Method Details</h3>
220228
},
221229
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
222230
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
231+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
232+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
233+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
234+
},
223235
}</pre>
224236
</div>
225237

@@ -267,6 +279,10 @@ <h3>Method Details</h3>
267279
},
268280
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
269281
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
282+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
283+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
284+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
285+
},
270286
},
271287
}</pre>
272288
</div>
@@ -342,6 +358,10 @@ <h3>Method Details</h3>
342358
},
343359
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
344360
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
361+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
362+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
363+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
364+
},
345365
}</pre>
346366
</div>
347367

@@ -377,6 +397,10 @@ <h3>Method Details</h3>
377397
},
378398
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
379399
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
400+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
401+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
402+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
403+
},
380404
}
381405

382406
subscriptionId: string, Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.
@@ -411,6 +435,10 @@ <h3>Method Details</h3>
411435
},
412436
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
413437
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
438+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
439+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
440+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
441+
},
414442
}</pre>
415443
</div>
416444

@@ -458,6 +486,10 @@ <h3>Method Details</h3>
458486
},
459487
&quot;state&quot;: &quot;A String&quot;, # Output only. Descibes the state of the subscription. See more details at [the lifecycle of a subscription](/payments/reseller/subscription/reference/index/Receive.Notifications#payments-subscription-lifecycle).
460488
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. System generated timestamp when the subscription is most recently updated. UTC timezone.
489+
&quot;upgradeDowngradeDetails&quot;: { # Details about the previous subscription that this new subscription upgrades/downgrades from. # Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
490+
&quot;billingCycleSpec&quot;: &quot;A String&quot;, # Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
491+
&quot;previousSubscriptionId&quot;: &quot;A String&quot;, # Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
492+
},
461493
},
462494
}</pre>
463495
</div>

googleapiclient/discovery_cache/documents/paymentsresellersubscription.v1.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
}
367367
}
368368
},
369-
"revision": "20210615",
369+
"revision": "20210627",
370370
"rootUrl": "https://paymentsresellersubscription.googleapis.com/",
371371
"schemas": {
372372
"GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest": {
@@ -724,6 +724,10 @@
724724
"format": "google-datetime",
725725
"readOnly": true,
726726
"type": "string"
727+
},
728+
"upgradeDowngradeDetails": {
729+
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails",
730+
"description": "Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription."
727731
}
728732
},
729733
"type": "object"
@@ -759,6 +763,31 @@
759763
},
760764
"type": "object"
761765
},
766+
"GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails": {
767+
"description": "Details about the previous subscription that this new subscription upgrades/downgrades from.",
768+
"id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails",
769+
"properties": {
770+
"billingCycleSpec": {
771+
"description": "Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.",
772+
"enum": [
773+
"BILLING_CYCLE_SPEC_UNSPECIFIED",
774+
"BILLING_CYCLE_SPEC_ALIGN_WITH_PREVIOUS_SUBSCRIPTION",
775+
"BILLING_CYCLE_SPEC_START_IMMEDIATELY"
776+
],
777+
"enumDescriptions": [
778+
"Billing cycle spec is not specified.",
779+
"The billing cycle of the new subscription aligns with the previous subscription it upgrades or downgrades from.",
780+
"The billing cycle of the new subscription starts immediately."
781+
],
782+
"type": "string"
783+
},
784+
"previousSubscriptionId": {
785+
"description": "Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.",
786+
"type": "string"
787+
}
788+
},
789+
"type": "object"
790+
},
762791
"GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest": {
763792
"description": "Request to revoke a cancellation request.",
764793
"id": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest",

0 commit comments

Comments
 (0)