Class: Google::Apis::ContentV2_1::CheckoutSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::CheckoutSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
CheckoutSettings for a specific merchant ID.
Instance Attribute Summary collapse
-
#effective_enrollment_state ⇒ String
Output only.
-
#effective_review_state ⇒ String
Output only.
-
#effective_uri_settings ⇒ Google::Apis::ContentV2_1::UrlSettings
Specifications related to the
CheckoutURL. -
#enrollment_state ⇒ String
Output only.
-
#merchant_id ⇒ Fixnum
Required.
-
#review_state ⇒ String
Output only.
-
#uri_settings ⇒ Google::Apis::ContentV2_1::UrlSettings
Specifications related to the
CheckoutURL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CheckoutSettings
constructor
A new instance of CheckoutSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CheckoutSettings
Returns a new instance of CheckoutSettings.
2951 2952 2953 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2951 def initialize(**args) update!(**args) end |
Instance Attribute Details
#effective_enrollment_state ⇒ String
Output only. The effective value of enrollment state for a given merchant ID.
If account level settings are present then this value will be a copy of the
account level settings. Otherwise, it will have the value of the parent
account.
Corresponds to the JSON property effectiveEnrollmentState
2904 2905 2906 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2904 def effective_enrollment_state @effective_enrollment_state end |
#effective_review_state ⇒ String
Output only. The effective value of review state for a given merchant ID. If
account level settings are present then this value will be a copy of the
account level settings. Otherwise, it will have the value of the parent
account.
Corresponds to the JSON property effectiveReviewState
2912 2913 2914 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2912 def effective_review_state @effective_review_state end |
#effective_uri_settings ⇒ Google::Apis::ContentV2_1::UrlSettings
Specifications related to the Checkout URL. The UriTemplate is of the form
https://www.mystore.com/checkout?item_id=idwhereid`will be
automatically replaced with data from the merchant account with this attribute
[offer_id](https://developers.google.com/shopping-content/reference/rest/v2.1/
products#Product.FIELDS.offer_id)
Corresponds to the JSON propertyeffectiveUriSettings`
2921 2922 2923 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2921 def effective_uri_settings @effective_uri_settings end |
#enrollment_state ⇒ String
Output only. Reflects the merchant enrollment state in Checkout feature.
Corresponds to the JSON property enrollmentState
2926 2927 2928 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2926 def enrollment_state @enrollment_state end |
#merchant_id ⇒ Fixnum
Required. The ID of the account.
Corresponds to the JSON property merchantId
2931 2932 2933 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2931 def merchant_id @merchant_id end |
#review_state ⇒ String
Output only. Reflects the merchant review state in Checkout feature. This is
set based on the data quality reviews of the URL provided by the merchant. A
merchant with enrollment state as ENROLLED can be in the following review
states: IN_REVIEW, APPROVED or DISAPPROVED. A merchant must be in an
enrollment_state of ENROLLED before a review can begin for the merchant.
Corresponds to the JSON property reviewState
2940 2941 2942 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2940 def review_state @review_state end |
#uri_settings ⇒ Google::Apis::ContentV2_1::UrlSettings
Specifications related to the Checkout URL. The UriTemplate is of the form
https://www.mystore.com/checkout?item_id=idwhereid`will be
automatically replaced with data from the merchant account with this attribute
[offer_id](https://developers.google.com/shopping-content/reference/rest/v2.1/
products#Product.FIELDS.offer_id)
Corresponds to the JSON propertyuriSettings`
2949 2950 2951 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2949 def uri_settings @uri_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2956 2957 2958 2959 2960 2961 2962 2963 2964 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2956 def update!(**args) @effective_enrollment_state = args[:effective_enrollment_state] if args.key?(:effective_enrollment_state) @effective_review_state = args[:effective_review_state] if args.key?(:effective_review_state) @effective_uri_settings = args[:effective_uri_settings] if args.key?(:effective_uri_settings) @enrollment_state = args[:enrollment_state] if args.key?(:enrollment_state) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @review_state = args[:review_state] if args.key?(:review_state) @uri_settings = args[:uri_settings] if args.key?(:uri_settings) end |