@maxim_mazurok/gapi.client.paymentsresellersubscription-v1 0.1.20251007 → 0.1.20251026
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.
- package/index.d.ts +90 -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:
|
|
12
|
+
// Revision: 20251026
|
|
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;
|
|
@@ -154,6 +160,12 @@ declare namespace gapi.client {
|
|
|
154
160
|
createIntent?: CreateSubscriptionIntent;
|
|
155
161
|
/** The request to entitle a subscription. */
|
|
156
162
|
entitleIntent?: EntitleSubscriptionIntent;
|
|
163
|
+
/** Optional. The additional features for the intent. */
|
|
164
|
+
intentOptions?: IntentPayloadIntentOptions;
|
|
165
|
+
}
|
|
166
|
+
interface IntentPayloadIntentOptions {
|
|
167
|
+
/** Optional. If true, Google may use a different product and promotion id from the ones in the `create_intent` based on the user's eligibility. Only applicable for certain YouTube free trial offers. */
|
|
168
|
+
enableOfferOverride?: boolean;
|
|
157
169
|
}
|
|
158
170
|
interface ListProductsResponse {
|
|
159
171
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. */
|
|
@@ -249,7 +261,10 @@ declare namespace gapi.client {
|
|
|
249
261
|
/** Output only. 2-letter ISO region code where the product is available in. Ex. "US". */
|
|
250
262
|
regionCode?: string;
|
|
251
263
|
}
|
|
252
|
-
interface ResumeSubscriptionRequest {
|
|
264
|
+
interface ResumeSubscriptionRequest {
|
|
265
|
+
/** Optional. The cycle options for the subscription. */
|
|
266
|
+
cycleOptions?: CycleOptions;
|
|
267
|
+
}
|
|
253
268
|
interface ResumeSubscriptionResponse {
|
|
254
269
|
/** The resumed subscription resource. */
|
|
255
270
|
subscription?: Subscription;
|
|
@@ -520,6 +535,70 @@ declare namespace gapi.client {
|
|
|
520
535
|
uploadType?: string;
|
|
521
536
|
}): Request<ListPromotionsResponse>;
|
|
522
537
|
}
|
|
538
|
+
interface LineItemsResource {
|
|
539
|
+
/** Updates a line item of a subscription. It should be autenticated with a service account. */
|
|
540
|
+
patch(request: {
|
|
541
|
+
/** V1 error format. */
|
|
542
|
+
'$.xgafv'?: string;
|
|
543
|
+
/** OAuth access token. */
|
|
544
|
+
access_token?: string;
|
|
545
|
+
/** Data format for response. */
|
|
546
|
+
alt?: string;
|
|
547
|
+
/** JSONP */
|
|
548
|
+
callback?: string;
|
|
549
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
550
|
+
fields?: string;
|
|
551
|
+
/** 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. */
|
|
552
|
+
key?: string;
|
|
553
|
+
/** Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem} */
|
|
554
|
+
name: string;
|
|
555
|
+
/** OAuth 2.0 token for the current user. */
|
|
556
|
+
oauth_token?: string;
|
|
557
|
+
/** Returns response with indentations and line breaks. */
|
|
558
|
+
prettyPrint?: boolean;
|
|
559
|
+
/** 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. */
|
|
560
|
+
quotaUser?: string;
|
|
561
|
+
/** 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` */
|
|
562
|
+
updateMask?: string;
|
|
563
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
564
|
+
upload_protocol?: string;
|
|
565
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
566
|
+
uploadType?: string;
|
|
567
|
+
/** Request body */
|
|
568
|
+
resource: SubscriptionLineItem;
|
|
569
|
+
}): Request<SubscriptionLineItem>;
|
|
570
|
+
patch(
|
|
571
|
+
request: {
|
|
572
|
+
/** V1 error format. */
|
|
573
|
+
'$.xgafv'?: string;
|
|
574
|
+
/** OAuth access token. */
|
|
575
|
+
access_token?: string;
|
|
576
|
+
/** Data format for response. */
|
|
577
|
+
alt?: string;
|
|
578
|
+
/** JSONP */
|
|
579
|
+
callback?: string;
|
|
580
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
581
|
+
fields?: string;
|
|
582
|
+
/** 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. */
|
|
583
|
+
key?: string;
|
|
584
|
+
/** Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem} */
|
|
585
|
+
name: string;
|
|
586
|
+
/** OAuth 2.0 token for the current user. */
|
|
587
|
+
oauth_token?: string;
|
|
588
|
+
/** Returns response with indentations and line breaks. */
|
|
589
|
+
prettyPrint?: boolean;
|
|
590
|
+
/** 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. */
|
|
591
|
+
quotaUser?: string;
|
|
592
|
+
/** 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` */
|
|
593
|
+
updateMask?: string;
|
|
594
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
595
|
+
upload_protocol?: string;
|
|
596
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
597
|
+
uploadType?: string;
|
|
598
|
+
},
|
|
599
|
+
body: SubscriptionLineItem,
|
|
600
|
+
): Request<SubscriptionLineItem>;
|
|
601
|
+
}
|
|
523
602
|
interface SubscriptionsResource {
|
|
524
603
|
/** 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
604
|
cancel(request: {
|
|
@@ -794,6 +873,10 @@ declare namespace gapi.client {
|
|
|
794
873
|
alt?: string;
|
|
795
874
|
/** JSONP */
|
|
796
875
|
callback?: string;
|
|
876
|
+
/** number of duration units to be included. */
|
|
877
|
+
'cycleOptions.initialCycleDuration.count'?: number;
|
|
878
|
+
/** The unit used for the duration */
|
|
879
|
+
'cycleOptions.initialCycleDuration.unit'?: string;
|
|
797
880
|
/** Selector specifying which fields to include in a partial response. */
|
|
798
881
|
fields?: string;
|
|
799
882
|
/** 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 +908,10 @@ declare namespace gapi.client {
|
|
|
825
908
|
alt?: string;
|
|
826
909
|
/** JSONP */
|
|
827
910
|
callback?: string;
|
|
911
|
+
/** number of duration units to be included. */
|
|
912
|
+
'cycleOptions.initialCycleDuration.count'?: number;
|
|
913
|
+
/** The unit used for the duration */
|
|
914
|
+
'cycleOptions.initialCycleDuration.unit'?: string;
|
|
828
915
|
/** Selector specifying which fields to include in a partial response. */
|
|
829
916
|
fields?: string;
|
|
830
917
|
/** 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 +1107,7 @@ declare namespace gapi.client {
|
|
|
1020
1107
|
},
|
|
1021
1108
|
body: UndoCancelSubscriptionRequest,
|
|
1022
1109
|
): Request<UndoCancelSubscriptionResponse>;
|
|
1110
|
+
lineItems: LineItemsResource;
|
|
1023
1111
|
}
|
|
1024
1112
|
interface UserSessionsResource {
|
|
1025
1113
|
/** 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