Class: Google::Apis::ContentV2sandbox::TestOrderPaymentMethod

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TestOrderPaymentMethod

Returns a new instance of TestOrderPaymentMethod



2566
2567
2568
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2566

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

Instance Attribute Details

#expiration_monthFixnum

The card expiration month (January = 1, February = 2 etc.). Corresponds to the JSON property expirationMonth

Returns:

  • (Fixnum)


2543
2544
2545
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2543

def expiration_month
  @expiration_month
end

#expiration_yearFixnum

The card expiration year (4-digit, e.g. 2015). Corresponds to the JSON property expirationYear

Returns:

  • (Fixnum)


2548
2549
2550
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2548

def expiration_year
  @expiration_year
end

#last_four_digitsString

The last four digits of the card number. Corresponds to the JSON property lastFourDigits

Returns:

  • (String)


2553
2554
2555
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2553

def last_four_digits
  @last_four_digits
end

#predefined_billing_addressString

The billing address. Corresponds to the JSON property predefinedBillingAddress

Returns:

  • (String)


2558
2559
2560
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2558

def predefined_billing_address
  @predefined_billing_address
end

#typeString

The type of instrument. Note that real orders might have different values than the four values accepted by createTestOrder. Corresponds to the JSON property type

Returns:

  • (String)


2564
2565
2566
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2564

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2571
2572
2573
2574
2575
2576
2577
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2571

def update!(**args)
  @expiration_month = args[:expiration_month] if args.key?(:expiration_month)
  @expiration_year = args[:expiration_year] if args.key?(:expiration_year)
  @last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits)
  @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address)
  @type = args[:type] if args.key?(:type)
end