lib/WebService/Braintree/TransactionSearch.pm

filter: Statementstmt 100% 75 / 75 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 80 / 80 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WebService/Braintree/Transaction/Type.pm ↑ Summary lib/WebService/Braintree/TransparentRedirect.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::TransactionSearch;
4 22 $WebService::Braintree::TransactionSearch::VERSION = '1.7';
5 22 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 22 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 WebService::Braintree::TransactionSearch
11  
12 =head1 PURPOSE
13  
14 This class represents a search for transactions.
15  
16 This class should never be instantiated directly. Instead, you will access
17 objects of this class through the search interface.
18  
19 =cut
20  
21 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 22 with 'WebService::Braintree::Role::AdvancedSearch';
23  
24 22 ▶use constant FIELDS => [];
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 22 ▶use WebService::Braintree::Transaction::Status;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 =head1 FIELDS
29  
30 =cut
31  
32 =head2 amount
33  
34 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
35  
36 =cut
37  
38 22 __PACKAGE__->range_field("amount");
39  
40 =head2 authorization_expired_at
41  
42 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
43  
44 =cut
45  
46 22 __PACKAGE__->range_field("authorization_expired_at");
47  
48 =head2 authorized_at
49  
50 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
51  
52 =cut
53  
54 22 __PACKAGE__->range_field("authorized_at");
55  
56 =head2 billing_company
57  
58 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing company.
59  
60 =cut
61  
62 22 __PACKAGE__->text_field("billing_company");
63  
64 =head2 billing_country_name
65  
66 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing country name.
67  
68 =cut
69  
70 22 __PACKAGE__->text_field("billing_country_name");
71  
72 =head2 billing_extended_address
73  
74 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing extended address.
75  
76 =cut
77  
78 22 __PACKAGE__->text_field("billing_extended_address");
79  
80 =head2 billing_first_name
81  
82 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing first name.
83  
84 =cut
85  
86 22 __PACKAGE__->text_field("billing_first_name");
87  
88 =head2 billing_last_name
89  
90 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing last name.
91  
92 =cut
93  
94 22 __PACKAGE__->text_field("billing_last_name");
95  
96 =head2 billing_locality
97  
98 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing locality.
99  
100 =cut
101  
102 22 __PACKAGE__->text_field("billing_locality");
103  
104 =head2 billing_postal_code
105  
106 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing postal code.
107  
108 =cut
109  
110 22 __PACKAGE__->text_field("billing_postal_code");
111  
112 =head2 billing_region
113  
114 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing region.
115  
116 =cut
117  
118 22 __PACKAGE__->text_field("billing_region");
119  
120 =head2 billing_street_address
121  
122 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific billing street address.
123  
124 =cut
125  
126 22 __PACKAGE__->text_field("billing_street_address");
127  
128 =head2 created_at
129  
130 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
131  
132 =cut
133  
134 22 __PACKAGE__->range_field("created_at");
135  
136 =head2 created_using
137  
138 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific values regarding how this transaction was created.
139  
140 This list is restricted to the values defined by L<WebService::Braintree::Transaction::CreatedUsing/All>
141  
142 =cut
143  
144 22 __PACKAGE__->multiple_values_field("created_using", WebService::Braintree::Transaction::CreatedUsing->All);
145  
146 =head2 credit_card_cardholder_name
147  
148 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific credit card cardholder name.
149  
150 =cut
151  
152 22 __PACKAGE__->text_field("credit_card_cardholder_name");
153  
154 =head2 credit_card_customer_location
155  
156 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific location types.
157  
158 This list is restricted to the values defined by L<WebService::Braintree::CreditCard::Location/All>
159  
160 =cut
161  
162 22 __PACKAGE__->multiple_values_field("credit_card_customer_location", WebService::Braintree::CreditCard::Location->All);
163  
164 =head2 credit_card_expiration_date
165  
166 This is an L<equality field|WebService::Braintree::AdvancedSearchNodes/"Equality Field">. It will restrict the search to transactions with
167 credit cards with a specific expiration date.
168  
169 =cut
170  
171 22 __PACKAGE__->equality_field("credit_card_expiration_date");
172  
173 =head2 credit_card_number
174  
175 This is a L<partial-match field|WebService::Braintree::AdvancedSearchNodes/"Partial Match Field">. It will restrict the search to transactions with
176 credit cards containing a specific card number.
177  
178 =cut
179  
180 22 __PACKAGE__->partial_match_field("credit_card_number");
181  
182 =head2 credit_card_card_type
183  
184 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific credit card card-types.
185  
186 This list is restricted to the values defined by L<WebService::Braintree::CreditCard::CardType/All>
187  
188 =cut
189  
190 22 __PACKAGE__->multiple_values_field("credit_card_card_type", WebService::Braintree::CreditCard::CardType->All);
191  
192 =head2 currency
193  
194 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific currency.
195  
196 =cut
197  
198 22 __PACKAGE__->text_field("currency");
199  
200 =head2 customer_company
201  
202 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer company.
203  
204 =cut
205  
206 22 __PACKAGE__->text_field("customer_company");
207  
208 =head2 customer_email
209  
210 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer email.
211  
212 =cut
213  
214 22 __PACKAGE__->text_field("customer_email");
215  
216 =head2 customer_fax
217  
218 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer fax.
219  
220 =cut
221  
222 22 __PACKAGE__->text_field("customer_fax");
223  
224 =head2 customer_first_name
225  
226 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer first name.
227  
228 =cut
229  
230 22 __PACKAGE__->text_field("customer_first_name");
231  
232 =head2 customer_id
233  
234 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer ID.
235  
236 =cut
237  
238 22 __PACKAGE__->text_field("customer_id");
239  
240 =head2 customer_last_name
241  
242 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer last name.
243  
244 =cut
245  
246 22 __PACKAGE__->text_field("customer_last_name");
247  
248 =head2 customer_phone
249  
250 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer phone number.
251  
252 =cut
253  
254 22 __PACKAGE__->text_field("customer_phone");
255  
256 =head2 customer_website
257  
258 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific customer website.
259  
260 =cut
261  
262 22 __PACKAGE__->text_field("customer_website");
263  
264 =head2 failed_at
265  
266 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
267  
268 =cut
269  
270 22 __PACKAGE__->range_field("failed_at");
271  
272 =head2 gateway_rejected_at
273  
274 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
275  
276 =cut
277  
278 22 __PACKAGE__->range_field("gateway_rejected_at");
279  
280 =head2 id
281  
282 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific ID.
283  
284 =cut
285  
286 22 __PACKAGE__->text_field("id");
287  
288 =head2 ids
289  
290 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific ids.
291  
292 =cut
293  
294 22 __PACKAGE__->multiple_values_field("ids");
295  
296 =head2 merchant_account_id
297  
298 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific merchant account IDs.
299  
300 =cut
301  
302 22 __PACKAGE__->multiple_values_field("merchant_account_id");
303  
304 =head2 order_id
305  
306 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific order ID.
307  
308 =cut
309  
310 22 __PACKAGE__->text_field("order_id");
311  
312 =head2 payment_method_token
313  
314 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific payment method token.
315  
316 =cut
317  
318 22 __PACKAGE__->text_field("payment_method_token");
319  
320 =head2 paypal_payment_id
321  
322 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific PayPal payment ID.
323  
324 =cut
325  
326 22 __PACKAGE__->text_field("paypal_payment_id");
327  
328 =head2 paypal_authorization_id
329  
330 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific PayPal authorization ID.
331  
332 =cut
333  
334 22 __PACKAGE__->text_field("paypal_authorization_id");
335  
336 =head2 paypal_payer_email
337  
338 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific PayPal payer email.
339  
340 =cut
341  
342 22 __PACKAGE__->text_field("paypal_payer_email");
343  
344 =head2 processor_authorization_code
345  
346 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific processor authorization code.
347  
348 =cut
349  
350 22 __PACKAGE__->text_field("processor_authorization_code");
351  
352 =head2 processor_declined_at
353  
354 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
355  
356 =cut
357  
358 22 __PACKAGE__->range_field("processor_declined_at");
359  
360 =head2 refund
361  
362 This is a L<key-value field|WebService::Braintree::AdvancedSearchNodes/"Key Value Field">. It will restrict the search to transactions that match the specified value.
363  
364 =cut
365  
366 22 __PACKAGE__->key_value_field("refund");
367  
368 =head2 settled_at
369  
370 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
371  
372 =cut
373  
374 22 __PACKAGE__->range_field("settled_at");
375  
376 =head2 settlement_batch_id
377  
378 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific settlement batch ID.
379  
380 =cut
381  
382 22 __PACKAGE__->text_field("settlement_batch_id");
383  
384 =head2 shipping_company
385  
386 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping company.
387  
388 =cut
389  
390 22 __PACKAGE__->text_field("shipping_company");
391  
392 =head2 shipping_country_name
393  
394 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address country name.
395  
396 =cut
397  
398 22 __PACKAGE__->text_field("shipping_country_name");
399  
400 =head2 shipping_extended_address
401  
402 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address extended address.
403  
404 =cut
405  
406 22 __PACKAGE__->text_field("shipping_extended_address");
407  
408 =head2 shipping_first_name
409  
410 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address first name.
411  
412 =cut
413  
414 22 __PACKAGE__->text_field("shipping_first_name");
415  
416 =head2 shipping_last_name
417  
418 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address last name.
419  
420 =cut
421  
422 22 __PACKAGE__->text_field("shipping_last_name");
423  
424 =head2 shipping_locality
425  
426 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address locality.
427  
428 =cut
429  
430 22 __PACKAGE__->text_field("shipping_locality");
431  
432 =head2 shipping_postal_code
433  
434 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address postal code.
435  
436 =cut
437  
438 22 __PACKAGE__->text_field("shipping_postal_code");
439  
440 =head2 shipping_region
441  
442 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address region.
443  
444 =cut
445  
446 22 __PACKAGE__->text_field("shipping_region");
447  
448 =head2 shipping_street_address
449  
450 This is a L<text field|WebService::Braintree::AdvancedSearchNodes/"Text Field">. It will restrict the search to transactions matching a specific shipping address street address.
451  
452 =cut
453  
454 22 __PACKAGE__->text_field("shipping_street_address");
455  
456 =head2 source
457  
458 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific transaction sources.
459  
460 This list is restricted to the values defined by L<WebService::Braintree::Transaction::Source/All>
461  
462 =cut
463  
464 22 __PACKAGE__->multiple_values_field("source", WebService::Braintree::Transaction::Source->All);
465  
466 =head2 status
467  
468 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific transaction statuses.
469  
470 This list is restricted to the values defined by L<WebService::Braintree::Transaction::Status/All>
471  
472 =cut
473  
474 22 __PACKAGE__->multiple_values_field("status", WebService::Braintree::Transaction::Status->All);
475  
476 =head2 submitted_for_settlement_at
477  
478 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
479  
480 =cut
481  
482 22 __PACKAGE__->range_field("submitted_for_settlement_at");
483  
484 =head2 ids
485  
486 This is a L<multiple-values field|WebService::Braintree::AdvancedSearchNodes/"Multiple Values Field">. It will restrict the search to a list of specific transaction types.
487  
488 This list is restricted to the values defined by L<WebService::Braintree::Transaction::Type/All>
489  
490 =cut
491  
492 22 __PACKAGE__->multiple_values_field("type", WebService::Braintree::Transaction::Type->All);
493  
494 =head2 voided_at
495  
496 This is a L<range field|WebService::Braintree::AdvancedSearchNodes/"Range Field">. It will restrict the search to subscriptions created between the two values.
497  
498 =cut
499  
500 22 __PACKAGE__->range_field("voided_at");
501  
502 22 __PACKAGE__->meta->make_immutable;
503  
504 22 1;
505 __END__
« lib/WebService/Braintree/Transaction/Type.pm ↑ Summary lib/WebService/Braintree/TransparentRedirect.pm »