Module: PayPal::SDK::Invoice::Services

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

Instance Method Summary collapse

Instance Method Details

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



160
161
162
163
164
165
# File 'lib/paypal-sdk/invoice/services.rb', line 160

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

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



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

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

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



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

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

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



255
256
257
258
259
260
# File 'lib/paypal-sdk/invoice/services.rb', line 255

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

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



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

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

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



141
142
143
144
145
146
# File 'lib/paypal-sdk/invoice/services.rb', line 141

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

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



198
199
200
201
202
203
# File 'lib/paypal-sdk/invoice/services.rb', line 198

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

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



236
237
238
239
240
241
# File 'lib/paypal-sdk/invoice/services.rb', line 236

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

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



217
218
219
220
221
222
# File 'lib/paypal-sdk/invoice/services.rb', line 217

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

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



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

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

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



179
180
181
182
183
184
# File 'lib/paypal-sdk/invoice/services.rb', line 179

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

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



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

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

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



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

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

#CancelInvoice(options = {}, http_header = {}) ⇒ Object Also known as: cancel_invoice

Service Call: CancelInvoice

Parameters:

  • CancelInvoiceRequest

Returns:

  • CancelInvoiceResponse



152
153
154
155
156
157
# File 'lib/paypal-sdk/invoice/services.rb', line 152

def CancelInvoice(options = {} , http_header = {})
  request_object  = BuildCancelInvoice(options)
  request_hash    = request_object.to_hash
  response_hash   = request("CancelInvoice", request_hash, http_header)
  CancelInvoiceResponse.new(response_hash)
end

#CreateAndSendInvoice(options = {}, http_header = {}) ⇒ Object Also known as: create_and_send_invoice

Service Call: CreateAndSendInvoice

Parameters:

  • CreateAndSendInvoiceRequest

Returns:

  • CreateAndSendInvoiceResponse



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

def CreateAndSendInvoice(options = {} , http_header = {})
  request_object  = BuildCreateAndSendInvoice(options)
  request_hash    = request_object.to_hash
  response_hash   = request("CreateAndSendInvoice", request_hash, http_header)
  CreateAndSendInvoiceResponse.new(response_hash)
end

#CreateInvoice(options = {}, http_header = {}) ⇒ Object Also known as: create_invoice

Service Call: CreateInvoice

Parameters:

  • CreateInvoiceRequest

Returns:

  • CreateInvoiceResponse



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

def CreateInvoice(options = {} , http_header = {})
  request_object  = BuildCreateInvoice(options)
  request_hash    = request_object.to_hash
  response_hash   = request("CreateInvoice", request_hash, http_header)
  CreateInvoiceResponse.new(response_hash)
end

#DeleteInvoice(options = {}, http_header = {}) ⇒ Object Also known as: delete_invoice

Service Call: DeleteInvoice

Parameters:

  • DeleteInvoiceRequest

Returns:

  • DeleteInvoiceResponse



247
248
249
250
251
252
# File 'lib/paypal-sdk/invoice/services.rb', line 247

def DeleteInvoice(options = {} , http_header = {})
  request_object  = BuildDeleteInvoice(options)
  request_hash    = request_object.to_hash
  response_hash   = request("DeleteInvoice", request_hash, http_header)
  DeleteInvoiceResponse.new(response_hash)
end

#GenerateInvoiceNumber(options = {}, http_header = {}) ⇒ Object Also known as: generate_invoice_number

Service Call: GenerateInvoiceNumber

Parameters:

  • GenerateInvoiceNumberRequest

Returns:

  • GenerateInvoiceNumberResponse



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

