paypal-sdk-invoice 1.103.0 → 1.106.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,229 +1,248 @@
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.9.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: CreateAndSendInvoice
55
- # @param CreateAndSendInvoiceRequest
56
- # @return CreateAndSendInvoiceResponse
57
- def CreateAndSendInvoice(options = {} , http_header = {})
58
- request_object = BuildCreateAndSendInvoice(options)
59
- request_hash = request_object.to_hash
60
- response_hash = request("CreateAndSendInvoice", request_hash, http_header)
61
- CreateAndSendInvoiceResponse.new(response_hash)
62
- end
63
- alias_method :create_and_send_invoice, :CreateAndSendInvoice
64
-
65
- def BuildCreateAndSendInvoice(options = {}, &block)
66
- klass = CreateAndSendInvoiceRequest
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_create_and_send_invoice, :BuildCreateAndSendInvoice
72
-
73
- # Service Call: UpdateInvoice
74
- # @param UpdateInvoiceRequest
75
- # @return UpdateInvoiceResponse
76
- def UpdateInvoice(options = {} , http_header = {})
77
- request_object = BuildUpdateInvoice(options)
78
- request_hash = request_object.to_hash
79
- response_hash = request("UpdateInvoice", request_hash, http_header)
80
- UpdateInvoiceResponse.new(response_hash)
81
- end
82
- alias_method :update_invoice, :UpdateInvoice
83
-
84
- def BuildUpdateInvoice(options = {}, &block)
85
- klass = UpdateInvoiceRequest
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_update_invoice, :BuildUpdateInvoice
91
-
92
- # Service Call: GetInvoiceDetails
93
- # @param GetInvoiceDetailsRequest
94
- # @return GetInvoiceDetailsResponse
95
- def GetInvoiceDetails(options = {} , http_header = {})
96
- request_object = BuildGetInvoiceDetails(options)
97
- request_hash = request_object.to_hash
98
- response_hash = request("GetInvoiceDetails", request_hash, http_header)
99
- GetInvoiceDetailsResponse.new(response_hash)
100
- end
101
- alias_method :get_invoice_details, :GetInvoiceDetails
102
-
103
- def BuildGetInvoiceDetails(options = {}, &block)
104
- klass = GetInvoiceDetailsRequest
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_get_invoice_details, :BuildGetInvoiceDetails
110
-
111
- # Service Call: CancelInvoice
112
- # @param CancelInvoiceRequest
113
- # @return CancelInvoiceResponse
114
- def CancelInvoice(options = {} , http_header = {})
115
- request_object = BuildCancelInvoice(options)
116
- request_hash = request_object.to_hash
117
- response_hash = request("CancelInvoice", request_hash, http_header)
118
- CancelInvoiceResponse.new(response_hash)
119
- end
120
- alias_method :cancel_invoice, :CancelInvoice
121
-
122
- def BuildCancelInvoice(options = {}, &block)
123
- klass = CancelInvoiceRequest
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_cancel_invoice, :BuildCancelInvoice
129
-
130
- # Service Call: SearchInvoices
131
- # @param SearchInvoicesRequest
132
- # @return SearchInvoicesResponse
133
- def SearchInvoices(options = {} , http_header = {})
134
- request_object = BuildSearchInvoices(options)
135
- request_hash = request_object.to_hash
136
- response_hash = request("SearchInvoices", request_hash, http_header)
137
- SearchInvoicesResponse.new(response_hash)
138
- end
139
- alias_method :search_invoices, :SearchInvoices
140
-
141
- def BuildSearchInvoices(options = {}, &block)
142
- klass = SearchInvoicesRequest
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_search_invoices, :BuildSearchInvoices
148
-
149
- # Service Call: MarkInvoiceAsPaid
150
- # @param MarkInvoiceAsPaidRequest
151
- # @return MarkInvoiceAsPaidResponse
152
- def MarkInvoiceAsPaid(options = {} , http_header = {})
153
- request_object = BuildMarkInvoiceAsPaid(options)
154
- request_hash = request_object.to_hash
155
- response_hash = request("MarkInvoiceAsPaid", request_hash, http_header)
156
- MarkInvoiceAsPaidResponse.new(response_hash)
157
- end
158
- alias_method :mark_invoice_as_paid, :MarkInvoiceAsPaid
159
-
160
- def BuildMarkInvoiceAsPaid(options = {}, &block)
161
- klass = MarkInvoiceAsPaidRequest
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_mark_invoice_as_paid, :BuildMarkInvoiceAsPaid
167
-
168
- # Service Call: MarkInvoiceAsUnpaid
169
- # @param MarkInvoiceAsUnpaidRequest
170
- # @return MarkInvoiceAsUnpaidResponse
171
- def MarkInvoiceAsUnpaid(options = {} , http_header = {})
172
- request_object = BuildMarkInvoiceAsUnpaid(options)
173
- request_hash = request_object.to_hash
174
- response_hash = request("MarkInvoiceAsUnpaid", request_hash, http_header)
175
- MarkInvoiceAsUnpaidResponse.new(response_hash)
176
- end
177
- alias_method :mark_invoice_as_unpaid, :MarkInvoiceAsUnpaid
178
-
179
- def BuildMarkInvoiceAsUnpaid(options = {}, &block)
180
- klass = MarkInvoiceAsUnpaidRequest
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_unpaid, :BuildMarkInvoiceAsUnpaid
186
-
187
- # Service Call: MarkInvoiceAsRefunded
188
- # @param MarkInvoiceAsRefundedRequest
189
- # @return MarkInvoiceAsRefundedResponse
190
- def MarkInvoiceAsRefunded(options = {} , http_header = {})
191
- request_object = BuildMarkInvoiceAsRefunded(options)
192
- request_hash = request_object.to_hash
193
- response_hash = request("MarkInvoiceAsRefunded", request_hash, http_header)
194
- MarkInvoiceAsRefundedResponse.new(response_hash)
195
- end
196
- alias_method :mark_invoice_as_refunded, :MarkInvoiceAsRefunded
197
-
198
- def BuildMarkInvoiceAsRefunded(options = {}, &block)
199
- klass = MarkInvoiceAsRefundedRequest
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_refunded, :BuildMarkInvoiceAsRefunded
205
-
206
- # Service Call: DeleteInvoice
207
- # @param DeleteInvoiceRequest
208
- # @return DeleteInvoiceResponse
209
- def DeleteInvoice(options = {} , http_header = {})
210
- request_object = BuildDeleteInvoice(options)
211
- request_hash = request_object.to_hash
212
- response_hash = request("DeleteInvoice", request_hash, http_header)
213
- DeleteInvoiceResponse.new(response_hash)
214
- end
215
- alias_method :delete_invoice, :DeleteInvoice
216
-
217
- def BuildDeleteInvoice(options = {}, &block)
218
- klass = DeleteInvoiceRequest
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_delete_invoice, :BuildDeleteInvoice
224
-
225
-
226
- end
227
-
228
- end
229
- 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.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