Module: Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettingsService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/paths.rb
Overview
Path helper methods for the CheckoutSettingsService API.
Instance Method Summary collapse
-
#checkout_settings_path(account:, program:) ⇒ ::String
Create a fully-qualified CheckoutSettings resource string.
-
#program_path(account:, program:) ⇒ ::String
Create a fully-qualified Program resource string.
Instance Method Details
#checkout_settings_path(account:, program:) ⇒ ::String
Create a fully-qualified CheckoutSettings resource string.
The resource will be in the following format:
accounts/{account}/programs/{program}/checkoutSettings
39 40 41 42 43 |
# File 'lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/paths.rb', line 39 def checkout_settings_path account:, program: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/programs/#{program}/checkoutSettings" end |
#program_path(account:, program:) ⇒ ::String
Create a fully-qualified Program resource string.
The resource will be in the following format:
accounts/{account}/programs/{program}
56 57 58 59 60 |
# File 'lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/paths.rb', line 56 def program_path account:, program: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/programs/#{program}" end |