@maxim_mazurok/gapi.client.paymentsresellersubscription-v1 0.1.20251007 → 0.1.20251022

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 (2) hide show
  1. package/index.d.ts +84 -2
  2. package/package.json +1 -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://paymentsresellersubscription.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20251007
12
+ // Revision: 20251022
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -48,6 +48,8 @@ declare namespace gapi.client {
48
48
  subscription?: Subscription;
49
49
  }
50
50
  interface CreateSubscriptionIntent {
51
+ /** Optional. The cycle options for the subscription. */
52
+ cycleOptions?: CycleOptions;
51
53
  /** Required. The parent resource name, which is the identifier of the partner. */
52
54
  parent?: string;
53
55
  /** Required. The Subscription to be created. */
@@ -55,6 +57,10 @@ declare namespace gapi.client {
55
57
  /** 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. */
56
58
  subscriptionId?: string;
57
59
  }
60
+ interface CycleOptions {
61
+ /** Optional. The duration of the initial cycle. Only `DAY` is supported. If set, Google will start the subscription with this initial cycle duration starting at the request time (see available methods below). A prorated charge will be applied. This option is available to the following methods: - partners.subscriptions.provision - partners.subscriptions.resume - partners.userSessions.generate */
62
+ initialCycleDuration?: Duration;
63
+ }
58
64
  interface Duration {
59
65
  /** number of duration units to be included. */
60
66
  count?: number;
@@ -249,7 +255,10 @@ declare namespace gapi.client {
249
255
  /** Output only. 2-letter ISO region code where the product is available in. Ex. "US". */
250
256
  regionCode?: string;
251
257
  }
252
- interface ResumeSubscriptionRequest {}
258
+ interface ResumeSubscriptionRequest {
259
+ /** Optional. The cycle options for the subscription. */
260
+ cycleOptions?: CycleOptions;
261
+ }
253
262
  interface ResumeSubscriptionResponse {
254
263
  /** The resumed subscription resource. */
255
264
  subscription?: Subscription;
@@ -520,6 +529,70 @@ declare namespace gapi.client {
520
529
  uploadType?: string;
521
530
  }): Request<ListPromotionsResponse>;
522
531
  }
532
+ interface LineItemsResource {
533
+ /** Updates a line item of a subscription. It should be autenticated with a service account. */
534
+ patch(request: {
535
+ /** V1 error format. */
536
+ '$.xgafv'?: string;
537
+ /** OAuth access token. */
538
+ access_token?: string;
539
+ /** Data format for response. */
540
+ alt?: string;
541
+ /** JSONP */
542
+ callback?: string;
543
+ /** Selector specifying which fields to include in a partial response. */
544
+ fields?: string;
545
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
546
+ key?: string;
547
+ /** Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem} */
548
+ name: string;
549
+ /** OAuth 2.0 token for the current user. */
550
+ oauth_token?: string;
551
+ /** Returns response with indentations and line breaks. */
552
+ prettyPrint?: boolean;
553
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
554
+ quotaUser?: string;
555
+ /** Required. The list of fields to update. Only a limited set of fields can be updated. The allowed fields are the following: - `product_payload.googleHomePayload.googleStructureId` */
556
+ updateMask?: string;
557
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
558
+ upload_protocol?: string;
559
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
560
+ uploadType?: string;
561
+ /** Request body */
562
+ resource: SubscriptionLineItem;
563
+ }): Request<SubscriptionLineItem>;
564
+ patch(
565
+ request: {
566
+ /** V1 error format. */
567
+ '$.xgafv'?: string;
568
+ /** OAuth access token. */
569
+ access_token?: string;
570
+ /** Data format for response. */
571
+ alt?: string;
572
+ /** JSONP */
573
+ callback?: string;
574
+ /** Selector specifying which fields to include in a partial response. */
575
+ fields?: string;
576
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
577
+ key?: string;
578
+ /** Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem} */
579
+ name: string;
580
+ /** OAuth 2.0 token for the current user. */
581
+ oauth_token?: string;
582
+ /** Returns response with indentations and line breaks. */
583
+ prettyPrint?: boolean;
584
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
585
+ quotaUser?: string;
586
+ /** Required. The list of fields to update. Only a limited set of fields can be updated. The allowed fields are the following: - `product_payload.googleHomePayload.googleStructureId` */
587
+ updateMask?: string;
588
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
589
+ upload_protocol?: string;
590
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
591
+ uploadType?: string;
592
+ },
593
+ body: SubscriptionLineItem,
594
+ ): Request<SubscriptionLineItem>;
595
+ }
523
596
  interface SubscriptionsResource {
524
597
  /** Cancels a subscription service either immediately or by the end of the current billing cycle for their customers. It should be called directly by the partner using service accounts. */
525
598
  cancel(request: {
@@ -794,6 +867,10 @@ declare namespace gapi.client {
794
867
  alt?: string;
795
868
  /** JSONP */
796
869
  callback?: string;
870
+ /** number of duration units to be included. */
871
+ 'cycleOptions.initialCycleDuration.count'?: number;
872
+ /** The unit used for the duration */
873
+ 'cycleOptions.initialCycleDuration.unit'?: string;
797
874
  /** Selector specifying which fields to include in a partial response. */
798
875
  fields?: string;
799
876
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -825,6 +902,10 @@ declare namespace gapi.client {
825
902
  alt?: string;
826
903
  /** JSONP */
827
904
  callback?: string;
905
+ /** number of duration units to be included. */
906
+ 'cycleOptions.initialCycleDuration.count'?: number;
907
+ /** The unit used for the duration */
908
+ 'cycleOptions.initialCycleDuration.unit'?: string;
828
909
  /** Selector specifying which fields to include in a partial response. */
829
910
  fields?: string;
830
911
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -1020,6 +1101,7 @@ declare namespace gapi.client {
1020
1101
  },
1021
1102
  body: UndoCancelSubscriptionRequest,
1022
1103
  ): Request<UndoCancelSubscriptionResponse>;
1104
+ lineItems: LineItemsResource;
1023
1105
  }
1024
1106
  interface UserSessionsResource {
1025
1107
  /** This API replaces user authorized OAuth consent based APIs (Create, Entitle). Issues a timed session token for the given user intent. You can use the session token to redirect the user to Google to finish the signup flow. You can re-generate new session token repeatedly for the same request if necessary, regardless of the previous tokens being expired or not. By default, the session token is valid for 1 hour. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.paymentsresellersubscription-v1",
3
- "version": "0.1.20251007",
3
+ "version": "0.1.20251022",
4
4
  "description": "TypeScript typings for Payments Reseller Subscription API v1",
5
5
  "repository": {
6
6
  "type": "git",