package dojo type money struct { Value int64 `json:"value"` CurrencyCode string `json:"currencyCode"` } type createPaymentIntentRequest struct { Amount money `json:"amount"` Reference string `json:"reference"` CaptureMode string `json:"captureMode"` } type createTerminalSessionRequest struct { TerminalID string `json:"terminalId"` Details terminalSessionDetails `json:"details"` } type terminalSessionDetails struct { SessionType string `json:"sessionType"` Sale terminalSessionSale `json:"sale"` } type terminalSessionSale struct { PaymentIntentID string `json:"paymentIntentId"` } type terminalSessionResponse struct { ID string `json:"id"` Status string `json:"status"` TerminalID string `json:"terminalId"` PaymentDetails *paymentDetails `json:"paymentDetails"` } type paymentIntentResponse struct { ID string `json:"id"` Status string `json:"status"` Reference string `json:"reference"` Amount money `json:"amount"` PaymentDetails *paymentDetails `json:"paymentDetails"` } type paymentDetails struct { TransactionID string `json:"transactionId"` TransactionDateTime string `json:"transactionDateTime"` Message string `json:"message"` AuthCode string `json:"authCode"` Card dojoCard `json:"card"` } type dojoCard struct { CardNumber string `json:"cardNumber"` CardName string `json:"cardName"` ExpiryDate string `json:"expiryDate"` CardType string `json:"cardType"` CardFundingType string `json:"cardFundingType"` EntryMode string `json:"entryMode"` VerificationMethod string `json:"verificationMethod"` }