def GenerateInvoiceNumber(options = {} , http_header = {})
  request_object  = BuildGenerateInvoiceNumber(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GenerateInvoiceNumber", request_hash, http_header)
  GenerateInvoiceNumberResponse.new(response_hash)
end

#GetInvoiceDetails(options = {}, http_header = {}) ⇒ Object Also known as: get_invoice_details

Service Call: GetInvoiceDetails

Parameters:

  • GetInvoiceDetailsRequest

Returns:

  • GetInvoiceDetailsResponse



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

def GetInvoiceDetails(options = {} , http_header = {})
  request_object  = BuildGetInvoiceDetails(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetInvoiceDetails", request_hash, http_header)
  GetInvoiceDetailsResponse.new(response_hash)
end

#MarkInvoiceAsPaid(options = {}, http_header = {}) ⇒ Object Also known as: mark_invoice_as_paid

Service Call: MarkInvoiceAsPaid

Parameters:

  • MarkInvoiceAsPaidRequest

Returns:

  • MarkInvoiceAsPaidResponse



190
191
192
193
194
195
# File 'lib/paypal-sdk/invoice/services.rb', line 190

def MarkInvoiceAsPaid(options = {} , http_header = {})
  request_object  = BuildMarkInvoiceAsPaid(options)
  request_hash    = request_object.to_hash
  response_hash   = request("MarkInvoiceAsPaid", request_hash, http_header)
  MarkInvoiceAsPaidResponse.new(response_hash)
end

#MarkInvoiceAsRefunded(options = {}, http_header = {}) ⇒ Object Also known as: mark_invoice_as_refunded

Service Call: MarkInvoiceAsRefunded

Parameters:

  • MarkInvoiceAsRefundedRequest

Returns:

  • MarkInvoiceAsRefundedResponse



228
229
230
231
232
233
# File 'lib/paypal-sdk/invoice/services.rb', line 228

def MarkInvoiceAsRefunded(options = {} , http_header = {})
  request_object  = BuildMarkInvoiceAsRefunded(options)
  request_hash    = request_object.to_hash
  response_hash   = request("MarkInvoiceAsRefunded", request_hash, http_header)
  MarkInvoiceAsRefundedResponse.new(response_hash)
end

#MarkInvoiceAsUnpaid(options = {}, http_header = {}) ⇒ Object Also known as: mark_invoice_as_unpaid

Service Call: MarkInvoiceAsUnpaid

Parameters:

  • MarkInvoiceAsUnpaidRequest

Returns:

  • MarkInvoiceAsUnpaidResponse



209
210
211
212
213
214
# File 'lib/paypal-sdk/invoice/services.rb', line 209

def MarkInvoiceAsUnpaid(options = {} , http_header = {})
  request_object  = BuildMarkInvoiceAsUnpaid(options)
  request_hash    = request_object.to_hash
  response_hash   = request("MarkInvoiceAsUnpaid", request_hash, http_header)
  MarkInvoiceAsUnpaidResponse.new(response_hash)
end

#RemindInvoice(options = {}, http_header = {}) ⇒ Object Also known as: remind_invoice

Service Call: RemindInvoice

Parameters:

  • RemindInvoiceRequest

Returns:

  • RemindInvoiceResponse



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

def RemindInvoice(options = {} , http_header = {})
  request_object  = BuildRemindInvoice(options)
  request_hash    = request_object.to_hash
  response_hash   = request("RemindInvoice", request_hash, http_header)
  RemindInvoiceResponse.new(response_hash)
end

#SearchInvoices(options = {}, http_header = {}) ⇒ Object Also known as: search_invoices

Service Call: SearchInvoices

Parameters:

  • SearchInvoicesRequest

Returns:

  • SearchInvoicesResponse



171
172
173
174
175
176
# File 'lib/paypal-sdk/invoice/services.rb', line 171

def SearchInvoices(options = {} , http_header = {})
  request_object  = BuildSearchInvoices(options)
  request_hash    = request_object.to_hash
  response_hash   = request("SearchInvoices", request_hash, http_header)
  SearchInvoicesResponse.new(response_hash)
end

#SendInvoice(options = {}, http_header = {}) ⇒ Object Also known as: send_invoice

Service Call: SendInvoice

Parameters:

  • SendInvoiceRequest

Returns:

  • SendInvoiceResponse



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

def SendInvoice(options = {} , http_header = {})
  request_object  = BuildSendInvoice(options)
  request_hash    = request_object.to_hash
  response_hash   = request("SendInvoice", request_hash, http_header)
  SendInvoiceResponse.new(response_hash)
end

#UpdateInvoice(options = {}, http_header = {}) ⇒ Object Also known as: update_invoice

Service Call: UpdateInvoice

Parameters:

  • UpdateInvoiceRequest

Returns:

  • UpdateInvoiceResponse



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

def UpdateInvoice(options = {} , http_header = {})
  request_object  = BuildUpdateInvoice(options)
  request_hash    = request_object.to_hash
  response_hash   = request("UpdateInvoice", request_hash, http_header)
  UpdateInvoiceResponse.new(response_hash)
end