<commit_before>require File.join(File.dirname(__FILE__), '.', 'lib/pagarme')

PagarMe.api_key = "<KEY>"

transaction = PagarMe::Transaction.new

transaction.card_number = "0000000000000000"
transaction.card_holder_name = "<NAME>"
transaction.card_expiracy_month = "12"
transaction.card_expiracy_year = "15"
transaction.card_cvv = "314"
transaction.live = false

transaction.charge

transaction.chargeback

puts transaction.status
puts transaction.live
puts transaction.id<commit_msg>Updated test code to check all supported methods.<commit_after>require File.join(File.dirname(__FILE__), '.', 'lib/pagarme')

PagarMe.api_key = "<KEY>"

transaction = PagarMe::Transaction.new

transaction.card_number = "0000000000000000"
transaction.card_holder_name = "<NAME>"
transaction.card_expiracy_month = "12"
transaction.card_expiracy_year = "15"
transaction.card_cvv = "314"
transaction.live = false

transaction.charge

transaction.chargeback

chargebacked_transaction = PagarMe::Transaction.find_by_id(transaction.id)

puts chargebacked_transaction.id == transaction.id
puts chargebacked_transaction.status == transaction.status
{'fraction_non_alphanumeric': 0.11140819964349376, 'fraction_numerical': 0.040998217468805706, 'mean_word_length': 7.380597014925373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1239155', 'n_tokens_mistral': 385, 'n_tokens_neox': 340, 'n_words': 62}