logs.proto 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.cloud.paymentgateway.issuerswitch.v1;
  16. import "google/cloud/paymentgateway/issuerswitch/v1/common_fields.proto";
  17. import "google/cloud/paymentgateway/issuerswitch/v1/transactions.proto";
  18. import "google/logging/type/log_severity.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option csharp_namespace = "Google.Cloud.PaymentGateway.IssuerSwitch.V1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/paymentgateway/issuerswitch/v1;issuerswitch";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "LogsProto";
  24. option java_package = "com.google.cloud.paymentgateway.issuerswitch.v1";
  25. option php_namespace = "Google\\Cloud\\PaymentGateway\\IssuerSwitch\\V1";
  26. option ruby_package = "Google::Cloud::PaymentGateway::IssuerSwitch::V1";
  27. // The payload for the log entry.
  28. message UpiTransaction {
  29. // A human readable message about the log entry.
  30. string description = 1;
  31. // The severity of the log entry.
  32. google.logging.type.LogSeverity severity = 2;
  33. // The API type of the transaction.
  34. ApiType api_type = 3;
  35. // The XML API type of the transaction.
  36. XmlApiType xml_api_type = 4;
  37. // The type of the transaction.
  38. TransactionType transaction_type = 5;
  39. // UPI's transaction ID.
  40. string transaction_id = 6;
  41. // UPI's message ID.
  42. string message_id = 7;
  43. // The payment's RRN. This will be present only for payment related
  44. // transactions.
  45. string rrn = 8;
  46. // The timestamp at which the payload was received by the issuer switch.
  47. google.protobuf.Timestamp payload_receipt_time = 9;
  48. // The timestamp at which the payload was sent by the issuer switch.
  49. google.protobuf.Timestamp payload_sent_time = 10;
  50. // Status of the transaction which could be SUCCESS or FAILURE. This will be
  51. // populated only after transaction is complete.
  52. TransactionInfo.State status = 11;
  53. // Issuer switch error code. This will be present only for failed
  54. // transactions.
  55. string error_code = 12;
  56. // UPI error code that was sent back to NPCI. This will be present only for
  57. // failed transactions.
  58. string upi_error_code = 13;
  59. // Issuer switch error message. This will be present only for failed
  60. // transactions.
  61. string error_message = 14;
  62. // The ack, request or response payload.
  63. oneof payload {
  64. // The payload in XML format sent to the issuer switch.
  65. string sent = 15;
  66. // The payload in XML format received by the issuer switch.
  67. string received = 16;
  68. }
  69. }