Class: Google::Apis::MybusinesslodgingV1::PaymentOptions
- Inherits:
-
Object
- Object
- Google::Apis::MybusinesslodgingV1::PaymentOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinesslodging_v1/classes.rb,
lib/google/apis/mybusinesslodging_v1/representations.rb,
lib/google/apis/mybusinesslodging_v1/representations.rb
Overview
Forms of payment accepted at the property.
Instance Attribute Summary collapse
-
#cash ⇒ Boolean
(also: #cash?)
Cash.
-
#cash_exception ⇒ String
Cash exception.
-
#cheque ⇒ Boolean
(also: #cheque?)
Cheque.
-
#cheque_exception ⇒ String
Cheque exception.
-
#credit_card ⇒ Boolean
(also: #credit_card?)
Credit card.
-
#credit_card_exception ⇒ String
Credit card exception.
-
#debit_card ⇒ Boolean
(also: #debit_card?)
Debit card.
-
#debit_card_exception ⇒ String
Debit card exception.
-
#mobile_nfc ⇒ Boolean
(also: #mobile_nfc?)
Mobile nfc.
-
#mobile_nfc_exception ⇒ String
Mobile nfc exception.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PaymentOptions
constructor
A new instance of PaymentOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PaymentOptions
Returns a new instance of PaymentOptions.
2768 2769 2770 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cash ⇒ Boolean Also known as: cash?
Cash. The hotel accepts payment by paper/coin currency.
Corresponds to the JSON property cash
2709 2710 2711 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2709 def cash @cash end |
#cash_exception ⇒ String
Cash exception.
Corresponds to the JSON property cashException
2715 2716 2717 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2715 def cash_exception @cash_exception end |
#cheque ⇒ Boolean Also known as: cheque?
Cheque. The hotel accepts a printed document issued by the guest's bank in the
guest's name as a form of payment.
Corresponds to the JSON property cheque
2721 2722 2723 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2721 def cheque @cheque end |
#cheque_exception ⇒ String
Cheque exception.
Corresponds to the JSON property chequeException
2727 2728 2729 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2727 def cheque_exception @cheque_exception end |
#credit_card ⇒ Boolean Also known as: credit_card?
Credit card. The hotel accepts payment by a card issued by a bank or credit
card company. Also known as charge card, debit card, bank card, or charge
plate.
Corresponds to the JSON property creditCard
2734 2735 2736 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2734 def credit_card @credit_card end |
#credit_card_exception ⇒ String
Credit card exception.
Corresponds to the JSON property creditCardException
2740 2741 2742 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2740 def credit_card_exception @credit_card_exception end |
#debit_card ⇒ Boolean Also known as: debit_card?
Debit card. The hotel accepts a bank-issued card that immediately deducts the
charged funds from the guest's bank account upon processing.
Corresponds to the JSON property debitCard
2746 2747 2748 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2746 def debit_card @debit_card end |
#debit_card_exception ⇒ String
Debit card exception.
Corresponds to the JSON property debitCardException
2752 2753 2754 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2752 def debit_card_exception @debit_card_exception end |
#mobile_nfc ⇒ Boolean Also known as: mobile_nfc?
Mobile nfc. The hotel has the compatible computer hardware terminal that reads
and charges a payment app on the guest's smartphone without requiring the two
devices to make physical contact. Also known as Apple Pay, Google Pay, Samsung
Pay.
Corresponds to the JSON property mobileNfc
2760 2761 2762 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2760 def mobile_nfc @mobile_nfc end |
#mobile_nfc_exception ⇒ String
Mobile nfc exception.
Corresponds to the JSON property mobileNfcException
2766 2767 2768 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2766 def mobile_nfc_exception @mobile_nfc_exception end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2773 def update!(**args) @cash = args[:cash] if args.key?(:cash) @cash_exception = args[:cash_exception] if args.key?(:cash_exception) @cheque = args[:cheque] if args.key?(:cheque) @cheque_exception = args[:cheque_exception] if args.key?(:cheque_exception) @credit_card = args[:credit_card] if args.key?(:credit_card) @credit_card_exception = args[:credit_card_exception] if args.key?(:credit_card_exception) @debit_card = args[:debit_card] if args.key?(:debit_card) @debit_card_exception = args[:debit_card_exception] if args.key?(:debit_card_exception) @mobile_nfc = args[:mobile_nfc] if args.key?(:mobile_nfc) @mobile_nfc_exception = args[:mobile_nfc_exception] if args.key?(:mobile_nfc_exception) end |