1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.cloud.paymentgateway.issuerswitch.v1; 18 19import "google/cloud/paymentgateway/issuerswitch/v1/common_fields.proto"; 20import "google/cloud/paymentgateway/issuerswitch/v1/transactions.proto"; 21import "google/logging/type/log_severity.proto"; 22import "google/protobuf/timestamp.proto"; 23 24option csharp_namespace = "Google.Cloud.PaymentGateway.IssuerSwitch.V1"; 25option go_package = "cloud.google.com/go/paymentgateway/issuerswitch/apiv1/issuerswitchpb;issuerswitchpb"; 26option java_multiple_files = true; 27option java_outer_classname = "LogsProto"; 28option java_package = "com.google.cloud.paymentgateway.issuerswitch.v1"; 29option php_namespace = "Google\\Cloud\\PaymentGateway\\IssuerSwitch\\V1"; 30option ruby_package = "Google::Cloud::PaymentGateway::IssuerSwitch::V1"; 31 32// The payload for the log entry. 33message UpiTransaction { 34 // A human readable message about the log entry. 35 string message = 1; 36 37 // The severity of the log entry. 38 google.logging.type.LogSeverity severity = 2; 39 40 // The API type of the transaction. 41 ApiType api_type = 3; 42 43 // The XML API type of the transaction. 44 XmlApiType xml_api_type = 4; 45 46 // The type of the transaction. 47 TransactionType transaction_type = 5; 48 49 // UPI's transaction ID. 50 string transaction_id = 6; 51 52 // UPI's message ID. 53 string message_id = 7; 54 55 // The payment's RRN. This will be present only for payment related 56 // transactions. 57 string rrn = 8; 58 59 // The timestamp at which the payload was received by the issuer switch. 60 google.protobuf.Timestamp payload_receipt_time = 9; 61 62 // The timestamp at which the payload was sent by the issuer switch. 63 google.protobuf.Timestamp payload_sent_time = 10; 64 65 // Status of the transaction which could be SUCCESS or FAILURE. This will be 66 // populated only after transaction is complete. 67 TransactionInfo.State status = 11; 68 69 // Issuer switch error code. This will be present only for failed 70 // transactions. 71 string error_code = 12; 72 73 // UPI error code that was sent back to NPCI. This will be present only for 74 // failed transactions. 75 string upi_error_code = 13; 76 77 // Issuer switch error message. This will be present only for failed 78 // transactions. 79 string error_message = 14; 80 81 // The ack, request or response payload. 82 oneof payload { 83 // The payload in XML format sent to the issuer switch. 84 string sent = 15; 85 86 // The payload in XML format received by the issuer switch. 87 string received = 16; 88 } 89} 90