Module: PayPal::SDK::ButtonManagerRails::Services

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

Instance Method Summary collapse

Instance Method Details

#BMButtonSearch(options = {}, http_header = {}) ⇒ Object Also known as: bm_button_search

Service Call: BMButtonSearch

Parameters:

  • BMButtonSearchReq

Returns:

  • BMButtonSearchResponseType



145
146
147
148
149
150
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 145

def BMButtonSearch(options = {} , http_header = {})
  request_object  = BuildBMButtonSearch(options)
  request_hash    = request_object.to_hash
  response_hash   = request("BMButtonSearch", request_hash, http_header)
  BMButtonSearchResponseType.new(response_hash)
end

#BMCreateButton(options = {}, http_header = {}) ⇒ Object Also known as: bm_create_button

Service Call: BMCreateButton

Parameters:

  • BMCreateButtonReq

Returns:

  • BMCreateButtonResponseType



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

def BMCreateButton(options = {} , http_header = {})
  request_object  = BuildBMCreateButton(options)
  request_hash    = request_object.to_hash
  response_hash   = request("BMCreateButton", request_hash, http_header)
  BMCreateButtonResponseType.new(response_hash)
end

#BMGetButtonDetails(options = {}, http_header = {}) ⇒ Object Also known as: bm_get_button_details

Service Call: BMGetButtonDetails

Parameters:

  • BMGetButtonDetailsReq

Returns:

  • BMGetButtonDetailsResponseType



82
83
84
85
86
87
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 82

def BMGetButtonDetails(options = {} , http_header = {})
  request_object  = BuildBMGetButtonDetails(options)
  request_hash    = request_object.to_hash
  response_hash   = request("BMGetButtonDetails", request_hash, http_header)
  BMGetButtonDetailsResponseType.new(response_hash)
end

#BMGetInventory(options = {}, http_header = {}) ⇒ Object Also known as: bm_get_inventory

Service Call: BMGetInventory

Parameters:

  • BMGetInventoryReq

Returns:

  • BMGetInventoryResponseType



124
125
126
127
128
129
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 124

def BMGetInventory(options = {} , http_header = {})
  request_object  = BuildBMGetInventory(options)
  request_hash    = request_object.to_hash
  response_hash   = request("BMGetInventory", request_hash, http_header)
  BMGetInventoryResponseType.new(response_hash)
end

#BMManageButtonStatus(options = {}, http_header = {}) ⇒ Object Also known as: bm_manage_button_status

Service Call: BMManageButtonStatus

Parameters:

  • BMManageButtonStatusReq

Returns:

  • BMManageButtonStatusResponseType



61
62
63
64
65
66
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 61

def BMManageButtonStatus(options = {} , http_header = {})
  request_object  = BuildBMManageButtonStatus(options)
  request_hash    = request_object.to_hash
  response_hash   = request("BMManageButtonStatus", request_hash, http_header)
  BMManageButtonStatusResponseType.new(response_hash)
end

#BMSetInventory(options = {}, http_header = {}) ⇒ Object Also known as: bm_set_inventory

Service Call: BMSetInventory

Parameters:

  • BMSetInventoryReq

Returns:

  • BMSetInventoryResponseType



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

def BMSetInventory(options = {} , http_header = {})
  request_object  = BuildBMSetInventory(options)
  request_hash    = request_object.to_hash
  response_hash   = request("BMSetInventory", request_hash, http_header)
  BMSetInventoryResponseType.new(response_hash)
end

#BMUpdateButton(options = {}, http_header = {}) ⇒ Object Also known as: bm_update_button

Service Call: BMUpdateButton

Parameters:

  • BMUpdateButtonReq

Returns:

  • BMUpdateButtonResponseType



40
41
42
43
44
45
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 40

def BMUpdateButton(options = {} , http_header = {})
  request_object  = BuildBMUpdateButton(options)
  request_hash    = request_object.to_hash
  response_hash   = request("BMUpdateButton", request_hash, http_header)
  BMUpdateButtonResponseType.new(response_hash)
end

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



153
154
155
156
157
158
159
160
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 153

def BuildBMButtonSearch(options = {}, &block)
  klass     = BMButtonSearchReq
  options = klass.new(:BMButtonSearchRequest => options) unless options.is_a?(klass)
  object = (options.BMButtonSearchRequest ||= {})
  object.version = SERVICE_VERSION
  object.instance_eval(&block) if block
  object
end

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



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

def BuildBMCreateButton(options = {}, &block)
  klass     = BMCreateButtonReq
  options = klass.new(:BMCreateButtonRequest => options) unless options.is_a?(klass)
  object = (options.BMCreateButtonRequest ||= {})
  object.version = SERVICE_VERSION
  object.instance_eval(&block) if block
  object
end

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



90
91
92
93
94
95
96
97
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 90

def BuildBMGetButtonDetails(options = {}, &block)
  klass     = BMGetButtonDetailsReq
  options = klass.new(:BMGetButtonDetailsRequest => options) unless options.is_a?(klass)
  object = (options.BMGetButtonDetailsRequest ||= {})
  object.version = SERVICE_VERSION
  object.instance_eval(&block) if block
  object
end

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



132
133
134
135
136
137
138
139
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 132

def BuildBMGetInventory(options = {}, &block)
  klass     = BMGetInventoryReq
  options = klass.new(:BMGetInventoryRequest => options) unless options.is_a?(klass)
  object = (options.BMGetInventoryRequest ||= {})
  object.version = SERVICE_VERSION
  object.instance_eval(&block) if block
  object
end

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



69
70
71
72
73
74
75
76
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 69

def BuildBMManageButtonStatus(options = {}, &block)
  klass     = BMManageButtonStatusReq
  options = klass.new(:BMManageButtonStatusRequest => options) unless options.is_a?(klass)
  object = (options.BMManageButtonStatusRequest ||= {})
  object.version = SERVICE_VERSION
  object.instance_eval(&block) if block
  object
end

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



111
112
113
114
115
116
117
118
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 111

def BuildBMSetInventory(options = {}, &block)
  klass     = BMSetInventoryReq
  options = klass.new(:BMSetInventoryRequest => options) unless options.is_a?(klass)
  object = (options.BMSetInventoryRequest ||= {})
  object.version = SERVICE_VERSION
  object.instance_eval(&block) if block
  object
end

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



48
49
50
51
52
53
54
55
# File 'lib/paypal-sdk/button_manager_rails/services.rb', line 48

def BuildBMUpdateButton(options = {}, &block)
  klass     = BMUpdateButtonReq
  options = klass.new(:BMUpdateButtonRequest => options) unless options.is_a?(klass)
  object = (options.BMUpdateButtonRequest ||= {})
  object.version = SERVICE_VERSION
  object.instance_eval(&block) if block
  object
end