Autogenerated update (2019-10-10)
Delete: - urlshortener_v1 Update: - admin_directory_v1 - androidpublisher_v3 - bigquery_v2 - bigqueryconnection_v1beta1 - content_v2 - content_v2_1 - dialogflow_v2 - dialogflow_v2beta1 - iap_v1 - monitoring_v3 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - remotebuildexecution_v2 - servicemanagement_v1
This commit is contained in:
1 parent
1fff78a88a
commit
2cc4297828
44 files changed
+1102
-1145
No files matched your search
@@ -23,8 +23,8 @@ module Google
|
||||
module ContentV2
|
||||
|
||||
# Account data. After the creation of a new account it may take a few minutes
|
||||
# before it is fully operational. The methods delete, insert, patch, and update
|
||||
# require the admin role.
|
||||
# before it is fully operational. The methods delete, insert, and update require
|
||||
# the admin role.
|
||||
class Account
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -919,8 +919,8 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Account data. After the creation of a new account it may take a few minutes
|
||||
# before it is fully operational. The methods delete, insert, patch, and update
|
||||
# require the admin role.
|
||||
# before it is fully operational. The methods delete, insert, and update require
|
||||
# the admin role.
|
||||
# Corresponds to the JSON property `account`
|
||||
# @return [Google::Apis::ContentV2::Account]
|
||||
attr_accessor :account
|
||||
@@ -1044,8 +1044,8 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Account data. After the creation of a new account it may take a few minutes
|
||||
# before it is fully operational. The methods delete, insert, patch, and update
|
||||
# require the admin role.
|
||||
# before it is fully operational. The methods delete, insert, and update require
|
||||
# the admin role.
|
||||
# Corresponds to the JSON property `account`
|
||||
# @return [Google::Apis::ContentV2::Account]
|
||||
attr_accessor :account
|
||||
@@ -2101,6 +2101,11 @@ module Google
|
||||
# The list of destinations to include for this target (corresponds to checked
|
||||
# check boxes in Merchant Center). Default destinations are always included
|
||||
# unless provided in excludedDestinations.
|
||||
# List of supported destinations (if available to the account):
|
||||
# - DisplayAds
|
||||
# - Shopping
|
||||
# - ShoppingActions
|
||||
# - SurfacesAcrossGoogle
|
||||
# Corresponds to the JSON property `includedDestinations`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :included_destinations
|
||||
@@ -4033,7 +4038,8 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Order. All methods require the order manager role.
|
||||
# Order. Production access (all methods) requires the order manager role.
|
||||
# Sandbox access does not.
|
||||
class Order
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -5265,6 +5271,7 @@ module Google
|
||||
# - "mpx"
|
||||
# - "uds"
|
||||
# - "efw"
|
||||
# - "jd logistics"
|
||||
# Acceptable values for FR are:
|
||||
# - "colissimo"
|
||||
# - "chronopost"
|
||||
@@ -5274,6 +5281,8 @@ module Google
|
||||
# - "colis prive"
|
||||
# - "boxtal"
|
||||
# - "geodis"
|
||||
# - "tnt"
|
||||
# - "la poste"
|
||||
# Corresponds to the JSON property `carrier`
|
||||
# @return [String]
|
||||
attr_accessor :carrier
|
||||
@@ -5552,216 +5561,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyAuthApprovedRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Authorized amount for pre-tax charge on user's credit card.
|
||||
# Corresponds to the JSON property `authAmountPretax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :auth_amount_pretax
|
||||
|
||||
# Authorized amount for tax charge on user's credit card.
|
||||
# Corresponds to the JSON property `authAmountTax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :auth_amount_tax
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax)
|
||||
@auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyAuthApprovedResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# orderpaymentsNotifyAuthApprovedResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyAuthDeclinedRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Reason why payment authorization was declined.
|
||||
# Corresponds to the JSON property `declineReason`
|
||||
# @return [String]
|
||||
attr_accessor :decline_reason
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@decline_reason = args[:decline_reason] if args.key?(:decline_reason)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyAuthDeclinedResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# orderpaymentsNotifyAuthDeclinedResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyChargeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether charge was successful.
|
||||
# Corresponds to the JSON property `chargeState`
|
||||
# @return [String]
|
||||
attr_accessor :charge_state
|
||||
|
||||
# Deprecated. Please use invoiceIds instead.
|
||||
# Corresponds to the JSON property `invoiceId`
|
||||
# @return [String]
|
||||
attr_accessor :invoice_id
|
||||
|
||||
# Invoice IDs from the orderinvoices service that correspond to the charge.
|
||||
# Corresponds to the JSON property `invoiceIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :invoice_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@charge_state = args[:charge_state] if args.key?(:charge_state)
|
||||
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
||||
@invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyChargeResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# orderpaymentsNotifyChargeResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyRefundRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Deprecated. Please use invoiceIds instead.
|
||||
# Corresponds to the JSON property `invoiceId`
|
||||
# @return [String]
|
||||
attr_accessor :invoice_id
|
||||
|
||||
# Invoice IDs from the orderinvoices service that correspond to the refund.
|
||||
# Corresponds to the JSON property `invoiceIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :invoice_ids
|
||||
|
||||
# Whether refund was successful.
|
||||
# Corresponds to the JSON property `refundState`
|
||||
# @return [String]
|
||||
attr_accessor :refund_state
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
||||
@invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
|
||||
@refund_state = args[:refund_state] if args.key?(:refund_state)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderpaymentsNotifyRefundResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# orderpaymentsNotifyRefundResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderreportsListDisbursementsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -6987,7 +6786,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Order. All methods require the order manager role.
|
||||
# Order. Production access (all methods) requires the order manager role.
|
||||
# Sandbox access does not.
|
||||
# Corresponds to the JSON property `order`
|
||||
# @return [Google::Apis::ContentV2::Order]
|
||||
attr_accessor :order
|
||||
@@ -7016,7 +6816,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Order. All methods require the order manager role.
|
||||
# Order. Production access (all methods) requires the order manager role.
|
||||
# Sandbox access does not.
|
||||
# Corresponds to the JSON property `order`
|
||||
# @return [Google::Apis::ContentV2::Order]
|
||||
attr_accessor :order
|
||||
@@ -9007,7 +8808,9 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :size_type
|
||||
|
||||
# Size of the item.
|
||||
# Size of the item. Only one value is allowed. For variants with different sizes,
|
||||
# insert a separate product for each size with the same itemGroupId value (see
|
||||
# size definition).
|
||||
# Corresponds to the JSON property `sizes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :sizes
|
||||
|
||||
@@ -832,54 +832,6 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthApprovedRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthApprovedResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthDeclinedRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthDeclinedResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyChargeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyChargeResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyRefundRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyRefundResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderreportsListDisbursementsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -3189,73 +3141,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthApprovedRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auth_amount_pretax, as: 'authAmountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :auth_amount_tax, as: 'authAmountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthApprovedResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthDeclinedRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :decline_reason, as: 'declineReason'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyAuthDeclinedResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyChargeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :charge_state, as: 'chargeState'
|
||||
property :invoice_id, as: 'invoiceId'
|
||||
collection :invoice_ids, as: 'invoiceIds'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyChargeResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyRefundRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :invoice_id, as: 'invoiceId'
|
||||
collection :invoice_ids, as: 'invoiceIds'
|
||||
property :refund_state, as: 'refundState'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderpaymentsNotifyRefundResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderreportsListDisbursementsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -1672,166 +1672,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Notify about successfully authorizing user's payment method for a given amount.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order for for which payment authorization is happening.
|
||||
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest::Representation
|
||||
command.request_object = orderpayments_notify_auth_approved_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Notify about failure to authorize user's payment method.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order for which payment authorization was declined.
|
||||
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest::Representation
|
||||
command.request_object = orderpayments_notify_auth_declined_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Notify about charge on user's selected payments method.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order for which charge is happening.
|
||||
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest::Representation
|
||||
command.request_object = orderpayments_notify_charge_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Notify about refund on user's selected payments method.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order for which charge is happening.
|
||||
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest::Representation
|
||||
command.request_object = orderpayments_notify_refund_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a report for disbursements from your Merchant Center account.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
|
||||
Reference in new issue
Block a user