@maxim_mazurok/gapi.client.cloudchannel-v1 0.0.20230514 → 0.0.20230516

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +22 -1
  2. package/package.json +1 -1
  3. package/tests.ts +5 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://cloudchannel.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230514
12
+ // Revision: 20230516
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -391,6 +391,12 @@ declare namespace gapi.client {
391
391
  string;
392
392
  }
393
393
  interface GoogleCloudChannelV1ChangeOfferRequest {
394
+ /**
395
+ * Optional. The billing account resource name that is used to pay for this entitlement when setting up billing on a trial subscription. This field is only relevant for multi-currency
396
+ * accounts. It should be left empty for single currency accounts.
397
+ */
398
+ billingAccount?:
399
+ string;
394
400
  /** Required. New Offer. Format: accounts/{account_id}/offers/{offer_id}. */
395
401
  offer?:
396
402
  string;
@@ -973,6 +979,12 @@ declare namespace gapi.client {
973
979
  string;
974
980
  }
975
981
  interface GoogleCloudChannelV1ListTransferableOffersRequest {
982
+ /**
983
+ * Optional. The Billing Account to look up Offers for. Format: accounts/{account_id}/billing_accounts/{billing_account_id}. This field is only relevant for multi-currency accounts. It
984
+ * should be left empty for single currency accounts.
985
+ */
986
+ billingAccount?:
987
+ string;
976
988
  /** Customer's Cloud Identity ID */
977
989
  cloudIdentityId?:
978
990
  string;
@@ -4424,12 +4436,21 @@ declare namespace gapi.client {
4424
4436
  /** JSONP */
4425
4437
  callback?:
4426
4438
  string;
4439
+ /**
4440
+ * Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format:
4441
+ * accounts/{account_id}/billing_accounts/{billing_account_id}. This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.
4442
+ */
4443
+ "changeOfferPurchase.billingAccount"?:
4444
+ string;
4427
4445
  /** Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
4428
4446
  "changeOfferPurchase.entitlement"?:
4429
4447
  string;
4430
4448
  /** Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id} */
4431
4449
  "changeOfferPurchase.newSku"?:
4432
4450
  string;
4451
+ /** Optional. Billing account that the result should be restricted to. Format: accounts/{account_id}/billing_accounts/{billing_account_id}. */
4452
+ "createEntitlementPurchase.billingAccount"?:
4453
+ string;
4433
4454
  /** Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}. */
4434
4455
  "createEntitlementPurchase.sku"?:
4435
4456
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudchannel-v1",
3
- "version": "0.0.20230514",
3
+ "version": "0.0.20230516",
4
4
  "description": "TypeScript typings for Cloud Channel API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230514
6
+ // Revision: 20230516
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -62,6 +62,7 @@ gapi.load('client', async () => {
62
62
  await gapi.client.cloudchannel.accounts.listTransferableOffers({
63
63
  parent: "Test string",
64
64
  }, {
65
+ billingAccount: "Test string",
65
66
  cloudIdentityId: "Test string",
66
67
  customerName: "Test string",
67
68
  languageCode: "Test string",
@@ -596,8 +597,10 @@ gapi.load('client', async () => {
596
597
  * belong to the reseller * INVALID_ARGUMENT: Required request parameters are missing or invalid.
597
598
  */
598
599
  await gapi.client.cloudchannel.accounts.customers.listPurchasableOffers({
600
+ "changeOfferPurchase.billingAccount": "Test string",
599
601
  "changeOfferPurchase.entitlement": "Test string",
600
602
  "changeOfferPurchase.newSku": "Test string",
603
+ "createEntitlementPurchase.billingAccount": "Test string",
601
604
  "createEntitlementPurchase.sku": "Test string",
602
605
  customer: "Test string",
603
606
  languageCode: "Test string",
@@ -1027,6 +1030,7 @@ gapi.load('client', async () => {
1027
1030
  await gapi.client.cloudchannel.accounts.customers.entitlements.changeOffer({
1028
1031
  name: "Test string",
1029
1032
  }, {
1033
+ billingAccount: "Test string",
1030
1034
  offer: "Test string",
1031
1035
  parameters: [
1032
1036
  {