@@ -467,7 +467,26 @@ type Payments struct {
467
467
}
468
468
469
469
type Authorization struct {
470
- ProcessorResponse * Processor `json:"processor_response,omitempty"`
470
+ Id string `json:"id,omitempty"`
471
+ Status string `json:"status,omitempty"` // CREATED、CAPTURED、DENIED、PARTIALLY_CAPTURED、VOIDED、PENDING
472
+ StatusDetails * StatusDetails `json:"status_details,omitempty"`
473
+ InvoiceId string `json:"invoice_id,omitempty"`
474
+ CustomId string `json:"custom_id,omitempty"`
475
+ Links []* Link `json:"links,omitempty"`
476
+ Amount * Amount `json:"amount"`
477
+ NetworkTransactionReference * NetworkTransactionReference `json:"network_transaction_reference"`
478
+ SellerProtection * SellerProtection `json:"seller_protection,omitempty"`
479
+ ExpirationTime string `json:"expiration_time,omitempty"`
480
+ CreateTime string `json:"create_time,omitempty"`
481
+ UpdateTime string `json:"update_time,omitempty"`
482
+ ProcessorResponse * Processor `json:"processor_response,omitempty"`
483
+ }
484
+
485
+ type NetworkTransactionReference struct {
486
+ Id string `json:"id"`
487
+ Date string `json:"date"`
488
+ AcquirerReferenceNumber string `json:"acquirer_reference_number"`
489
+ Network string `json:"network"`
471
490
}
472
491
473
492
type Processor struct {
0 commit comments