-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
paymentsresellersubscription.v1.json
1508 lines (1508 loc) 路 56.3 KB
/
paymentsresellersubscription.v1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"auth": {
"oauth2": {
"scopes": {
"openid": {
"description": "Associate you with your personal info on Google"
}
}
}
},
"basePath": "",
"baseUrl": "https://paymentsresellersubscription.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Payments Reseller Subscription",
"description": "",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/payments/reseller/subscription/",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "paymentsresellersubscription:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://paymentsresellersubscription.mtls.googleapis.com/",
"name": "paymentsresellersubscription",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "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.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "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.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"partners": {
"resources": {
"products": {
"methods": {
"list": {
"description": "To retrieve the products that can be resold by the partner. It should be autenticated with a service account.",
"flatPath": "v1/partners/{partnersId}/products",
"httpMethod": "GET",
"id": "paymentsresellersubscription.partners.products.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Specifies the filters for the product results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of products to return. The service may return fewer than this value. If unspecified, at most 50 products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A page token, received from a previous `ListProducts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProducts` must match the call that provided the page token.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The parent, the partner that can resell. Format: partners/{partner}",
"location": "path",
"pattern": "^partners/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/products",
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse"
},
"scopes": [
"openid"
]
}
}
},
"promotions": {
"methods": {
"findEligible": {
"description": "To find eligible promotions for the current user. The API requires user authorization via OAuth. The bare minimum oauth scope `openid` is sufficient, which will skip the consent screen.",
"flatPath": "v1/partners/{partnersId}/promotions:findEligible",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.promotions.findEligible",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The parent, the partner that can resell. Format: partners/{partner}",
"location": "path",
"pattern": "^partners/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/promotions:findEligible",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse"
},
"scopes": [
"openid"
]
},
"list": {
"description": "To retrieve the promotions, such as free trial, that can be used by the partner. It should be autenticated with a service account.",
"flatPath": "v1/partners/{partnersId}/promotions",
"httpMethod": "GET",
"id": "paymentsresellersubscription.partners.promotions.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of promotions to return. The service may return fewer than this value. If unspecified, at most 50 products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A page token, received from a previous `ListPromotions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromotions` must match the call that provided the page token.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The parent, the partner that can resell. Format: partners/{partner}",
"location": "path",
"pattern": "^partners/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/promotions",
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse"
},
"scopes": [
"openid"
]
}
}
},
"subscriptions": {
"methods": {
"cancel": {
"description": "Used by partners to cancel 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.",
"flatPath": "v1/partners/{partnersId}/subscriptions/{subscriptionsId}:cancel",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.subscriptions.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the subscription resource to be cancelled. It will have the format of \"partners/{partner_id}/subscriptions/{subscription_id}\"",
"location": "path",
"pattern": "^partners/[^/]+/subscriptions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse"
},
"scopes": [
"openid"
]
},
"create": {
"description": "Used by partners to create a subscription for their customers. The created subscription is associated with the end user inferred from the end user credentials. This API must be authorized by the end user using OAuth.",
"flatPath": "v1/partners/{partnersId}/subscriptions",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.subscriptions.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The parent resource name, which is the identifier of the partner. It will have the format of \"partners/{partner_id}\".",
"location": "path",
"pattern": "^partners/[^/]+$",
"required": true,
"type": "string"
},
"subscriptionId": {
"description": "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.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/subscriptions",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription"
},
"scopes": [
"openid"
]
},
"entitle": {
"description": "Used by partners to entitle a previously provisioned subscription to the current end user. The end user identity is inferred from the authorized credential of the request. This API must be authorized by the end user using OAuth.",
"flatPath": "v1/partners/{partnersId}/subscriptions/{subscriptionsId}:entitle",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.subscriptions.entitle",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the subscription resource that is entitled to the current end user. It will have the format of \"partners/{partner_id}/subscriptions/{subscription_id}\"",
"location": "path",
"pattern": "^partners/[^/]+/subscriptions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:entitle",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse"
},
"scopes": [
"openid"
]
},
"extend": {
"description": "[Opt-in only] Most partners should be on auto-extend by default. Used by partners to extend a subscription service for their customers on an ongoing basis for the subscription to remain active and renewable. It should be called directly by the partner using service accounts.",
"flatPath": "v1/partners/{partnersId}/subscriptions/{subscriptionsId}:extend",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.subscriptions.extend",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the subscription resource to be extended. It will have the format of \"partners/{partner_id}/subscriptions/{subscription_id}\".",
"location": "path",
"pattern": "^partners/[^/]+/subscriptions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:extend",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse"
},
"scopes": [
"openid"
]
},
"get": {
"description": "Used by partners to get a subscription by id. It should be called directly by the partner using service accounts.",
"flatPath": "v1/partners/{partnersId}/subscriptions/{subscriptionsId}",
"httpMethod": "GET",
"id": "paymentsresellersubscription.partners.subscriptions.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the subscription resource to retrieve. It will have the format of \"partners/{partner_id}/subscriptions/{subscription_id}\"",
"location": "path",
"pattern": "^partners/[^/]+/subscriptions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription"
},
"scopes": [
"openid"
]
},
"provision": {
"description": "Used by partners to provision a subscription for their customers. This creates a subscription without associating it with the end user account. EntitleSubscription must be called separately using OAuth in order for the end user account to be associated with the subscription. It should be called directly by the partner using service accounts.",
"flatPath": "v1/partners/{partnersId}/subscriptions:provision",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.subscriptions.provision",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The parent resource name, which is the identifier of the partner. It will have the format of \"partners/{partner_id}\".",
"location": "path",
"pattern": "^partners/[^/]+$",
"required": true,
"type": "string"
},
"subscriptionId": {
"description": "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.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/subscriptions:provision",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription"
},
"scopes": [
"openid"
]
},
"undoCancel": {
"description": "Used by partners to revoke the pending cancellation of a subscription, which is currently in `STATE_CANCEL_AT_END_OF_CYCLE` state. If the subscription is already cancelled, the request will fail. It should be called directly by the partner using service accounts.",
"flatPath": "v1/partners/{partnersId}/subscriptions/{subscriptionsId}:undoCancel",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.subscriptions.undoCancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the subscription resource whose pending cancellation needs to be undone. It will have the format of \"partners/{partner_id}/subscriptions/{subscription_id}\"",
"location": "path",
"pattern": "^partners/[^/]+/subscriptions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:undoCancel",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse"
},
"scopes": [
"openid"
]
}
}
}
}
}
},
"revision": "20240407",
"rootUrl": "https://paymentsresellersubscription.googleapis.com/",
"schemas": {
"GoogleCloudPaymentsResellerSubscriptionV1Amount": {
"description": "Describes the amount unit including the currency code.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1Amount",
"properties": {
"amountMicros": {
"description": "Required. Amount in micros (1_000_000 micros = 1 currency unit)",
"format": "int64",
"type": "string"
},
"currencyCode": {
"description": "Required. Currency codes in accordance with [ISO-4217 Currency Codes] (https://en.wikipedia.org/wiki/ISO_4217). For example, USD.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest": {
"description": "Request to cancel a subscription.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest",
"properties": {
"cancelImmediately": {
"description": "Optional. If true, Google will cancel the subscription immediately, and may or may not (based on the contract) issue a prorated refund for the remainder of the billing cycle. Otherwise, Google defers the cancelation at renewal_time, and will not issue a refund.",
"type": "boolean"
},
"cancellationReason": {
"description": "Specifies the reason for the cancellation.",
"enum": [
"CANCELLATION_REASON_UNSPECIFIED",
"CANCELLATION_REASON_FRAUD",
"CANCELLATION_REASON_REMORSE",
"CANCELLATION_REASON_ACCIDENTAL_PURCHASE",
"CANCELLATION_REASON_PAST_DUE",
"CANCELLATION_REASON_ACCOUNT_CLOSED",
"CANCELLATION_REASON_UPGRADE_DOWNGRADE",
"CANCELLATION_REASON_USER_DELINQUENCY",
"CANCELLATION_REASON_SYSTEM_ERROR",
"CANCELLATION_REASON_SYSTEM_CANCEL",
"CANCELLATION_REASON_OTHER"
],
"enumDescriptions": [
"Reason is unspecified.",
"Fraudualant transaction.",
"Buyer's remorse.",
"Accidential purchase.",
"Payment is past due.",
"Used for notification only, do not use in Cancel API. User account closed.",
"Used for notification only, do not use in Cancel API. Cancellation due to upgrade or downgrade.",
"Cancellation due to user delinquency",
"Used for notification only, do not use in Cancel API. Cancellation due to an unrecoverable system error.",
"Used for notification only, do not use in Cancel API. The subscription is cancelled by Google automatically since it is no longer valid.",
"Other reason."
],
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse": {
"description": "Response that contains the cancelled subscription resource.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse",
"properties": {
"subscription": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription",
"description": "The cancelled subscription resource."
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1Duration": {
"description": "Describes the length of a period of a time.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1Duration",
"properties": {
"count": {
"description": "number of duration units to be included.",
"format": "int32",
"type": "integer"
},
"unit": {
"description": "The unit used for the duration",
"enum": [
"UNIT_UNSPECIFIED",
"MONTH",
"DAY",
"HOUR"
],
"enumDescriptions": [
"Default value, reserved as an invalid or an unexpected value.",
"Unit of a calendar month.",
"Unit of a day.",
"Unit of an hour. It is used for testing."
],
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest": {
"description": "Partner request for entitling the previously provisioned subscription to an end user. The end user identity is inferred from the request OAuth context.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest",
"properties": {
"lineItemEntitlementDetails": {
"description": "Optional. The line items to be entitled. If unspecified, all line items will be entitled.",
"items": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails": {
"description": "The details of the line item to be entitled.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails",
"properties": {
"lineItemIndex": {
"description": "Required. The index of the line item to be entitled.",
"format": "int32",
"type": "integer"
},
"products": {
"description": "Optional. Only applicable if the line item corresponds to a hard bundle. Product resource names that identify the bundle elements to be entitled in the line item. If unspecified, all bundle elements will be entitled. The format is 'partners/{partner_id}/products/{product_id}'.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse": {
"description": "Response that contains the entitled subscription resource.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse",
"properties": {
"subscription": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription",
"description": "The subscription that has user linked to it."
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest": {
"description": "Request message for extending a Subscription resource. A new recurrence will be made based on the subscription schedule defined by the original product.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest",
"properties": {
"extension": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Extension",
"description": "Required. Specifies details of the extension. Currently, the duration of the extension must be exactly one billing cycle of the original subscription."
},
"requestId": {
"description": "Required. Restricted to 36 ASCII characters. A random UUID is recommended. The idempotency key for the request. The ID generation logic is controlled by the partner. request_id should be the same as on retries of the same request. A different request_id must be used for a extension of a different cycle.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse": {
"description": "Response that contains the timestamps after the extension.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse",
"properties": {
"cycleEndTime": {
"description": "The time at which the subscription is expected to be extended, in ISO 8061 format. UTC timezone. Example, \"cycleEndTime\":\"2019-08-31T17:28:54.564Z\"",
"format": "google-datetime",
"type": "string"
},
"freeTrialEndTime": {
"description": "End of the free trial period, in ISO 8061 format. UTC timezone. Example, \"freeTrialEndTime\":\"2019-08-31T17:28:54.564Z\" This time will be set the same as initial subscription creation time if no free trial period is offered to the partner.",
"format": "google-datetime",
"type": "string"
},
"renewalTime": {
"description": "Output only. The time at which the subscription is expected to be renewed by Google - a new charge will be incurred and the service entitlement will be renewed. A non-immediate cancellation will take place at this time too, before which, the service entitlement for the end user will remain valid. UTC timezone in ISO 8061 format. For example: \"2019-08-31T17:28:54.564Z\"",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1Extension": {
"description": "Describes the details of an extension request.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1Extension",
"properties": {
"duration": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration",
"description": "Required. Specifies the period of access the subscription should grant."
},
"partnerUserToken": {
"description": "Required. Identifier of the end-user in partner\u2019s system.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest": {
"description": "Request to find eligible promotions for the current user.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest",
"properties": {
"filter": {
"description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of promotions to return. The service may return fewer than this value. If unspecified, at most 50 products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.",
"format": "int32",
"type": "integer"
},
"pageToken": {
"description": "Optional. A page token, received from a previous `ListPromotions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromotions` must match the call that provided the page token.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse": {
"description": "Response containing the found promotions for the current user.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse",
"properties": {
"nextPageToken": {
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.",
"type": "string"
},
"promotions": {
"description": "The promotions for the current user.",
"items": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Promotion"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails": {
"description": "Details for a subscriptiin line item with finite billing cycles.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails",
"properties": {
"billingCycleCountLimit": {
"description": "Required. The number of a subscription line item billing cycles after which billing will stop automatically.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload": {
"description": "Payload specific to Google One products.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload",
"properties": {
"campaigns": {
"description": "Campaign attributed to sales of this subscription.",
"items": {
"type": "string"
},
"type": "array"
},
"offering": {
"description": "The type of offering the subscription was sold by the partner. e.g. VAS.",
"enum": [
"OFFERING_UNSPECIFIED",
"OFFERING_VAS_BUNDLE",
"OFFERING_VAS_STANDALONE",
"OFFERING_HARD_BUNDLE",
"OFFERING_SOFT_BUNDLE"
],
"enumDescriptions": [
"The type of partner offering is unspecified.",
"Google One product purchased as a Value added service in addition to existing partner's products. Customer pays additional amount for Google One product.",
"Google One product purchased by itself by customer as a value add service. Customer pays additional amount for Google One product.",
"Product purchased as part of a hard bundle where Google One was included with the bundle. Google One pricing is included in the bundle.",
"Purchased as part of a bundle where Google One was provided as an option. Google One pricing is included in the bundle."
],
"type": "string"
},
"salesChannel": {
"description": "The type of sales channel through which the subscription was sold.",
"enum": [
"CHANNEL_UNSPECIFIED",
"CHANNEL_RETAIL",
"CHANNEL_ONLINE_WEB",
"CHANNEL_ONLINE_ANDROID_APP",
"CHANNEL_ONLINE_IOS_APP"
],
"enumDescriptions": [
"The channel type is unspecified.",
"Sold at store.",
"Sold through partner website.",
"Sold through partner android app.",
"Sold through partner iOS app."
],
"type": "string"
},
"storeId": {
"description": "The identifier for the partner store where the subscription was sold.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse": {
"description": "Response that contains the products.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse",
"properties": {
"nextPageToken": {
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.",
"type": "string"
},
"products": {
"description": "The products for the specified partner.",
"items": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Product"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse": {
"description": "Response that contains the promotions.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse",
"properties": {
"nextPageToken": {
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.",
"type": "string"
},
"promotions": {
"description": "The promotions for the specified partner.",
"items": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Promotion"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1Location": {
"description": "Describes a location of an end user.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1Location",
"properties": {
"postalCode": {
"description": "The postal code this location refers to. Ex. \"94043\"",
"type": "string"
},
"regionCode": {
"description": "2-letter ISO region code for current content region. Ex. \u201cUS\u201d Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1Product": {
"description": "A Product resource that defines a subscription service that can be resold.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1Product",
"properties": {
"bundleDetails": {
"$ref": "ProductBundleDetails",
"description": "Output only. Output Only. Specifies the details for a bundle product.",
"readOnly": true
},
"finiteBillingCycleDetails": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails",
"description": "Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely."
},
"name": {
"description": "Identifier. Response only. Resource name of the product. It will have the format of \"partners/{partner_id}/products/{product_id}\"",
"type": "string"
},
"priceConfigs": {
"description": "Output only. Price configs for the product in the available regions.",
"items": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig"
},
"readOnly": true,
"type": "array"
},
"productType": {
"description": "Output only. Output Only. Specifies the type of the product.",
"enum": [
"PRODUCT_TYPE_UNSPECIFIED",
"PRODUCT_TYPE_SUBSCRIPTION",
"PRODUCT_TYPE_BUNDLE_SUBSCRIPTION"
],
"enumDescriptions": [
"Unspecified. It's reserved as an unexpected value, should not be used.",
"The product is a subscription.",
"The product is a bundled subscription plan, which includes multiple subscription elements."
],
"readOnly": true,
"type": "string"
},
"regionCodes": {
"description": "Output only. 2-letter ISO region code where the product is available in. Ex. \"US\" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1",
"items": {
"type": "string"
},
"readOnly": true,
"type": "array"
},
"subscriptionBillingCycleDuration": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration",
"description": "Output only. Specifies the length of the billing cycle of the subscription.",
"readOnly": true
},
"titles": {
"description": "Output only. Localized human readable name of the product.",
"items": {
"$ref": "GoogleTypeLocalizedText"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement": {
"description": "The individual product that is included in the bundle.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement",
"properties": {
"product": {
"description": "Required. Output only. Product resource name that identifies the bundle element. The format is 'partners/{partner_id}/products/{product_id}'.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ProductPayload": {
"description": "Specifies product specific payload.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ProductPayload",
"properties": {
"googleOnePayload": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload",
"description": "Product-specific payloads. Payload specific to Google One products."
},
"youtubePayload": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload",
"description": "Payload specific to Youtube products."
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig": {
"description": "Configs the prices in an available region.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig",
"properties": {
"amount": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Amount",
"description": "Output only. The price in the region.",
"readOnly": true
},
"regionCode": {
"description": "Output only. 2-letter ISO region code where the product is available in. Ex. \"US\".",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1Promotion": {
"description": "A Promotion resource that defines a promotion for a subscription that can be resold.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1Promotion",
"properties": {
"applicableProducts": {
"description": "Output only. The product ids this promotion can be applied to.",
"items": {
"type": "string"
},
"readOnly": true,
"type": "array"
},
"endTime": {
"description": "Optional. Specifies the end time (exclusive) of the period that the promotion is available in. If unset, the promotion is available indefinitely.",
"format": "google-datetime",
"type": "string"
},
"freeTrialDuration": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration",
"description": "Optional. Specifies the duration of the free trial of the subscription when promotion_type is PROMOTION_TYPE_FREE_TRIAL"
},
"introductoryPricingDetails": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails",
"description": "Optional. Specifies the introductory pricing details when the promotion_type is PROMOTION_TYPE_INTRODUCTORY_PRICING."
},
"name": {
"description": "Identifier. Response only. Resource name of the subscription promotion. It will have the format of \"partners/{partner_id}/promotion/{promotion_id}\"",
"type": "string"
},
"promotionType": {
"description": "Output only. Output Only. Specifies the type of the promotion.",
"enum": [
"PROMOTION_TYPE_UNSPECIFIED",
"PROMOTION_TYPE_FREE_TRIAL",
"PROMOTION_TYPE_INTRODUCTORY_PRICING"
],
"enumDescriptions": [
"The promotion type is unspecified.",
"The promotion is a free trial.",
"The promotion is a reduced introductory pricing."
],
"readOnly": true,
"type": "string"
},
"regionCodes": {
"description": "Output only. 2-letter ISO region code where the promotion is available in. Ex. \"US\" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1",
"items": {
"type": "string"
},
"readOnly": true,
"type": "array"
},
"startTime": {
"description": "Optional. Specifies the start time (inclusive) of the period that the promotion is available in.",
"format": "google-datetime",
"type": "string"
},
"titles": {
"description": "Output only. Localized human readable name of the promotion.",
"items": {
"$ref": "GoogleTypeLocalizedText"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails": {
"description": "The details of a introductory pricing promotion.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails",
"properties": {
"introductoryPricingSpecs": {
"description": "Output only. Specifies the introductory pricing periods.",
"items": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec": {
"description": "The duration of an introductory pricing promotion.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec",
"properties": {
"discountAmount": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Amount",
"description": "Output only. The discount amount. The value is positive.",
"readOnly": true
},
"discountRatioMicros": {
"description": "Output only. The discount percentage in micros. For example, 50,000 represents 5%.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"recurrenceCount": {
"description": "Output only. Output Only. The duration of an introductory offer in billing cycles.",
"format": "int32",
"readOnly": true,
"type": "integer"
},