Skip to content

Commit

Permalink
address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarSinghC committed Dec 19, 2024
1 parent 0b5c449 commit 9a55135
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
16 changes: 11 additions & 5 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -23054,7 +23054,7 @@
"properties": {
"connector_resource_id": {
"type": "string",
"description": "The identifier that is associated to a resource at the connector reference to which the relay request is being made",
"description": "The identifier that is associated to a resource at the connector to which the relay request is being made",
"example": "7256228702616471803954"
},
"connector_id": {
Expand All @@ -23064,7 +23064,7 @@
},
"profile_id": {
"type": "string",
"description": "The business profile that is associated with this payment request",
"description": "The business profile that is associated with this relay request",
"example": "pro_abcdefghijklmnopqrstuvwxyz"
},
"type": {
Expand Down Expand Up @@ -23099,6 +23099,12 @@
"status": {
"$ref": "#/components/schemas/RelayStatus"
},
"connector_reference_id": {
"type": "string",
"description": "The reference identifier provided by the connector for the relay request",
"example": "pi_3MKEivSFNglxLpam0ZaL98q9",
"nullable": true
},
"error": {
"allOf": [
{
Expand All @@ -23109,17 +23115,17 @@
},
"connector_resource_id": {
"type": "string",
"description": "The identifier that is associated to a resource at the connector reference to which the relay request is being made",
"description": "The identifier that is associated to a resource at the connector to which the relay request is being made",
"example": "7256228702616471803954"
},
"connector_id": {
"type": "string",
"description": "Identifier of the connector ( merchant connector account ) which was chosen to make the payment",
"description": "Identifier of the connector ( merchant connector account ) to which relay request is being made",
"example": "mca_5apGeP94tMts6rg3U3kR"
},
"profile_id": {
"type": "string",
"description": "The business profile that is associated with this relay request.",
"description": "The business profile that is associated with this relay request",
"example": "pro_abcdefghijklmnopqrstuvwxyz"
},
"type": {
Expand Down
11 changes: 7 additions & 4 deletions crates/api_models/src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ pub use common_utils::types::MinorUnit;

#[derive(Debug, ToSchema, Clone, Deserialize, Serialize)]
pub struct RelayRequest {
/// The identifier that is associated to a resource at the connector reference to which the relay request is being made
/// The identifier that is associated to a resource at the connector to which the relay request is being made
#[schema(example = "7256228702616471803954")]
pub connector_resource_id: String,
/// Identifier of the connector ( merchant connector account ) to which relay request is being made
#[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)]
pub connector_id: common_utils::id_type::MerchantConnectorAccountId,
/// The business profile that is associated with this payment request
/// The business profile that is associated with this relay request
#[schema(example = "pro_abcdefghijklmnopqrstuvwxyz", value_type = String)]
pub profile_id: common_utils::id_type::ProfileId,
/// The type of relay request
Expand Down Expand Up @@ -57,15 +57,18 @@ pub struct RelayResponse {
pub id: common_utils::id_type::RelayId,
/// The status of the relay request
pub status: RelayStatus,
/// The reference identifier provided by the connector for the relay request
#[schema(example = "pi_3MKEivSFNglxLpam0ZaL98q9")]
pub connector_reference_id: Option<String>,
/// The error details if the relay request failed
pub error: Option<RelayError>,
/// The identifier that is associated to a resource at the connector reference to which the relay request is being made
/// The identifier that is associated to a resource at the connector to which the relay request is being made
#[schema(example = "7256228702616471803954")]
pub connector_resource_id: String,
/// Identifier of the connector ( merchant connector account ) to which relay request is being made
#[schema(example = "mca_5apGeP94tMts6rg3U3kR", value_type = String)]
pub connector_id: common_utils::id_type::MerchantConnectorAccountId,
/// The business profile that is associated with this relay request.
/// The business profile that is associated with this relay request
#[schema(example = "pro_abcdefghijklmnopqrstuvwxyz", value_type = String)]
pub profile_id: common_utils::id_type::ProfileId,
/// The type of relay request
Expand Down

0 comments on commit 9a55135

Please sign in to comment.