Class: Google::Apis::MerchantapiAccountsV1beta::Accepted
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::Accepted
- 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
-
#accepted_by ⇒ String
The account where the acceptance was recorded.
-
#terms_of_service ⇒ String
The accepted termsOfService.
-
#valid_until ⇒ Google::Apis::MerchantapiAccountsV1beta::Date
Represents a whole or partial calendar date, such as a birthday.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Accepted
constructor
A new instance of Accepted.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_by ⇒ String
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
60 61 62 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 60 def accepted_by @accepted_by end |
#terms_of_service ⇒ String
The accepted termsOfService.
Corresponds to the JSON property termsOfService
66 67 68 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 66 def terms_of_service @terms_of_service end |
#valid_until ⇒ Google::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 |