Class: Google::Apis::MybusinesslodgingV1::PaymentOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PaymentOptions

Returns a new instance of PaymentOptions.



2942
2943
2944
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2942

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cashBoolean Also known as: cash?

Cash. The hotel accepts payment by paper/coin currency. Corresponds to the JSON property cash

Returns:

  • (Boolean)


2883
2884
2885
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2883

def cash
  @cash
end

#cash_exceptionString

Cash exception. Corresponds to the JSON property cashException

Returns:

  • (String)


2889
2890
2891
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2889

def cash_exception
  @cash_exception
end

#chequeBoolean 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

Returns:

  • (Boolean)


2895
2896
2897
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2895

def cheque
  @cheque
end

#cheque_exceptionString

Cheque exception. Corresponds to the JSON property chequeException

Returns:

  • (String)


2901
2902
2903
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2901

def cheque_exception
  @cheque_exception
end

#credit_cardBoolean 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

Returns:

  • (Boolean)


2908
2909
2910
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2908

def credit_card
  @credit_card
end

#credit_card_exceptionString

Credit card exception. Corresponds to the JSON property creditCardException

Returns:

  • (String)


2914
2915
2916
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2914

def credit_card_exception
  @credit_card_exception
end

#debit_cardBoolean 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

Returns:

  • (Boolean)


2920
2921
2922
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2920

def debit_card
  @debit_card
end

#debit_card_exceptionString

Debit card exception. Corresponds to the JSON property debitCardException

Returns:

  • (String)


2926
2927
2928
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2926

def debit_card_exception
  @debit_card_exception
end

#mobile_nfcBoolean 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

Returns:

  • (Boolean)


2934
2935
2936
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2934

def mobile_nfc
  @mobile_nfc
end

#mobile_nfc_exceptionString

Mobile nfc exception. Corresponds to the JSON property mobileNfcException

Returns:

  • (String)


2940
2941
2942
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2940

def mobile_nfc_exception
  @mobile_nfc_exception
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 2947

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