Class: Google::Apis::MerchantapiAccountsV1beta::Accepted

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb

Overview

Describes the accepted terms of service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Accepted

Returns a new instance of Accepted.



80
81
82
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 80

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

Instance Attribute Details

#accepted_byString

The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the MCA account. Corresponds to the JSON property acceptedBy

Returns:

  • (String)


60
61
62
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 60

def accepted_by
  @accepted_by
end

#terms_of_serviceString

The accepted termsOfService. Corresponds to the JSON property termsOfService

Returns:

  • (String)


66
67
68
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 66

def terms_of_service
  @terms_of_service
end

#valid_untilGoogle::Apis::MerchantapiAccountsV1beta::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property validUntil



78
79
80
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 78

def valid_until
  @valid_until
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



85
86
87
88
89
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 85

def update!(**args)
  @accepted_by = args[:accepted_by] if args.key?(:accepted_by)
  @terms_of_service = args[:terms_of_service] if args.key?(:terms_of_service)
  @valid_until = args[:valid_until] if args.key?(:valid_until)
end