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

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

Parameters:

  • account (String)
  • program (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"

  "accounts/#{}/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}

Parameters:

  • account (String)
  • program (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"

  "accounts/#{}/programs/#{program}"
end