Class: Google::Apis::AndroidpublisherV3::OneTimePurchaseDetails
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::OneTimePurchaseDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb
Overview
Details of a one-time purchase.
Instance Attribute Summary collapse
-
#offer_id ⇒ String
The offer ID of the one-time purchase offer.
-
#preorder_details ⇒ Google::Apis::AndroidpublisherV3::PreorderDetails
Details of a pre-order purchase.
-
#purchase_option_id ⇒ String
ID of the purchase option.
-
#quantity ⇒ Fixnum
The number of items purchased (for multi-quantity item purchases).
-
#rental_details ⇒ Google::Apis::AndroidpublisherV3::RentalDetails
Details of a rental purchase.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OneTimePurchaseDetails
constructor
A new instance of OneTimePurchaseDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OneTimePurchaseDetails
Returns a new instance of OneTimePurchaseDetails.
5913 5914 5915 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5913 def initialize(**args) update!(**args) end |
Instance Attribute Details
#offer_id ⇒ String
The offer ID of the one-time purchase offer.
Corresponds to the JSON property offerId
5888 5889 5890 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5888 def offer_id @offer_id end |
#preorder_details ⇒ Google::Apis::AndroidpublisherV3::PreorderDetails
Details of a pre-order purchase.
Corresponds to the JSON property preorderDetails
5893 5894 5895 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5893 def preorder_details @preorder_details end |
#purchase_option_id ⇒ String
ID of the purchase option. This field is set for both purchase options and
variant offers. For purchase options, this ID identifies the purchase option
itself. For variant offers, this ID refers to the associated purchase option,
and in conjunction with offer_id it identifies the variant offer.
Corresponds to the JSON property purchaseOptionId
5901 5902 5903 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5901 def purchase_option_id @purchase_option_id end |
#quantity ⇒ Fixnum
The number of items purchased (for multi-quantity item purchases).
Corresponds to the JSON property quantity
5906 5907 5908 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5906 def quantity @quantity end |
#rental_details ⇒ Google::Apis::AndroidpublisherV3::RentalDetails
Details of a rental purchase.
Corresponds to the JSON property rentalDetails
5911 5912 5913 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5911 def rental_details @rental_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5918 5919 5920 5921 5922 5923 5924 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5918 def update!(**args) @offer_id = args[:offer_id] if args.key?(:offer_id) @preorder_details = args[:preorder_details] if args.key?(:preorder_details) @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id) @quantity = args[:quantity] if args.key?(:quantity) @rental_details = args[:rental_details] if args.key?(:rental_details) end |