Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePaymentOptions
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePaymentOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb
Overview
Payment options the place accepts.
Instance Attribute Summary collapse
-
#accepts_cash_only ⇒ Boolean
(also: #accepts_cash_only?)
Place accepts cash only as payment.
-
#accepts_credit_cards ⇒ Boolean
(also: #accepts_credit_cards?)
Place accepts credit cards as payment.
-
#accepts_debit_cards ⇒ Boolean
(also: #accepts_debit_cards?)
Place accepts debit cards as payment.
-
#accepts_nfc ⇒ Boolean
(also: #accepts_nfc?)
Place accepts NFC payments.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1PlacePaymentOptions
constructor
A new instance of GoogleMapsPlacesV1PlacePaymentOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1PlacePaymentOptions
Returns a new instance of GoogleMapsPlacesV1PlacePaymentOptions.
2173 2174 2175 |
# File 'lib/google/apis/places_v1/classes.rb', line 2173 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accepts_cash_only ⇒ Boolean Also known as: accepts_cash_only?
Place accepts cash only as payment. Places with this attribute may still
accept other payment methods.
Corresponds to the JSON property acceptsCashOnly
2152 2153 2154 |
# File 'lib/google/apis/places_v1/classes.rb', line 2152 def accepts_cash_only @accepts_cash_only end |
#accepts_credit_cards ⇒ Boolean Also known as: accepts_credit_cards?
Place accepts credit cards as payment.
Corresponds to the JSON property acceptsCreditCards
2158 2159 2160 |
# File 'lib/google/apis/places_v1/classes.rb', line 2158 def accepts_credit_cards @accepts_credit_cards end |
#accepts_debit_cards ⇒ Boolean Also known as: accepts_debit_cards?
Place accepts debit cards as payment.
Corresponds to the JSON property acceptsDebitCards
2164 2165 2166 |
# File 'lib/google/apis/places_v1/classes.rb', line 2164 def accepts_debit_cards @accepts_debit_cards end |
#accepts_nfc ⇒ Boolean Also known as: accepts_nfc?
Place accepts NFC payments.
Corresponds to the JSON property acceptsNfc
2170 2171 2172 |
# File 'lib/google/apis/places_v1/classes.rb', line 2170 def accepts_nfc @accepts_nfc end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2178 2179 2180 2181 2182 2183 |
# File 'lib/google/apis/places_v1/classes.rb', line 2178 def update!(**args) @accepts_cash_only = args[:accepts_cash_only] if args.key?(:accepts_cash_only) @accepts_credit_cards = args[:accepts_credit_cards] if args.key?(:accepts_credit_cards) @accepts_debit_cards = args[:accepts_debit_cards] if args.key?(:accepts_debit_cards) @accepts_nfc = args[:accepts_nfc] if args.key?(:accepts_nfc) end |