| 1 | package Net::Braintree::TransactionSearch; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use Net::Braintree::AdvancedSearch qw(search_to_hash); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | my $meta = __PACKAGE__->meta(); | |
| 5 | |||
| 6 | 1 | my $field = Net::Braintree::AdvancedSearchFields->new(metaclass => $meta); | |
| 7 | |||
| 8 | 1 | $field->text("billing_company"); | |
| 9 | 1 | $field->text("billing_country_name"); | |
| 10 | 1 | $field->text("billing_extended_address"); | |
| 11 | 1 | $field->text("billing_first_name"); | |
| 12 | 1 | $field->text("billing_last_name"); | |
| 13 | 1 | $field->text("billing_locality"); | |
| 14 | 1 | $field->text("billing_postal_code"); | |
| 15 | 1 | $field->text("billing_region"); | |
| 16 | 1 | $field->text("billing_street_address"); | |
| 17 | 1 | $field->text("credit_card_cardholder_name"); | |
| 18 | 1 | $field->text("currency"); | |
| 19 | 1 | $field->text("customer_company"); | |
| 20 | 1 | $field->text("customer_email"); | |
| 21 | 1 | $field->text("customer_fax"); | |
| 22 | 1 | $field->text("customer_first_name"); | |
| 23 | 1 | $field->text("customer_id"); | |
| 24 | 1 | $field->text("customer_last_name"); | |
| 25 | 1 | $field->text("customer_phone"); | |
| 26 | 1 | $field->text("customer_website"); | |
| 27 | 1 | $field->text("id"); | |
| 28 | 1 | $field->text("order_id"); | |
| 29 | 1 | $field->text("payment_method_token"); | |
| 30 | 1 | $field->text("paypal_payment_id"); | |
| 31 | 1 | $field->text("paypal_authorization_id"); | |
| 32 | 1 | $field->text("paypal_payer_email"); | |
| 33 | 1 | $field->text("processor_authorization_code"); | |
| 34 | 1 | $field->text("settlement_batch_id"); | |
| 35 | 1 | $field->text("shipping_company"); | |
| 36 | 1 | $field->text("shipping_country_name"); | |
| 37 | 1 | $field->text("shipping_extended_address"); | |
| 38 | 1 | $field->text("shipping_first_name"); | |
| 39 | 1 | $field->text("shipping_last_name"); | |
| 40 | 1 | $field->text("shipping_locality"); | |
| 41 | 1 | $field->text("shipping_postal_code"); | |
| 42 | 1 | $field->text("shipping_region"); | |
| 43 | 1 | $field->text("shipping_street_address"); | |
| 44 | |||
| 45 | 1 | $field->equality("credit_card_expiration_date"); | |
| 46 | |||
| 47 | 1 | $field->partial_match("credit_card_number"); | |
| 48 | |||
| 49 | 1 | $field->multiple_values("created_using", Net::Braintree::Transaction::CreatedUsing::FullInformation, Net::Braintree::Transaction::CreatedUsing::Token); | |
| 50 | 1 | $field->multiple_values("credit_card_card_type", @{Net::Braintree::CreditCard::CardType::All()}); | |
| 51 | 1 | $field->multiple_values("credit_card_customer_location", Net::Braintree::CreditCard::Location::International, Net::Braintree::CreditCard::Location::US); | |
| 52 | 1 | $field->multiple_values("ids"); | |
| 53 | 1 | $field->multiple_values("merchant_account_id"); | |
| 54 | 1 | $field->multiple_values("status", Net::Braintree::Transaction::Status::All); | |
| 55 | 1 | $field->multiple_values("source", @{Net::Braintree::Transaction::Source::All()}); | |
| 56 | 1 | $field->multiple_values("type", @{Net::Braintree::Transaction::Type::All()}); | |
| 57 | |||
| 58 | 1 | $field->key_value("refund"); | |
| 59 | |||
| 60 | 1 | $field->range("amount"); | |
| 61 | 1 | $field->range("created_at"); | |
| 62 | 1 | $field->range("disbursement_date"); | |
| 63 | 1 | $field->range("dispute_date"); | |
| 64 | 1 | $field->range("authorization_expired_at"); | |
| 65 | 1 | $field->range("authorized_at"); | |
| 66 | 1 | $field->range("failed_at"); | |
| 67 | 1 | $field->range("gateway_rejected_at"); | |
| 68 | 1 | $field->range("processor_declined_at"); | |
| 69 | 1 | $field->range("settled_at"); | |
| 70 | 1 | $field->range("submitted_for_settlement_at"); | |
| 71 | 1 | $field->range("voided_at"); | |
| 72 | |||
| 73 | 0 | ▶ | sub to_hash { |
|
Subroutine
to_hash: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 74 | 0 | Net::Braintree::AdvancedSearch->search_to_hash(shift); | |
| 75 | } | ||
| 76 | |||
| 77 | 1 | 1; | |