Show / Hide Table of Contents

Class TermsOfServiceAgreementState

This resource represents the agreement state for a given account and terms of service kind. The state is as follows:

  • If the business has accepted a terms of service, [accepted][google.shopping.merchant.accounts.v1.Accepted] will be populated, otherwise it will be empty
  • If the business must sign a terms of service, [required][google.shopping.merchant.accounts.v1.Required] will be populated, otherwise it will be empty.

Note that both required and accepted can be present. In this case the accepted terms of services will have an expiration date set in the [valid_until][google.shopping.merchant.accounts.v1.Accepted.valid_until] field. The required terms of services need to be accepted before valid_until in order for the account to continue having a valid agreement. When accepting new terms of services we expect third-party providers to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as [tos_file_uri][google.shopping.merchant.accounts.v1.Required.tos_file_uri]). The actual acceptance of the terms of service is done by calling accept on the [TermsOfService][google.shopping.merchant.accounts.v1.Accepted.terms_of_service] resource. valid_until field.

Inheritance
object
TermsOfServiceAgreementState
Implements
IMessage<TermsOfServiceAgreementState>
IEquatable<TermsOfServiceAgreementState>
IDeepCloneable<TermsOfServiceAgreementState>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public sealed class TermsOfServiceAgreementState : IMessage<TermsOfServiceAgreementState>, IEquatable<TermsOfServiceAgreementState>, IDeepCloneable<TermsOfServiceAgreementState>, IBufferMessage, IMessage

Constructors

TermsOfServiceAgreementState()

Declaration
public TermsOfServiceAgreementState()

TermsOfServiceAgreementState(TermsOfServiceAgreementState)

Declaration
public TermsOfServiceAgreementState(TermsOfServiceAgreementState other)
Parameters
Type Name Description
TermsOfServiceAgreementState other

Properties

Accepted

Optional. The accepted terms of service of this kind and for the associated region_code

Declaration
public Accepted Accepted { get; set; }
Property Value
Type Description
Accepted

Name

Identifier. The resource name of the terms of service version. Format: accounts/{account}/termsOfServiceAgreementState/{identifier} The identifier format is: {[TermsOfServiceKind][google.shopping.merchant.accounts.v1.TermsOfServiceKind]}-{country} For example, an identifier could be: MERCHANT_CENTER-EU or MERCHANT_CENTER-US.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

RegionCode

Required. Region code as defined by https://cldr.unicode.org/. This is the country the current state applies to.

Declaration
public string RegionCode { get; set; }
Property Value
Type Description
string

Required

Optional. The required terms of service

Declaration
public Required Required { get; set; }
Property Value
Type Description
Required

TermsOfServiceAgreementStateName

TermsOfServiceAgreementStateName-typed view over the Name resource name property.

Declaration
public TermsOfServiceAgreementStateName TermsOfServiceAgreementStateName { get; set; }
Property Value
Type Description
TermsOfServiceAgreementStateName

TermsOfServiceKind

Required. Terms of Service kind associated with the particular version.

Declaration
public TermsOfServiceKind TermsOfServiceKind { get; set; }
Property Value
Type Description
TermsOfServiceKind
In this article
Back to top Generated by DocFX