Module: PayPal::SDK::Permissions::Services

Includes:
DataTypes
Included in:
API
Defined in:
lib/paypal-sdk/permissions/services.rb

Instance Method Summary collapse

Instance Method Details

#BuildCancelPermissions(options = {}, &block) ⇒ Object Also known as: build_cancel_permissions



84
85
86
87
88
89
# File 'lib/paypal-sdk/permissions/services.rb', line 84

def BuildCancelPermissions(options = {}, &block)
  klass     = CancelPermissionsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetAccessToken(options = {}, &block) ⇒ Object Also known as: build_get_access_token



46
47
48
49
50
51
# File 'lib/paypal-sdk/permissions/services.rb', line 46

def BuildGetAccessToken(options = {}, &block)
  klass     = GetAccessTokenRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetAdvancedPersonalData(options = {}, &block) ⇒ Object Also known as: build_get_advanced_personal_data



122
123
124
125
126
127
# File 'lib/paypal-sdk/permissions/services.rb', line 122

def BuildGetAdvancedPersonalData(options = {}, &block)
  klass     = GetAdvancedPersonalDataRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetBasicPersonalData(options = {}, &block) ⇒ Object Also known as: build_get_basic_personal_data



103
104
105
106
107
108
# File 'lib/paypal-sdk/permissions/services.rb', line 103

def BuildGetBasicPersonalData(options = {}, &block)
  klass     = GetBasicPersonalDataRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetPermissions(options = {}, &block) ⇒ Object Also known as: build_get_permissions



65
66
67
68
69
70
# File 'lib/paypal-sdk/permissions/services.rb', line 65

def BuildGetPermissions(options = {}, &block)
  klass     = GetPermissionsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildRequestPermissions(options = {}, &block) ⇒ Object Also known as: build_request_permissions



27
28
29
30
31
32
# File 'lib/paypal-sdk/permissions/services.rb', line 27

def BuildRequestPermissions(options = {}, &block)
  klass     = RequestPermissionsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#CancelPermissions(options = {}, http_header = {}) ⇒ Object Also known as: cancel_permissions

Service Call: CancelPermissions

Parameters:

  • CancelPermissionsRequest

Returns:

  • CancelPermissionsResponse



76
77
78
79
80
81
# File 'lib/paypal-sdk/permissions/services.rb', line 76

def CancelPermissions(options = {} , http_header = {})
  request_object  = BuildCancelPermissions(options)
  request_hash    = request_object.to_hash
  response_hash   = request("CancelPermissions", request_hash, http_header)
  CancelPermissionsResponse.new(response_hash)
end

#GetAccessToken(options = {}, http_header = {}) ⇒ Object Also known as: get_access_token

Service Call: GetAccessToken

Parameters:

  • GetAccessTokenRequest

Returns:

  • GetAccessTokenResponse



38
39
40
41
42
43
# File 'lib/paypal-sdk/permissions/services.rb', line 38

def GetAccessToken(options = {} , http_header = {})
  request_object  = BuildGetAccessToken(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetAccessToken", request_hash, http_header)
  GetAccessTokenResponse.new(response_hash)
end

#GetAdvancedPersonalData(options = {}, http_header = {}) ⇒ Object Also known as: get_advanced_personal_data

Service Call: GetAdvancedPersonalData

Parameters:

  • GetAdvancedPersonalDataRequest

Returns:

  • GetAdvancedPersonalDataResponse



114
115
116
117
118
119
# File 'lib/paypal-sdk/permissions/services.rb', line 114

def GetAdvancedPersonalData(options = {} , http_header = {})
  request_object  = BuildGetAdvancedPersonalData(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetAdvancedPersonalData", request_hash, http_header)
  GetAdvancedPersonalDataResponse.new(response_hash)
end

#GetBasicPersonalData(options = {}, http_header = {}) ⇒ Object Also known as: get_basic_personal_data

Service Call: GetBasicPersonalData

Parameters:

  • GetBasicPersonalDataRequest

Returns:

  • GetBasicPersonalDataResponse



95
96
97
98
99
100
# File 'lib/paypal-sdk/permissions/services.rb', line 95

def GetBasicPersonalData(options = {} , http_header = {})
  request_object  = BuildGetBasicPersonalData(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetBasicPersonalData", request_hash, http_header)
  GetBasicPersonalDataResponse.new(response_hash)
end

#GetPermissions(options = {}, http_header = {}) ⇒ Object Also known as: get_permissions

Service Call: GetPermissions

Parameters:

  • GetPermissionsRequest

Returns:

  • GetPermissionsResponse



57
58
59
60
61
62
# File 'lib/paypal-sdk/permissions/services.rb', line 57

def GetPermissions(options = {} , http_header = {})
  request_object  = BuildGetPermissions(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetPermissions", request_hash, http_header)
  GetPermissionsResponse.new(response_hash)
end

#RequestPermissions(options = {}, http_header = {}) ⇒ Object Also known as: request_permissions

Service Call: RequestPermissions

Parameters:

  • RequestPermissionsRequest

Returns:

  • RequestPermissionsResponse



19
20
21
22
23
24
# File 'lib/paypal-sdk/permissions/services.rb', line 19

def RequestPermissions(options = {} , http_header = {})
  request_object  = BuildRequestPermissions(options)
  request_hash    = request_object.to_hash
  response_hash   = request("RequestPermissions", request_hash, http_header)
  RequestPermissionsResponse.new(response_hash)
end