[英]Creating G Suite subscription
While creating a subscription for customer using "G Suite Reseller API" POST https://www.googleapis.com/apps/reseller/v1/customers/customerId/subscriptions can we specify : plan.planName as "ANNUAL_MONTHLY_PAY", and renewalSettings.renewalType as "AUTO_RENEW_YEARLY_PAY" 在使用“ G Suite经销商API”为客户创建订阅时,POST https://www.googleapis.com/apps/reseller/v1/customers/customerId/subscriptions可以将plan.planName指定为“ ANNUAL_MONTHLY_PAY”,并指定renewalSettings。 renewalType为“ AUTO_RENEW_YEARLY_PAY”
or the renewalType should be "AUTO_RENEW_MONTHLY_PAY" if planName is "ANNUAL_MONTHLY_PAY" ? 或如果planName为“ ANNUAL_MONTHLY_PAY”,则renewalType应该为“ AUTO_RENEW_MONTHLY_PAY”吗? currently I do not have test reseller account hence not tested yet.
目前我没有测试经销商帐户,因此尚未测试。
Thanks 谢谢
I think so as GSuite Reseller API has this list of available plans : 我认为GSuite代理商API具有以下可用计划列表:
ANNUAL_MONTHLY_PAY
— Annual commitment with monthly payments (more info) ANNUAL_MONTHLY_PAY
每月付款的年度承诺(更多信息) ANNUAL_YEARLY_PAY
— Annual commitment with one yearly payment (more info) ANNUAL_YEARLY_PAY
每年支付一次的年度承诺(更多信息) FLEXIBLE
— Non-commitment plan with monthly payments (more info) TRIAL
— Free trial plan Trial
length is variable up to 30 days max Gmail daily sending limit set to 500 messages per user FLEXIBLE
-每月付款的非承诺计划(更多信息) TRIAL
-免费试用计划Trial
最多可更改30天,每天Gmail的最大发送限制为每位用户500封邮件 FREE
— Free plan only for Cloud Identity Free Edition subscriptions FREE
-仅针对Cloud Identity Free Edition订阅的免费计划 And for renewalSettings.renewalType these are the accepted values: 对于renewalSettings.renewalType,这些是可接受的值:
AUTO_RENEW_MONTHLY_PAY
": At the end of an annual commitment plan's interval, automatically renew the subscription's plan with the same number of user licenses. AUTO_RENEW_MONTHLY_PAY
”:在年度承诺计划的时间间隔结束时,使用相同数量的用户许可自动续订订阅计划。 AUTO_RENEW_YEARLY_PAY
": At the end of an annual commitment plan's interval, automatically renew the subscription's plan with the same number of user licenses. AUTO_RENEW_YEARLY_PAY
”:在年度承诺计划的时间间隔结束时,使用相同数量的用户许可证自动续订订阅计划。 CANCEL
": At the end of an annual commitment plan's interval, the customer's account is suspended. CANCEL
”:在年度承诺计划的时间间隔结束时,客户的帐户将被暂停。 For a 30-day free trial, if a payment plan is not set up for a trial subscription and at the end of the trial, the trial subscription is cancelled. RENEW_CURRENT_USERS_MONTHLY_PAY
": At the end of an annual commitment plan's interval, renew the subscription's plan but use the total number of current active user licenses. RENEW_CURRENT_USERS_MONTHLY_PAY
”:在年度承诺计划的时间间隔结束时,续订订阅计划,但使用当前活动用户许可证的总数。 RENEW_CURRENT_USERS_YEARLY_PAY
": At the end of an annual commitment plan's interval, renew the subscription's plan but use the total number of current active user licenses. RENEW_CURRENT_USERS_YEARLY_PAY
”:在年度承诺计划的时间间隔结束时,续订订阅计划,但使用当前活动用户许可证的总数。 SWITCH_TO_PAY_AS_YOU_GO
": At the end of an annual commitment plan's interval, change the annual commitment plan to a flexible plan. SWITCH_TO_PAY_AS_YOU_GO
”:在年度承诺计划间隔结束时,将年度承诺计划更改为灵活计划。 As long as the values/property was mentioned in the docs, it can be used. 只要在文档中提到了值/属性,就可以使用它。
If the plan.planName
is ANNUAL_MONTHLY_PAY
, the .renewalType
must be AUTO_RENEW_MONTHLY_PAY
(As this is for Annual Plans with monthly payments) 如果
plan.planName
为ANNUAL_MONTHLY_PAY
,则.renewalType
必须为AUTO_RENEW_MONTHLY_PAY
(因为这是按月付款的包年AUTO_RENEW_MONTHLY_PAY
)
If the plan.planName
is ANNUAL_YEARLY_PAY
, the .renwalType
must be AUTO_RENEW_YEARLY_PAY
(As this of for the Annual Plan with yearly payments) 如果
plan.planName
为ANNUAL_YEARLY_PAY
,则.renwalType
必须为AUTO_RENEW_YEARLY_PAY
(对于具有年度付款的包年套餐而言)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.