google-apis-paymentsresellersubscription_v1 0.54.0 → 0.55.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/paymentsresellersubscription_v1/classes.rb +165 -159
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +2 -2
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +164 -163
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +92 -92
- metadata +2 -2
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
module PaymentsresellersubscriptionV1
|
24
24
|
|
25
25
|
# Describes the amount unit including the currency code.
|
26
|
-
class
|
26
|
+
class Amount
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
29
|
# Required. Amount in micros (1_000_000 micros = 1 currency unit)
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
end
|
50
50
|
|
51
51
|
# Request to cancel a subscription.
|
52
|
-
class
|
52
|
+
class CancelSubscriptionRequest
|
53
53
|
include Google::Apis::Core::Hashable
|
54
54
|
|
55
55
|
# Optional. If true, Google will cancel the subscription immediately, and may or
|
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
end
|
81
81
|
|
82
82
|
# Response that contains the cancelled subscription resource.
|
83
|
-
class
|
83
|
+
class CancelSubscriptionResponse
|
84
84
|
include Google::Apis::Core::Hashable
|
85
85
|
|
86
86
|
# A subscription serves as a central billing entity between an external partner
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
# fully understand the specific details, please consult the relevant contract or
|
94
94
|
# product policy.
|
95
95
|
# Corresponds to the JSON property `subscription`
|
96
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
96
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
97
97
|
attr_accessor :subscription
|
98
98
|
|
99
99
|
def initialize(**args)
|
@@ -107,7 +107,7 @@ module Google
|
|
107
107
|
end
|
108
108
|
|
109
109
|
# Intent message for creating a Subscription resource.
|
110
|
-
class
|
110
|
+
class CreateSubscriptionIntent
|
111
111
|
include Google::Apis::Core::Hashable
|
112
112
|
|
113
113
|
# Required. The parent resource name, which is the identifier of the partner.
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
# fully understand the specific details, please consult the relevant contract or
|
126
126
|
# product policy.
|
127
127
|
# Corresponds to the JSON property `subscription`
|
128
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
128
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
129
129
|
attr_accessor :subscription
|
130
130
|
|
131
131
|
# Required. Identifies the subscription resource on the Partner side. The value
|
@@ -149,7 +149,7 @@ module Google
|
|
149
149
|
end
|
150
150
|
|
151
151
|
# Describes the length of a period of a time.
|
152
|
-
class
|
152
|
+
class Duration
|
153
153
|
include Google::Apis::Core::Hashable
|
154
154
|
|
155
155
|
# number of duration units to be included.
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
end
|
175
175
|
|
176
176
|
# Intent for entitling the previously provisioned subscription to an end user.
|
177
|
-
class
|
177
|
+
class EntitleSubscriptionIntent
|
178
178
|
include Google::Apis::Core::Hashable
|
179
179
|
|
180
180
|
# Required. The name of the subscription resource that is entitled to the
|
@@ -196,13 +196,13 @@ module Google
|
|
196
196
|
|
197
197
|
# Partner request for entitling the previously provisioned subscription to an
|
198
198
|
# end user. The end user identity is inferred from the request OAuth context.
|
199
|
-
class
|
199
|
+
class EntitleSubscriptionRequest
|
200
200
|
include Google::Apis::Core::Hashable
|
201
201
|
|
202
202
|
# Optional. The line items to be entitled. If unspecified, all line items will
|
203
203
|
# be entitled.
|
204
204
|
# Corresponds to the JSON property `lineItemEntitlementDetails`
|
205
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
205
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionRequestLineItemEntitlementDetails>]
|
206
206
|
attr_accessor :line_item_entitlement_details
|
207
207
|
|
208
208
|
def initialize(**args)
|
@@ -216,7 +216,7 @@ module Google
|
|
216
216
|
end
|
217
217
|
|
218
218
|
# The details of the line item to be entitled.
|
219
|
-
class
|
219
|
+
class EntitleSubscriptionRequestLineItemEntitlementDetails
|
220
220
|
include Google::Apis::Core::Hashable
|
221
221
|
|
222
222
|
# Required. The index of the line item to be entitled.
|
@@ -244,7 +244,7 @@ module Google
|
|
244
244
|
end
|
245
245
|
|
246
246
|
# Response that contains the entitled subscription resource.
|
247
|
-
class
|
247
|
+
class EntitleSubscriptionResponse
|
248
248
|
include Google::Apis::Core::Hashable
|
249
249
|
|
250
250
|
# A subscription serves as a central billing entity between an external partner
|
@@ -257,7 +257,7 @@ module Google
|
|
257
257
|
# fully understand the specific details, please consult the relevant contract or
|
258
258
|
# product policy.
|
259
259
|
# Corresponds to the JSON property `subscription`
|
260
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
260
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
261
261
|
attr_accessor :subscription
|
262
262
|
|
263
263
|
def initialize(**args)
|
@@ -272,12 +272,12 @@ module Google
|
|
272
272
|
|
273
273
|
# Request message for extending a Subscription resource. A new recurrence will
|
274
274
|
# be made based on the subscription schedule defined by the original product.
|
275
|
-
class
|
275
|
+
class ExtendSubscriptionRequest
|
276
276
|
include Google::Apis::Core::Hashable
|
277
277
|
|
278
278
|
# Describes the details of an extension request.
|
279
279
|
# Corresponds to the JSON property `extension`
|
280
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
280
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Extension]
|
281
281
|
attr_accessor :extension
|
282
282
|
|
283
283
|
# Required. Restricted to 36 ASCII characters. A random UUID is recommended. The
|
@@ -300,7 +300,7 @@ module Google
|
|
300
300
|
end
|
301
301
|
|
302
302
|
# Response that contains the timestamps after the extension.
|
303
|
-
class
|
303
|
+
class ExtendSubscriptionResponse
|
304
304
|
include Google::Apis::Core::Hashable
|
305
305
|
|
306
306
|
# The time at which the subscription is expected to be extended, in ISO 8061
|
@@ -339,12 +339,12 @@ module Google
|
|
339
339
|
end
|
340
340
|
|
341
341
|
# Describes the details of an extension request.
|
342
|
-
class
|
342
|
+
class Extension
|
343
343
|
include Google::Apis::Core::Hashable
|
344
344
|
|
345
345
|
# Describes the length of a period of a time.
|
346
346
|
# Corresponds to the JSON property `duration`
|
347
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
347
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
|
348
348
|
attr_accessor :duration
|
349
349
|
|
350
350
|
# Required. Identifier of the end-user in partner’s system.
|
@@ -364,7 +364,7 @@ module Google
|
|
364
364
|
end
|
365
365
|
|
366
366
|
# Request to find eligible promotions for the current user.
|
367
|
-
class
|
367
|
+
class FindEligiblePromotionsRequest
|
368
368
|
include Google::Apis::Core::Hashable
|
369
369
|
|
370
370
|
# Optional. Specifies the filters for the promotion results. The syntax is
|
@@ -409,7 +409,7 @@ module Google
|
|
409
409
|
end
|
410
410
|
|
411
411
|
# Response containing the found promotions for the current user.
|
412
|
-
class
|
412
|
+
class FindEligiblePromotionsResponse
|
413
413
|
include Google::Apis::Core::Hashable
|
414
414
|
|
415
415
|
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
@@ -420,7 +420,7 @@ module Google
|
|
420
420
|
|
421
421
|
# The promotions for the current user.
|
422
422
|
# Corresponds to the JSON property `promotions`
|
423
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
423
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::Promotion>]
|
424
424
|
attr_accessor :promotions
|
425
425
|
|
426
426
|
def initialize(**args)
|
@@ -435,7 +435,7 @@ module Google
|
|
435
435
|
end
|
436
436
|
|
437
437
|
# Details for a subscriptiin line item with finite billing cycles.
|
438
|
-
class
|
438
|
+
class FiniteBillingCycleDetails
|
439
439
|
include Google::Apis::Core::Hashable
|
440
440
|
|
441
441
|
# Required. The number of a subscription line item billing cycles after which
|
@@ -455,12 +455,12 @@ module Google
|
|
455
455
|
end
|
456
456
|
|
457
457
|
# Request to generate a user session.
|
458
|
-
class
|
458
|
+
class GenerateUserSessionRequest
|
459
459
|
include Google::Apis::Core::Hashable
|
460
460
|
|
461
461
|
# The payload that describes the user intent.
|
462
462
|
# Corresponds to the JSON property `intentPayload`
|
463
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
463
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::IntentPayload]
|
464
464
|
attr_accessor :intent_payload
|
465
465
|
|
466
466
|
def initialize(**args)
|
@@ -474,7 +474,7 @@ module Google
|
|
474
474
|
end
|
475
475
|
|
476
476
|
# Response that contains the details for generated user session.
|
477
|
-
class
|
477
|
+
class GenerateUserSessionResponse
|
478
478
|
include Google::Apis::Core::Hashable
|
479
479
|
|
480
480
|
# A user session contains a short-lived token that includes information required
|
@@ -490,7 +490,7 @@ module Google
|
|
490
490
|
# Integration/Google.Managed.Signup) documentation for additional integration
|
491
491
|
# details.
|
492
492
|
# Corresponds to the JSON property `userSession`
|
493
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
493
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::UserSession]
|
494
494
|
attr_accessor :user_session
|
495
495
|
|
496
496
|
def initialize(**args)
|
@@ -504,7 +504,7 @@ module Google
|
|
504
504
|
end
|
505
505
|
|
506
506
|
# Payload specific for Google Home products.
|
507
|
-
class
|
507
|
+
class GoogleHomePayload
|
508
508
|
include Google::Apis::Core::Hashable
|
509
509
|
|
510
510
|
# Output only. This identifies whether the subscription is attached to a Google
|
@@ -514,6 +514,11 @@ module Google
|
|
514
514
|
attr_accessor :attached_to_google_structure
|
515
515
|
alias_method :attached_to_google_structure?, :attached_to_google_structure
|
516
516
|
|
517
|
+
# Optional. Structure identifier on Google side.
|
518
|
+
# Corresponds to the JSON property `googleStructureId`
|
519
|
+
# @return [String]
|
520
|
+
attr_accessor :google_structure_id
|
521
|
+
|
517
522
|
# Optional. This identifies the structure ID on partner side that the
|
518
523
|
# subscription should be applied to. Only required when the partner requires
|
519
524
|
# structure mapping.
|
@@ -528,12 +533,13 @@ module Google
|
|
528
533
|
# Update properties of this object
|
529
534
|
def update!(**args)
|
530
535
|
@attached_to_google_structure = args[:attached_to_google_structure] if args.key?(:attached_to_google_structure)
|
536
|
+
@google_structure_id = args[:google_structure_id] if args.key?(:google_structure_id)
|
531
537
|
@partner_structure_id = args[:partner_structure_id] if args.key?(:partner_structure_id)
|
532
538
|
end
|
533
539
|
end
|
534
540
|
|
535
541
|
# Payload specific to Google One products.
|
536
|
-
class
|
542
|
+
class GoogleOnePayload
|
537
543
|
include Google::Apis::Core::Hashable
|
538
544
|
|
539
545
|
# Campaign attributed to sales of this subscription.
|
@@ -569,18 +575,45 @@ module Google
|
|
569
575
|
end
|
570
576
|
end
|
571
577
|
|
578
|
+
# Localized variant of a text in a particular language.
|
579
|
+
class GoogleTypeLocalizedText
|
580
|
+
include Google::Apis::Core::Hashable
|
581
|
+
|
582
|
+
# The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
583
|
+
# information, see http://www.unicode.org/reports/tr35/#
|
584
|
+
# Unicode_locale_identifier.
|
585
|
+
# Corresponds to the JSON property `languageCode`
|
586
|
+
# @return [String]
|
587
|
+
attr_accessor :language_code
|
588
|
+
|
589
|
+
# Localized string in the language corresponding to language_code below.
|
590
|
+
# Corresponds to the JSON property `text`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :text
|
593
|
+
|
594
|
+
def initialize(**args)
|
595
|
+
update!(**args)
|
596
|
+
end
|
597
|
+
|
598
|
+
# Update properties of this object
|
599
|
+
def update!(**args)
|
600
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
601
|
+
@text = args[:text] if args.key?(:text)
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
572
605
|
# The payload that describes the user intent.
|
573
|
-
class
|
606
|
+
class IntentPayload
|
574
607
|
include Google::Apis::Core::Hashable
|
575
608
|
|
576
609
|
# Intent message for creating a Subscription resource.
|
577
610
|
# Corresponds to the JSON property `createIntent`
|
578
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
611
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::CreateSubscriptionIntent]
|
579
612
|
attr_accessor :create_intent
|
580
613
|
|
581
614
|
# Intent for entitling the previously provisioned subscription to an end user.
|
582
615
|
# Corresponds to the JSON property `entitleIntent`
|
583
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
616
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent]
|
584
617
|
attr_accessor :entitle_intent
|
585
618
|
|
586
619
|
def initialize(**args)
|
@@ -595,7 +628,7 @@ module Google
|
|
595
628
|
end
|
596
629
|
|
597
630
|
# Response that contains the products.
|
598
|
-
class
|
631
|
+
class ListProductsResponse
|
599
632
|
include Google::Apis::Core::Hashable
|
600
633
|
|
601
634
|
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
@@ -606,7 +639,7 @@ module Google
|
|
606
639
|
|
607
640
|
# The products for the specified partner.
|
608
641
|
# Corresponds to the JSON property `products`
|
609
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
642
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::Product>]
|
610
643
|
attr_accessor :products
|
611
644
|
|
612
645
|
def initialize(**args)
|
@@ -621,7 +654,7 @@ module Google
|
|
621
654
|
end
|
622
655
|
|
623
656
|
# Response that contains the promotions.
|
624
|
-
class
|
657
|
+
class ListPromotionsResponse
|
625
658
|
include Google::Apis::Core::Hashable
|
626
659
|
|
627
660
|
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
@@ -632,7 +665,7 @@ module Google
|
|
632
665
|
|
633
666
|
# The promotions for the specified partner.
|
634
667
|
# Corresponds to the JSON property `promotions`
|
635
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
668
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::Promotion>]
|
636
669
|
attr_accessor :promotions
|
637
670
|
|
638
671
|
def initialize(**args)
|
@@ -647,7 +680,7 @@ module Google
|
|
647
680
|
end
|
648
681
|
|
649
682
|
# Describes a location of an end user.
|
650
|
-
class
|
683
|
+
class Location
|
651
684
|
include Google::Apis::Core::Hashable
|
652
685
|
|
653
686
|
# The postal code this location refers to. Ex. "94043"
|
@@ -673,7 +706,7 @@ module Google
|
|
673
706
|
end
|
674
707
|
|
675
708
|
# A Product resource that defines a subscription service that can be resold.
|
676
|
-
class
|
709
|
+
class Product
|
677
710
|
include Google::Apis::Core::Hashable
|
678
711
|
|
679
712
|
# Details for a bundle product.
|
@@ -683,7 +716,7 @@ module Google
|
|
683
716
|
|
684
717
|
# Details for a subscriptiin line item with finite billing cycles.
|
685
718
|
# Corresponds to the JSON property `finiteBillingCycleDetails`
|
686
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
719
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::FiniteBillingCycleDetails]
|
687
720
|
attr_accessor :finite_billing_cycle_details
|
688
721
|
|
689
722
|
# Identifier. Response only. Resource name of the product. It will have the
|
@@ -694,7 +727,7 @@ module Google
|
|
694
727
|
|
695
728
|
# Output only. Price configs for the product in the available regions.
|
696
729
|
# Corresponds to the JSON property `priceConfigs`
|
697
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
730
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::ProductPriceConfig>]
|
698
731
|
attr_accessor :price_configs
|
699
732
|
|
700
733
|
# Output only. Specifies the type of the product.
|
@@ -710,7 +743,7 @@ module Google
|
|
710
743
|
|
711
744
|
# Describes the length of a period of a time.
|
712
745
|
# Corresponds to the JSON property `subscriptionBillingCycleDuration`
|
713
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
746
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
|
714
747
|
attr_accessor :subscription_billing_cycle_duration
|
715
748
|
|
716
749
|
# Output only. Localized human readable name of the product.
|
@@ -735,8 +768,33 @@ module Google
|
|
735
768
|
end
|
736
769
|
end
|
737
770
|
|
771
|
+
# Details for a bundle product.
|
772
|
+
class ProductBundleDetails
|
773
|
+
include Google::Apis::Core::Hashable
|
774
|
+
|
775
|
+
# The individual products that are included in the bundle.
|
776
|
+
# Corresponds to the JSON property `bundleElements`
|
777
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::ProductBundleDetailsBundleElement>]
|
778
|
+
attr_accessor :bundle_elements
|
779
|
+
|
780
|
+
# The entitlement mode of the bundle product.
|
781
|
+
# Corresponds to the JSON property `entitlementMode`
|
782
|
+
# @return [String]
|
783
|
+
attr_accessor :entitlement_mode
|
784
|
+
|
785
|
+
def initialize(**args)
|
786
|
+
update!(**args)
|
787
|
+
end
|
788
|
+
|
789
|
+
# Update properties of this object
|
790
|
+
def update!(**args)
|
791
|
+
@bundle_elements = args[:bundle_elements] if args.key?(:bundle_elements)
|
792
|
+
@entitlement_mode = args[:entitlement_mode] if args.key?(:entitlement_mode)
|
793
|
+
end
|
794
|
+
end
|
795
|
+
|
738
796
|
# The individual product that is included in the bundle.
|
739
|
-
class
|
797
|
+
class ProductBundleDetailsBundleElement
|
740
798
|
include Google::Apis::Core::Hashable
|
741
799
|
|
742
800
|
# Required. Output only. Product resource name that identifies the bundle
|
@@ -756,22 +814,22 @@ module Google
|
|
756
814
|
end
|
757
815
|
|
758
816
|
# Specifies product specific payload.
|
759
|
-
class
|
817
|
+
class ProductPayload
|
760
818
|
include Google::Apis::Core::Hashable
|
761
819
|
|
762
820
|
# Payload specific for Google Home products.
|
763
821
|
# Corresponds to the JSON property `googleHomePayload`
|
764
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
822
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleHomePayload]
|
765
823
|
attr_accessor :google_home_payload
|
766
824
|
|
767
825
|
# Payload specific to Google One products.
|
768
826
|
# Corresponds to the JSON property `googleOnePayload`
|
769
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
827
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleOnePayload]
|
770
828
|
attr_accessor :google_one_payload
|
771
829
|
|
772
830
|
# Payload specific to Youtube products.
|
773
831
|
# Corresponds to the JSON property `youtubePayload`
|
774
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
832
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::YoutubePayload]
|
775
833
|
attr_accessor :youtube_payload
|
776
834
|
|
777
835
|
def initialize(**args)
|
@@ -787,12 +845,12 @@ module Google
|
|
787
845
|
end
|
788
846
|
|
789
847
|
# Configs the prices in an available region.
|
790
|
-
class
|
848
|
+
class ProductPriceConfig
|
791
849
|
include Google::Apis::Core::Hashable
|
792
850
|
|
793
851
|
# Describes the amount unit including the currency code.
|
794
852
|
# Corresponds to the JSON property `amount`
|
795
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
853
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Amount]
|
796
854
|
attr_accessor :amount
|
797
855
|
|
798
856
|
# Output only. 2-letter ISO region code where the product is available in. Ex. "
|
@@ -814,7 +872,7 @@ module Google
|
|
814
872
|
|
815
873
|
# A Promotion resource that defines a promotion for a subscription that can be
|
816
874
|
# resold.
|
817
|
-
class
|
875
|
+
class Promotion
|
818
876
|
include Google::Apis::Core::Hashable
|
819
877
|
|
820
878
|
# Output only. The product ids this promotion can be applied to.
|
@@ -830,12 +888,12 @@ module Google
|
|
830
888
|
|
831
889
|
# Describes the length of a period of a time.
|
832
890
|
# Corresponds to the JSON property `freeTrialDuration`
|
833
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
891
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
|
834
892
|
attr_accessor :free_trial_duration
|
835
893
|
|
836
894
|
# The details of a introductory pricing promotion.
|
837
895
|
# Corresponds to the JSON property `introductoryPricingDetails`
|
838
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
896
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::PromotionIntroductoryPricingDetails]
|
839
897
|
attr_accessor :introductory_pricing_details
|
840
898
|
|
841
899
|
# Identifier. Response only. Resource name of the subscription promotion. It
|
@@ -885,12 +943,12 @@ module Google
|
|
885
943
|
end
|
886
944
|
|
887
945
|
# The details of a introductory pricing promotion.
|
888
|
-
class
|
946
|
+
class PromotionIntroductoryPricingDetails
|
889
947
|
include Google::Apis::Core::Hashable
|
890
948
|
|
891
949
|
# Output only. Specifies the introductory pricing periods.
|
892
950
|
# Corresponds to the JSON property `introductoryPricingSpecs`
|
893
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
951
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::PromotionIntroductoryPricingDetailsIntroductoryPricingSpec>]
|
894
952
|
attr_accessor :introductory_pricing_specs
|
895
953
|
|
896
954
|
def initialize(**args)
|
@@ -904,12 +962,12 @@ module Google
|
|
904
962
|
end
|
905
963
|
|
906
964
|
# The duration of an introductory pricing promotion.
|
907
|
-
class
|
965
|
+
class PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
|
908
966
|
include Google::Apis::Core::Hashable
|
909
967
|
|
910
968
|
# Describes the amount unit including the currency code.
|
911
969
|
# Corresponds to the JSON property `discountAmount`
|
912
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
970
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Amount]
|
913
971
|
attr_accessor :discount_amount
|
914
972
|
|
915
973
|
# Output only. The discount percentage in micros. For example, 50,000 represents
|
@@ -943,7 +1001,7 @@ module Google
|
|
943
1001
|
end
|
944
1002
|
|
945
1003
|
# Request to resume a suspended subscription.
|
946
|
-
class
|
1004
|
+
class ResumeSubscriptionRequest
|
947
1005
|
include Google::Apis::Core::Hashable
|
948
1006
|
|
949
1007
|
def initialize(**args)
|
@@ -956,7 +1014,7 @@ module Google
|
|
956
1014
|
end
|
957
1015
|
|
958
1016
|
# Response that contains the resumed subscription.
|
959
|
-
class
|
1017
|
+
class ResumeSubscriptionResponse
|
960
1018
|
include Google::Apis::Core::Hashable
|
961
1019
|
|
962
1020
|
# A subscription serves as a central billing entity between an external partner
|
@@ -969,7 +1027,7 @@ module Google
|
|
969
1027
|
# fully understand the specific details, please consult the relevant contract or
|
970
1028
|
# product policy.
|
971
1029
|
# Corresponds to the JSON property `subscription`
|
972
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1030
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
973
1031
|
attr_accessor :subscription
|
974
1032
|
|
975
1033
|
def initialize(**args)
|
@@ -984,7 +1042,7 @@ module Google
|
|
984
1042
|
|
985
1043
|
# A description of what time period or moment in time the product or service is
|
986
1044
|
# being delivered over.
|
987
|
-
class
|
1045
|
+
class ServicePeriod
|
988
1046
|
include Google::Apis::Core::Hashable
|
989
1047
|
|
990
1048
|
# Optional. The end time of the service period. Time is exclusive.
|
@@ -1017,12 +1075,12 @@ module Google
|
|
1017
1075
|
# been immediately canceled. However, other services may not do the same. To
|
1018
1076
|
# fully understand the specific details, please consult the relevant contract or
|
1019
1077
|
# product policy.
|
1020
|
-
class
|
1078
|
+
class Subscription
|
1021
1079
|
include Google::Apis::Core::Hashable
|
1022
1080
|
|
1023
1081
|
# Describes the details of a cancelled or cancelling subscription.
|
1024
1082
|
# Corresponds to the JSON property `cancellationDetails`
|
1025
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1083
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionCancellationDetails]
|
1026
1084
|
attr_accessor :cancellation_details
|
1027
1085
|
|
1028
1086
|
# Output only. System generated timestamp when the subscription is created. UTC
|
@@ -1052,12 +1110,12 @@ module Google
|
|
1052
1110
|
|
1053
1111
|
# Required. The line items of the subscription.
|
1054
1112
|
# Corresponds to the JSON property `lineItems`
|
1055
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
1113
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem>]
|
1056
1114
|
attr_accessor :line_items
|
1057
1115
|
|
1058
1116
|
# Describes the details of the migrated subscription.
|
1059
1117
|
# Corresponds to the JSON property `migrationDetails`
|
1060
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1118
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionMigrationDetails]
|
1061
1119
|
attr_accessor :migration_details
|
1062
1120
|
|
1063
1121
|
# Identifier. Resource name of the subscription. It will have the format of "
|
@@ -1092,7 +1150,7 @@ module Google
|
|
1092
1150
|
# of the free trial period. Specify the promotion resource name only when used
|
1093
1151
|
# as input.
|
1094
1152
|
# Corresponds to the JSON property `promotionSpecs`
|
1095
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
1153
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::SubscriptionPromotionSpec>]
|
1096
1154
|
attr_accessor :promotion_specs
|
1097
1155
|
|
1098
1156
|
# Optional. Deprecated: consider using the top-level `promotion_specs` as the
|
@@ -1129,7 +1187,7 @@ module Google
|
|
1129
1187
|
|
1130
1188
|
# Describes a location of an end user.
|
1131
1189
|
# Corresponds to the JSON property `serviceLocation`
|
1132
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1190
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Location]
|
1133
1191
|
attr_accessor :service_location
|
1134
1192
|
|
1135
1193
|
# Output only. Describes the state of the subscription. See more details at [the
|
@@ -1148,7 +1206,7 @@ module Google
|
|
1148
1206
|
# Details about the previous subscription that this new subscription upgrades/
|
1149
1207
|
# downgrades from.
|
1150
1208
|
# Corresponds to the JSON property `upgradeDowngradeDetails`
|
1151
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1209
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionUpgradeDowngradeDetails]
|
1152
1210
|
attr_accessor :upgrade_downgrade_details
|
1153
1211
|
|
1154
1212
|
def initialize(**args)
|
@@ -1181,7 +1239,7 @@ module Google
|
|
1181
1239
|
end
|
1182
1240
|
|
1183
1241
|
# Describes the details of a cancelled or cancelling subscription.
|
1184
|
-
class
|
1242
|
+
class SubscriptionCancellationDetails
|
1185
1243
|
include Google::Apis::Core::Hashable
|
1186
1244
|
|
1187
1245
|
# Output only. The reason of the cancellation.
|
@@ -1200,12 +1258,12 @@ module Google
|
|
1200
1258
|
end
|
1201
1259
|
|
1202
1260
|
# Individual line item definition of a subscription.
|
1203
|
-
class
|
1261
|
+
class SubscriptionLineItem
|
1204
1262
|
include Google::Apis::Core::Hashable
|
1205
1263
|
|
1206
1264
|
# Describes the amount unit including the currency code.
|
1207
1265
|
# Corresponds to the JSON property `amount`
|
1208
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1266
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Amount]
|
1209
1267
|
attr_accessor :amount
|
1210
1268
|
|
1211
1269
|
# The bundle details for a line item corresponding to a hard bundle.
|
@@ -1220,7 +1278,7 @@ module Google
|
|
1220
1278
|
|
1221
1279
|
# Details for a subscriptiin line item with finite billing cycles.
|
1222
1280
|
# Corresponds to the JSON property `finiteBillingCycleDetails`
|
1223
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1281
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::FiniteBillingCycleDetails]
|
1224
1282
|
attr_accessor :finite_billing_cycle_details
|
1225
1283
|
|
1226
1284
|
# Output only. The free trial end time will be populated after the line item is
|
@@ -1241,12 +1299,12 @@ module Google
|
|
1241
1299
|
# enabled. If used, the request will be rejected. When used as input in Create
|
1242
1300
|
# or Provision API, specify its resource name only.
|
1243
1301
|
# Corresponds to the JSON property `lineItemPromotionSpecs`
|
1244
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::
|
1302
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::SubscriptionPromotionSpec>]
|
1245
1303
|
attr_accessor :line_item_promotion_specs
|
1246
1304
|
|
1247
1305
|
# Details for a ONE_TIME recurrence line item.
|
1248
1306
|
# Corresponds to the JSON property `oneTimeRecurrenceDetails`
|
1249
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1307
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItemOneTimeRecurrenceDetails]
|
1250
1308
|
attr_accessor :one_time_recurrence_details
|
1251
1309
|
|
1252
1310
|
# Required. Product resource name that identifies one the line item The format
|
@@ -1257,7 +1315,7 @@ module Google
|
|
1257
1315
|
|
1258
1316
|
# Specifies product specific payload.
|
1259
1317
|
# Corresponds to the JSON property `productPayload`
|
1260
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1318
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::ProductPayload]
|
1261
1319
|
attr_accessor :product_payload
|
1262
1320
|
|
1263
1321
|
# Output only. The recurrence type of the line item.
|
@@ -1291,8 +1349,27 @@ module Google
|
|
1291
1349
|
end
|
1292
1350
|
end
|
1293
1351
|
|
1352
|
+
# The bundle details for a line item corresponding to a hard bundle.
|
1353
|
+
class SubscriptionLineItemBundleDetails
|
1354
|
+
include Google::Apis::Core::Hashable
|
1355
|
+
|
1356
|
+
# Output only. The details for each element in the hard bundle.
|
1357
|
+
# Corresponds to the JSON property `bundleElementDetails`
|
1358
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItemBundleDetailsBundleElementDetails>]
|
1359
|
+
attr_accessor :bundle_element_details
|
1360
|
+
|
1361
|
+
def initialize(**args)
|
1362
|
+
update!(**args)
|
1363
|
+
end
|
1364
|
+
|
1365
|
+
# Update properties of this object
|
1366
|
+
def update!(**args)
|
1367
|
+
@bundle_element_details = args[:bundle_element_details] if args.key?(:bundle_element_details)
|
1368
|
+
end
|
1369
|
+
end
|
1370
|
+
|
1294
1371
|
# The details for an element in the hard bundle.
|
1295
|
-
class
|
1372
|
+
class SubscriptionLineItemBundleDetailsBundleElementDetails
|
1296
1373
|
include Google::Apis::Core::Hashable
|
1297
1374
|
|
1298
1375
|
# Output only. Product resource name that identifies the bundle element. The
|
@@ -1318,13 +1395,13 @@ module Google
|
|
1318
1395
|
end
|
1319
1396
|
|
1320
1397
|
# Details for a ONE_TIME recurrence line item.
|
1321
|
-
class
|
1398
|
+
class SubscriptionLineItemOneTimeRecurrenceDetails
|
1322
1399
|
include Google::Apis::Core::Hashable
|
1323
1400
|
|
1324
1401
|
# A description of what time period or moment in time the product or service is
|
1325
1402
|
# being delivered over.
|
1326
1403
|
# Corresponds to the JSON property `servicePeriod`
|
1327
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1404
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::ServicePeriod]
|
1328
1405
|
attr_accessor :service_period
|
1329
1406
|
|
1330
1407
|
def initialize(**args)
|
@@ -1338,7 +1415,7 @@ module Google
|
|
1338
1415
|
end
|
1339
1416
|
|
1340
1417
|
# Describes the details of the migrated subscription.
|
1341
|
-
class
|
1418
|
+
class SubscriptionMigrationDetails
|
1342
1419
|
include Google::Apis::Core::Hashable
|
1343
1420
|
|
1344
1421
|
# Output only. The migrated subscription id in the legacy system.
|
@@ -1357,17 +1434,17 @@ module Google
|
|
1357
1434
|
end
|
1358
1435
|
|
1359
1436
|
# Describes the spec for one promotion.
|
1360
|
-
class
|
1437
|
+
class SubscriptionPromotionSpec
|
1361
1438
|
include Google::Apis::Core::Hashable
|
1362
1439
|
|
1363
1440
|
# Describes the length of a period of a time.
|
1364
1441
|
# Corresponds to the JSON property `freeTrialDuration`
|
1365
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1442
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
|
1366
1443
|
attr_accessor :free_trial_duration
|
1367
1444
|
|
1368
1445
|
# The details of a introductory pricing promotion.
|
1369
1446
|
# Corresponds to the JSON property `introductoryPricingDetails`
|
1370
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1447
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::PromotionIntroductoryPricingDetails]
|
1371
1448
|
attr_accessor :introductory_pricing_details
|
1372
1449
|
|
1373
1450
|
# Required. Promotion resource name that identifies a promotion. The format is '
|
@@ -1396,7 +1473,7 @@ module Google
|
|
1396
1473
|
|
1397
1474
|
# Details about the previous subscription that this new subscription upgrades/
|
1398
1475
|
# downgrades from.
|
1399
|
-
class
|
1476
|
+
class SubscriptionUpgradeDowngradeDetails
|
1400
1477
|
include Google::Apis::Core::Hashable
|
1401
1478
|
|
1402
1479
|
# Required. Specifies the billing cycle spec for the new upgraded/downgraded
|
@@ -1423,7 +1500,7 @@ module Google
|
|
1423
1500
|
end
|
1424
1501
|
|
1425
1502
|
# Request to suspend a subscription.
|
1426
|
-
class
|
1503
|
+
class SuspendSubscriptionRequest
|
1427
1504
|
include Google::Apis::Core::Hashable
|
1428
1505
|
|
1429
1506
|
def initialize(**args)
|
@@ -1436,7 +1513,7 @@ module Google
|
|
1436
1513
|
end
|
1437
1514
|
|
1438
1515
|
# Response that contains the suspended subscription.
|
1439
|
-
class
|
1516
|
+
class SuspendSubscriptionResponse
|
1440
1517
|
include Google::Apis::Core::Hashable
|
1441
1518
|
|
1442
1519
|
# A subscription serves as a central billing entity between an external partner
|
@@ -1449,7 +1526,7 @@ module Google
|
|
1449
1526
|
# fully understand the specific details, please consult the relevant contract or
|
1450
1527
|
# product policy.
|
1451
1528
|
# Corresponds to the JSON property `subscription`
|
1452
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1529
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
1453
1530
|
attr_accessor :subscription
|
1454
1531
|
|
1455
1532
|
def initialize(**args)
|
@@ -1463,7 +1540,7 @@ module Google
|
|
1463
1540
|
end
|
1464
1541
|
|
1465
1542
|
# Request to revoke a cancellation request.
|
1466
|
-
class
|
1543
|
+
class UndoCancelSubscriptionRequest
|
1467
1544
|
include Google::Apis::Core::Hashable
|
1468
1545
|
|
1469
1546
|
def initialize(**args)
|
@@ -1476,7 +1553,7 @@ module Google
|
|
1476
1553
|
end
|
1477
1554
|
|
1478
1555
|
# Response that contains the updated subscription resource.
|
1479
|
-
class
|
1556
|
+
class UndoCancelSubscriptionResponse
|
1480
1557
|
include Google::Apis::Core::Hashable
|
1481
1558
|
|
1482
1559
|
# A subscription serves as a central billing entity between an external partner
|
@@ -1489,7 +1566,7 @@ module Google
|
|
1489
1566
|
# fully understand the specific details, please consult the relevant contract or
|
1490
1567
|
# product policy.
|
1491
1568
|
# Corresponds to the JSON property `subscription`
|
1492
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
1569
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
1493
1570
|
attr_accessor :subscription
|
1494
1571
|
|
1495
1572
|
def initialize(**args)
|
@@ -1514,7 +1591,7 @@ module Google
|
|
1514
1591
|
# Signup](/payments/reseller/subscription/reference/index/User.Signup.
|
1515
1592
|
# Integration/Google.Managed.Signup) documentation for additional integration
|
1516
1593
|
# details.
|
1517
|
-
class
|
1594
|
+
class UserSession
|
1518
1595
|
include Google::Apis::Core::Hashable
|
1519
1596
|
|
1520
1597
|
# Output only. The time at which the user session expires.
|
@@ -1541,7 +1618,7 @@ module Google
|
|
1541
1618
|
end
|
1542
1619
|
|
1543
1620
|
# Payload specific to Youtube products.
|
1544
|
-
class
|
1621
|
+
class YoutubePayload
|
1545
1622
|
include Google::Apis::Core::Hashable
|
1546
1623
|
|
1547
1624
|
# Output only. The access expiration time for this line item.
|
@@ -1570,77 +1647,6 @@ module Google
|
|
1570
1647
|
@partner_plan_type = args[:partner_plan_type] if args.key?(:partner_plan_type)
|
1571
1648
|
end
|
1572
1649
|
end
|
1573
|
-
|
1574
|
-
# Localized variant of a text in a particular language.
|
1575
|
-
class GoogleTypeLocalizedText
|
1576
|
-
include Google::Apis::Core::Hashable
|
1577
|
-
|
1578
|
-
# The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
1579
|
-
# information, see http://www.unicode.org/reports/tr35/#
|
1580
|
-
# Unicode_locale_identifier.
|
1581
|
-
# Corresponds to the JSON property `languageCode`
|
1582
|
-
# @return [String]
|
1583
|
-
attr_accessor :language_code
|
1584
|
-
|
1585
|
-
# Localized string in the language corresponding to language_code below.
|
1586
|
-
# Corresponds to the JSON property `text`
|
1587
|
-
# @return [String]
|
1588
|
-
attr_accessor :text
|
1589
|
-
|
1590
|
-
def initialize(**args)
|
1591
|
-
update!(**args)
|
1592
|
-
end
|
1593
|
-
|
1594
|
-
# Update properties of this object
|
1595
|
-
def update!(**args)
|
1596
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
1597
|
-
@text = args[:text] if args.key?(:text)
|
1598
|
-
end
|
1599
|
-
end
|
1600
|
-
|
1601
|
-
# Details for a bundle product.
|
1602
|
-
class ProductBundleDetails
|
1603
|
-
include Google::Apis::Core::Hashable
|
1604
|
-
|
1605
|
-
# The individual products that are included in the bundle.
|
1606
|
-
# Corresponds to the JSON property `bundleElements`
|
1607
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement>]
|
1608
|
-
attr_accessor :bundle_elements
|
1609
|
-
|
1610
|
-
# The entitlement mode of the bundle product.
|
1611
|
-
# Corresponds to the JSON property `entitlementMode`
|
1612
|
-
# @return [String]
|
1613
|
-
attr_accessor :entitlement_mode
|
1614
|
-
|
1615
|
-
def initialize(**args)
|
1616
|
-
update!(**args)
|
1617
|
-
end
|
1618
|
-
|
1619
|
-
# Update properties of this object
|
1620
|
-
def update!(**args)
|
1621
|
-
@bundle_elements = args[:bundle_elements] if args.key?(:bundle_elements)
|
1622
|
-
@entitlement_mode = args[:entitlement_mode] if args.key?(:entitlement_mode)
|
1623
|
-
end
|
1624
|
-
end
|
1625
|
-
|
1626
|
-
# The bundle details for a line item corresponding to a hard bundle.
|
1627
|
-
class SubscriptionLineItemBundleDetails
|
1628
|
-
include Google::Apis::Core::Hashable
|
1629
|
-
|
1630
|
-
# Output only. The details for each element in the hard bundle.
|
1631
|
-
# Corresponds to the JSON property `bundleElementDetails`
|
1632
|
-
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails>]
|
1633
|
-
attr_accessor :bundle_element_details
|
1634
|
-
|
1635
|
-
def initialize(**args)
|
1636
|
-
update!(**args)
|
1637
|
-
end
|
1638
|
-
|
1639
|
-
# Update properties of this object
|
1640
|
-
def update!(**args)
|
1641
|
-
@bundle_element_details = args[:bundle_element_details] if args.key?(:bundle_element_details)
|
1642
|
-
end
|
1643
|
-
end
|
1644
1650
|
end
|
1645
1651
|
end
|
1646
1652
|
end
|