<commit_before>package omise

// Charge represents Omise's charge object.
// See https://www.omise.co/charges-api for more information.
type Charge struct {
	Base
	Status      ChargeStatus `json:"status"`
	Amount      int64        `json:"amount" pretty:""`
	Currency    string       `json:"currency" pretty:""`
	Description *string      `json:"description"`

	Capture    bool `json:"capture" pretty:""`
	Authorized bool `json:"authorized" pretty:""`
	Paid       bool `json:"paid" pretty:""`

	Transaction string `json:"transaction"`
	Card        *Card  `json:"card"`

	Refunded       int64       `json:"refunded"`
	Refunds        *RefundList `json:"refunds"`
	FailureCode    *string     `json:"failure_code"`
	FailureMessage *string     `json:"failure_message"`

	CustomerID string   `json:"customer"`
	IP         *string  `json:"ip"`
	Dispute    *Dispute `json:"dispute"`

	ReturnURI    string `json:"return_uri"`
	AuthorizeURI string `json:"authorize_uri"`<commit_msg>Adds `Charge.reversed` field.<commit_after>package omise

// Charge represents Omise's charge object.
// See https://www.omise.co/charges-api for more information.
type Charge struct {
	Base
	Status      ChargeStatus `json:"status"`
	Amount      int64        `json:"amount" pretty:""`
	Currency    string       `json:"currency" pretty:""`
	Description *string      `json:"description"`

	Capture    bool `json:"capture" pretty:""`
	Authorized bool `json:"authorized" pretty:""`
	Reversed   bool `json:"reversed" pretty:""`
	Paid       bool `json:"paid" pretty:""`

	Transaction string `json:"transaction"`
	Card        *Card  `json:"card"`

	Refunded       int64       `json:"refunded"`
	Refunds        *RefundList `json:"refunds"`
	FailureCode    *string     `json:"failure_code"`
	FailureMessage *string     `json:"failure_message"`

	CustomerID string   `json:"customer"`
	IP         *string  `json:"ip"`
	Dispute    *Dispute `json:"dispute"`

	ReturnURI    string `json:"return_uri"`
	AuthorizeURI string `json:"authorize_uri"`
{'fraction_non_alphanumeric': 0.1359320339830085, 'fraction_numerical': 0.00399800099950025, 'mean_word_length': 3.655813953488372, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '7403355', 'n_tokens_mistral': 637, 'n_tokens_neox': 600, 'n_words': 155}