paypal-sdk-invoice 1.106.0 → 1.117.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,248 +1,267 @@
1
- require 'paypal-sdk-core'
2
-
3
- # AUTO GENERATED code for Invoice
4
- module PayPal::SDK
5
- module Invoice
6
-
7
- # Service Version
8
- SERVICE_VERSION = "1.10.0"
9
- # Service Name
10
- SERVICE_NAME = "Invoice"
11
-
12
- module Services
13
- include DataTypes
14
-
15
-
16
- # Service Call: CreateInvoice
17
- # @param CreateInvoiceRequest
18
- # @return CreateInvoiceResponse
19
- def CreateInvoice(options = {} , http_header = {})
20
- request_object = BuildCreateInvoice(options)
21
- request_hash = request_object.to_hash
22
- response_hash = request("CreateInvoice", request_hash, http_header)
23
- CreateInvoiceResponse.new(response_hash)
24
- end
25
- alias_method :create_invoice, :CreateInvoice
26
-
27
- def BuildCreateInvoice(options = {}, &block)
28
- klass = CreateInvoiceRequest
29
- object = options.is_a?(klass) ? options : klass.new(options || {})
30
- object.instance_eval(&block) if block
31
- object
32
- end
33
- alias_method :build_create_invoice, :BuildCreateInvoice
34
-
35
- # Service Call: SendInvoice
36
- # @param SendInvoiceRequest
37
- # @return SendInvoiceResponse
38
- def SendInvoice(options = {} , http_header = {})
39
- request_object = BuildSendInvoice(options)
40
- request_hash = request_object.to_hash
41
- response_hash = request("SendInvoice", request_hash, http_header)
42
- SendInvoiceResponse.new(response_hash)
43
- end
44
- alias_method :send_invoice, :SendInvoice
45
-
46
- def BuildSendInvoice(options = {}, &block)
47
- klass = SendInvoiceRequest
48
- object = options.is_a?(klass) ? options : klass.new(options || {})
49
- object.instance_eval(&block) if block
50
- object
51
- end
52
- alias_method :build_send_invoice, :BuildSendInvoice
53
-
54
- # Service Call: RemindInvoice
55
- # @param RemindInvoiceRequest
56
- # @return RemindInvoiceResponse
57
- def RemindInvoice(options = {} , http_header = {})
58
- request_object = BuildRemindInvoice(options)
59
- request_hash = request_object.to_hash
60
- response_hash = request("RemindInvoice", request_hash, http_header)
61
- RemindInvoiceResponse.new(response_hash)
62
- end
63
- alias_method :remind_invoice, :RemindInvoice
64
-
65
- def BuildRemindInvoice(options = {}, &block)
66
- klass = RemindInvoiceRequest
67
- object = options.is_a?(klass) ? options : klass.new(options || {})
68
- object.instance_eval(&block) if block
69
- object
70
- end
71
- alias_method :build_remind_invoice, :BuildRemindInvoice
72
-
73
- # Service Call: CreateAndSendInvoice
74
- # @param CreateAndSendInvoiceRequest
75
- # @return CreateAndSendInvoiceResponse
76
- def CreateAndSendInvoice(options = {} , http_header = {})
77
- request_object = BuildCreateAndSendInvoice(options)
78
- request_hash = request_object.to_hash
79
- response_hash = request("CreateAndSendInvoice", request_hash, http_header)
80
- CreateAndSendInvoiceResponse.new(response_hash)
81
- end
82
- alias_method :create_and_send_invoice, :CreateAndSendInvoice
83
-
84
- def BuildCreateAndSendInvoice(options = {}, &block)
85
- klass = CreateAndSendInvoiceRequest
86
- object = options.is_a?(klass) ? options : klass.new(options || {})
87
- object.instance_eval(&block) if block
88
- object
89
- end
90
- alias_method :build_create_and_send_invoice, :BuildCreateAndSendInvoice
91
-
92
- # Service Call: UpdateInvoice
93
- # @param UpdateInvoiceRequest
94
- # @return UpdateInvoiceResponse
95
- def UpdateInvoice(options = {} , http_header = {})
96
- request_object = BuildUpdateInvoice(options)
97
- request_hash = request_object.to_hash
98
- response_hash = request("UpdateInvoice", request_hash, http_header)
99
- UpdateInvoiceResponse.new(response_hash)
100
- end
101
- alias_method :update_invoice, :UpdateInvoice
102
-
103
- def BuildUpdateInvoice(options = {}, &block)
104
- klass = UpdateInvoiceRequest
105
- object = options.is_a?(klass) ? options : klass.new(options || {})
106
- object.instance_eval(&block) if block
107
- object
108
- end
109
- alias_method :build_update_invoice, :BuildUpdateInvoice
110
-
111
- # Service Call: GetInvoiceDetails
112
- # @param GetInvoiceDetailsRequest
113
- # @return GetInvoiceDetailsResponse
114
- def GetInvoiceDetails(options = {} , http_header = {})
115
- request_object = BuildGetInvoiceDetails(options)
116
- request_hash = request_object.to_hash
117
- response_hash = request("GetInvoiceDetails", request_hash, http_header)
118
- GetInvoiceDetailsResponse.new(response_hash)
119
- end
120
- alias_method :get_invoice_details, :GetInvoiceDetails
121
-
122
- def BuildGetInvoiceDetails(options = {}, &block)
123
- klass = GetInvoiceDetailsRequest
124
- object = options.is_a?(klass) ? options : klass.new(options || {})
125
- object.instance_eval(&block) if block
126
- object
127
- end
128
- alias_method :build_get_invoice_details, :BuildGetInvoiceDetails
129
-
130
- # Service Call: CancelInvoice
131
- # @param CancelInvoiceRequest
132
- # @return CancelInvoiceResponse
133
- def CancelInvoice(options = {} , http_header = {})
134
- request_object = BuildCancelInvoice(options)
135
- request_hash = request_object.to_hash
136
- response_hash = request("CancelInvoice", request_hash, http_header)
137
- CancelInvoiceResponse.new(response_hash)
138
- end
139
- alias_method :cancel_invoice, :CancelInvoice
140
-
141
- def BuildCancelInvoice(options = {}, &block)
142
- klass = CancelInvoiceRequest
143
- object = options.is_a?(klass) ? options : klass.new(options || {})
144
- object.instance_eval(&block) if block
145
- object
146
- end
147
- alias_method :build_cancel_invoice, :BuildCancelInvoice
148
-
149
- # Service Call: SearchInvoices
150
- # @param SearchInvoicesRequest
151
- # @return SearchInvoicesResponse
152
- def SearchInvoices(options = {} , http_header = {})
153
- request_object = BuildSearchInvoices(options)
154
- request_hash = request_object.to_hash
155
- response_hash = request("SearchInvoices", request_hash, http_header)
156
- SearchInvoicesResponse.new(response_hash)
157
- end
158
- alias_method :search_invoices, :SearchInvoices
159
-
160
- def BuildSearchInvoices(options = {}, &block)
161
- klass = SearchInvoicesRequest
162
- object = options.is_a?(klass) ? options : klass.new(options || {})
163
- object.instance_eval(&block) if block
164
- object
165
- end
166
- alias_method :build_search_invoices, :BuildSearchInvoices
167
-
168
- # Service Call: MarkInvoiceAsPaid
169
- # @param MarkInvoiceAsPaidRequest
170
- # @return MarkInvoiceAsPaidResponse
171
- def MarkInvoiceAsPaid(options = {} , http_header = {})
172
- request_object = BuildMarkInvoiceAsPaid(options)
173
- request_hash = request_object.to_hash
174
- response_hash = request("MarkInvoiceAsPaid", request_hash, http_header)
175
- MarkInvoiceAsPaidResponse.new(response_hash)
176
- end
177
- alias_method :mark_invoice_as_paid, :MarkInvoiceAsPaid
178
-
179
- def BuildMarkInvoiceAsPaid(options = {}, &block)
180
- klass = MarkInvoiceAsPaidRequest
181
- object = options.is_a?(klass) ? options : klass.new(options || {})
182
- object.instance_eval(&block) if block
183
- object
184
- end
185
- alias_method :build_mark_invoice_as_paid, :BuildMarkInvoiceAsPaid
186
-
187
- # Service Call: MarkInvoiceAsUnpaid
188
- # @param MarkInvoiceAsUnpaidRequest
189
- # @return MarkInvoiceAsUnpaidResponse
190
- def MarkInvoiceAsUnpaid(options = {} , http_header = {})
191
- request_object = BuildMarkInvoiceAsUnpaid(options)
192
- request_hash = request_object.to_hash
193
- response_hash = request("MarkInvoiceAsUnpaid", request_hash, http_header)
194
- MarkInvoiceAsUnpaidResponse.new(response_hash)
195
- end
196
- alias_method :mark_invoice_as_unpaid, :MarkInvoiceAsUnpaid
197
-
198
- def BuildMarkInvoiceAsUnpaid(options = {}, &block)
199
- klass = MarkInvoiceAsUnpaidRequest
200
- object = options.is_a?(klass) ? options : klass.new(options || {})
201
- object.instance_eval(&block) if block
202
- object
203
- end
204
- alias_method :build_mark_invoice_as_unpaid, :BuildMarkInvoiceAsUnpaid
205
-
206
- # Service Call: MarkInvoiceAsRefunded
207
- # @param MarkInvoiceAsRefundedRequest
208
- # @return MarkInvoiceAsRefundedResponse
209
- def MarkInvoiceAsRefunded(options = {} , http_header = {})
210
- request_object = BuildMarkInvoiceAsRefunded(options)
211
- request_hash = request_object.to_hash
212
- response_hash = request("MarkInvoiceAsRefunded", request_hash, http_header)
213
- MarkInvoiceAsRefundedResponse.new(response_hash)
214
- end
215
- alias_method :mark_invoice_as_refunded, :MarkInvoiceAsRefunded
216
-
217
- def BuildMarkInvoiceAsRefunded(options = {}, &block)
218
- klass = MarkInvoiceAsRefundedRequest
219
- object = options.is_a?(klass) ? options : klass.new(options || {})
220
- object.instance_eval(&block) if block
221
- object
222
- end
223
- alias_method :build_mark_invoice_as_refunded, :BuildMarkInvoiceAsRefunded
224
-
225
- # Service Call: DeleteInvoice
226
- # @param DeleteInvoiceRequest
227
- # @return DeleteInvoiceResponse
228
- def DeleteInvoice(options = {} , http_header = {})
229
- request_object = BuildDeleteInvoice(options)
230
- request_hash = request_object.to_hash
231
- response_hash = request("DeleteInvoice", request_hash, http_header)
232
- DeleteInvoiceResponse.new(response_hash)
233
- end
234
- alias_method :delete_invoice, :DeleteInvoice
235
-
236
- def BuildDeleteInvoice(options = {}, &block)
237
- klass = DeleteInvoiceRequest
238
- object = options.is_a?(klass) ? options : klass.new(options || {})
239
- object.instance_eval(&block) if block
240
- object
241
- end
242
- alias_method :build_delete_invoice, :BuildDeleteInvoice
243
-
244
-
245
- end
246
-
247
- end
248
- end
1
+ require 'paypal-sdk-core'
2
+
3
+ # AUTO GENERATED code for Invoice
4
+ module PayPal::SDK
5
+ module Invoice
6
+
7
+ # Service Version
8
+ SERVICE_VERSION = "1.12.0"
9
+ # Service Name
10
+ SERVICE_NAME = "Invoice"
11
+
12
+ module Services
13
+ include DataTypes
14
+
15
+
16
+ # Service Call: CreateInvoice
17
+ # @param CreateInvoiceRequest
18
+ # @return CreateInvoiceResponse
19
+ def CreateInvoice(options = {} , http_header = {})
20
+ request_object = BuildCreateInvoice(options)
21
+ request_hash = request_object.to_hash
22
+ response_hash = request("CreateInvoice", request_hash, http_header)
23
+ CreateInvoiceResponse.new(response_hash)
24
+ end
25
+ alias_method :create_invoice, :CreateInvoice
26
+
27
+ def BuildCreateInvoice(options = {}, &block)
28
+ klass = CreateInvoiceRequest
29
+ object = options.is_a?(klass) ? options : klass.new(options || {})
30
+ object.instance_eval(&block) if block
31
+ object
32
+ end
33
+ alias_method :build_create_invoice, :BuildCreateInvoice
34
+
35
+ # Service Call: SendInvoice
36
+ # @param SendInvoiceRequest
37
+ # @return SendInvoiceResponse
38
+ def SendInvoice(options = {} , http_header = {})
39
+ request_object = BuildSendInvoice(options)
40
+ request_hash = request_object.to_hash
41
+ response_hash = request("SendInvoice", request_hash, http_header)
42
+ SendInvoiceResponse.new(response_hash)
43
+ end
44
+ alias_method :send_invoice, :SendInvoice
45
+
46
+ def BuildSendInvoice(options = {}, &block)
47
+ klass = SendInvoiceRequest
48
+ object = options.is_a?(klass) ? options : klass.new(options || {})
49
+ object.instance_eval(&block) if block
50
+ object
51
+ end
52
+ alias_method :build_send_invoice, :BuildSendInvoice
53
+
54
+ # Service Call: RemindInvoice
55
+ # @param RemindInvoiceRequest
56
+ # @return RemindInvoiceResponse
57
+ def RemindInvoice(options = {} , http_header = {})
58
+ request_object = BuildRemindInvoice(options)
59
+ request_hash = request_object.to_hash
60
+ response_hash = request("RemindInvoice", request_hash, http_header)
61
+ RemindInvoiceResponse.new(response_hash)
62
+ end
63
+ alias_method :remind_invoice, :RemindInvoice
64
+
65
+ def BuildRemindInvoice(options = {}, &block)
66
+ klass = RemindInvoiceRequest
67
+ object = options.is_a?(klass) ? options : klass.new(options || {})
68
+ object.instance_eval(&block) if block
69
+ object
70
+ end
71
+ alias_method :build_remind_invoice, :BuildRemindInvoice
72
+
73
+ # Service Call: GenerateInvoiceNumber
74
+ # @param GenerateInvoiceNumberRequest
75
+ # @return GenerateInvoiceNumberResponse
76
+ def GenerateInvoiceNumber(options = {} , http_header = {})
77
+ request_object = BuildGenerateInvoiceNumber(options)
78
+ request_hash = request_object.to_hash
79
+ response_hash = request("GenerateInvoiceNumber", request_hash, http_header)
80
+ GenerateInvoiceNumberResponse.new(response_hash)
81
+ end
82
+ alias_method :generate_invoice_number, :GenerateInvoiceNumber
83
+
84
+ def BuildGenerateInvoiceNumber(options = {}, &block)
85
+ klass = GenerateInvoiceNumberRequest
86
+ object = options.is_a?(klass) ? options : klass.new(options || {})
87
+ object.instance_eval(&block) if block
88
+ object
89
+ end
90
+ alias_method :build_generate_invoice_number, :BuildGenerateInvoiceNumber
91
+
92
+ # Service Call: CreateAndSendInvoice
93
+ # @param CreateAndSendInvoiceRequest
94
+ # @return CreateAndSendInvoiceResponse
95
+ def CreateAndSendInvoice(options = {} , http_header = {})
96
+ request_object = BuildCreateAndSendInvoice(options)
97
+ request_hash = request_object.to_hash
98
+ response_hash = request("CreateAndSendInvoice", request_hash, http_header)
99
+ CreateAndSendInvoiceResponse.new(response_hash)
100
+ end
101
+ alias_method :create_and_send_invoice, :CreateAndSendInvoice
102
+
103
+ def BuildCreateAndSendInvoice(options = {}, &block)
104
+ klass = CreateAndSendInvoiceRequest
105
+ object = options.is_a?(klass) ? options : klass.new(options || {})
106
+ object.instance_eval(&block) if block
107
+ object
108
+ end
109
+ alias_method :build_create_and_send_invoice, :BuildCreateAndSendInvoice
110
+
111
+ # Service Call: UpdateInvoice
112
+ # @param UpdateInvoiceRequest
113
+ # @return UpdateInvoiceResponse
114
+ def UpdateInvoice(options = {} , http_header = {})
115
+ request_object = BuildUpdateInvoice(options)
116
+ request_hash = request_object.to_hash
117
+ response_hash = request("UpdateInvoice", request_hash, http_header)
118
+ UpdateInvoiceResponse.new(response_hash)
119
+ end
120
+ alias_method :update_invoice, :UpdateInvoice
121
+
122
+ def BuildUpdateInvoice(options = {}, &block)
123
+ klass = UpdateInvoiceRequest
124
+ object = options.is_a?(klass) ? options : klass.new(options || {})
125
+ object.instance_eval(&block) if block
126
+ object
127
+ end
128
+ alias_method :build_update_invoice, :BuildUpdateInvoice
129
+
130
+ # Service Call: GetInvoiceDetails
131
+ # @param GetInvoiceDetailsRequest
132
+ # @return GetInvoiceDetailsResponse
133
+ def GetInvoiceDetails(options = {} , http_header = {})
134
+ request_object = BuildGetInvoiceDetails(options)
135
+ request_hash = request_object.to_hash
136
+ response_hash = request("GetInvoiceDetails", request_hash, http_header)
137
+ GetInvoiceDetailsResponse.new(response_hash)
138
+ end
139
+ alias_method :get_invoice_details, :GetInvoiceDetails
140
+
141
+ def BuildGetInvoiceDetails(options = {}, &block)
142
+ klass = GetInvoiceDetailsRequest
143
+ object = options.is_a?(klass) ? options : klass.new(options || {})
144
+ object.instance_eval(&block) if block
145
+ object
146
+ end
147
+ alias_method :build_get_invoice_details, :BuildGetInvoiceDetails
148
+
149
+ # Service Call: CancelInvoice
150
+ # @param CancelInvoiceRequest
151
+ # @return CancelInvoiceResponse
152
+ def CancelInvoice(options = {} , http_header = {})
153
+ request_object = BuildCancelInvoice(options)
154
+ request_hash = request_object.to_hash
155
+ response_hash = request("CancelInvoice", request_hash, http_header)
156
+ CancelInvoiceResponse.new(response_hash)
157
+ end
158
+ alias_method :cancel_invoice, :CancelInvoice
159
+
160
+ def BuildCancelInvoice(options = {}, &block)
161
+ klass = CancelInvoiceRequest
162
+ object = options.is_a?(klass) ? options : klass.new(options || {})
163
+ object.instance_eval(&block) if block
164
+ object
165
+ end
166
+ alias_method :build_cancel_invoice, :BuildCancelInvoice
167
+
168
+ # Service Call: SearchInvoices
169
+ # @param SearchInvoicesRequest
170
+ # @return SearchInvoicesResponse
171
+ def SearchInvoices(options = {} , http_header = {})
172
+ request_object = BuildSearchInvoices(options)
173
+ request_hash = request_object.to_hash
174
+ response_hash = request("SearchInvoices", request_hash, http_header)
175
+ SearchInvoicesResponse.new(response_hash)
176
+ end
177
+ alias_method :search_invoices, :SearchInvoices
178
+
179
+ def BuildSearchInvoices(options = {}, &block)
180
+ klass = SearchInvoicesRequest
181
+ object = options.is_a?(klass) ? options : klass.new(options || {})
182
+ object.instance_eval(&block) if block
183
+ object
184
+ end
185
+ alias_method :build_search_invoices, :BuildSearchInvoices
186
+
187
+ # Service Call: MarkInvoiceAsPaid
188
+ # @param MarkInvoiceAsPaidRequest
189
+ # @return MarkInvoiceAsPaidResponse
190
+ def MarkInvoiceAsPaid(options = {} , http_header = {})
191
+ request_object = BuildMarkInvoiceAsPaid(options)
192
+ request_hash = request_object.to_hash
193
+ response_hash = request("MarkInvoiceAsPaid", request_hash, http_header)
194
+ MarkInvoiceAsPaidResponse.new(response_hash)
195
+ end
196
+ alias_method :mark_invoice_as_paid, :MarkInvoiceAsPaid
197
+
198
+ def BuildMarkInvoiceAsPaid(options = {}, &block)
199
+ klass = MarkInvoiceAsPaidRequest
200
+ object = options.is_a?(klass) ? options : klass.new(options || {})
201
+ object.instance_eval(&block) if block
202
+ object
203
+ end
204
+ alias_method :build_mark_invoice_as_paid, :BuildMarkInvoiceAsPaid
205
+
206
+ # Service Call: MarkInvoiceAsUnpaid
207
+ # @param MarkInvoiceAsUnpaidRequest
208
+ # @return MarkInvoiceAsUnpaidResponse
209
+ def MarkInvoiceAsUnpaid(options = {} , http_header = {})
210
+ request_object = BuildMarkInvoiceAsUnpaid(options)
211
+ request_hash = request_object.to_hash
212
+ response_hash = request("MarkInvoiceAsUnpaid", request_hash, http_header)
213
+ MarkInvoiceAsUnpaidResponse.new(response_hash)
214
+ end
215
+ alias_method :mark_invoice_as_unpaid, :MarkInvoiceAsUnpaid
216
+
217
+ def BuildMarkInvoiceAsUnpaid(options = {}, &block)
218
+ klass = MarkInvoiceAsUnpaidRequest
219
+ object = options.is_a?(klass) ? options : klass.new(options || {})
220
+ object.instance_eval(&block) if block
221
+ object
222
+ end
223
+ alias_method :build_mark_invoice_as_unpaid, :BuildMarkInvoiceAsUnpaid
224
+
225
+ # Service Call: MarkInvoiceAsRefunded
226
+ # @param MarkInvoiceAsRefundedRequest
227
+ # @return MarkInvoiceAsRefundedResponse
228
+ def MarkInvoiceAsRefunded(options = {} , http_header = {})
229
+ request_object = BuildMarkInvoiceAsRefunded(options)
230
+ request_hash = request_object.to_hash
231
+ response_hash = request("MarkInvoiceAsRefunded", request_hash, http_header)
232
+ MarkInvoiceAsRefundedResponse.new(response_hash)
233
+ end
234
+ alias_method :mark_invoice_as_refunded, :MarkInvoiceAsRefunded
235
+
236
+ def BuildMarkInvoiceAsRefunded(options = {}, &block)
237
+ klass = MarkInvoiceAsRefundedRequest
238
+ object = options.is_a?(klass) ? options : klass.new(options || {})
239
+ object.instance_eval(&block) if block
240
+ object
241
+ end
242
+ alias_method :build_mark_invoice_as_refunded, :BuildMarkInvoiceAsRefunded
243
+
244
+ # Service Call: DeleteInvoice
245
+ # @param DeleteInvoiceRequest
246
+ # @return DeleteInvoiceResponse
247
+ def DeleteInvoice(options = {} , http_header = {})
248
+ request_object = BuildDeleteInvoice(options)
249
+ request_hash = request_object.to_hash
250
+ response_hash = request("DeleteInvoice", request_hash, http_header)
251
+ DeleteInvoiceResponse.new(response_hash)
252
+ end
253
+ alias_method :delete_invoice, :DeleteInvoice
254
+
255
+ def BuildDeleteInvoice(options = {}, &block)
256
+ klass = DeleteInvoiceRequest
257
+ object = options.is_a?(klass) ? options : klass.new(options || {})
258
+ object.instance_eval(&block) if block
259
+ object
260
+ end
261
+ alias_method :build_delete_invoice, :BuildDeleteInvoice
262
+
263
+
264
+ end
265
+
266
+ end
267
+ end