enhance(stripe): send statement descriptor to stripe (#707)

This commit is contained in:
Narayan Bhat
2023-03-03 14:14:02 +05:30
committed by GitHub
parent e1afeb6426
commit 641c4d6d02
20 changed files with 37 additions and 33 deletions

View File

@ -33,7 +33,7 @@ pub struct CustomerRequest {
#[schema(value_type = Option<Object>,example = json!({
"city": "Bangalore",
"country": "IN",
"line1": "Juspay router",
"line1": "Hyperswitch router",
"line2": "Koramangala",
"line3": "Stallion",
"state": "Karnataka",
@ -73,7 +73,7 @@ pub struct CustomerResponse {
#[schema(value_type = Option<Object>,example = json!({
"city": "Bangalore",
"country": "IN",
"line1": "Juspay router",
"line1": "Hyperswitch router",
"line2": "Koramangala",
"line3": "Stallion",
"state": "Karnataka",

View File

@ -154,8 +154,8 @@ pub struct PaymentsRequest {
pub billing: Option<Address>,
/// For non-card charges, you can use this value as the complete description that appears on your customers statements. Must contain at least one letter, maximum 22 characters.
#[schema(max_length = 255, example = "Juspay Router")]
pub statement_descriptor_name: Option<String>,
#[schema(max_length = 255, example = "Hyperswitch Router")]
pub statement_descriptor: Option<String>,
/// Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor thats set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
#[schema(max_length = 255, example = "Payment for shoes purchase")]
@ -861,8 +861,8 @@ pub struct PaymentsResponse {
#[schema(value_type = Option<AuthenticationType>, example = "no_three_ds", default = "three_ds")]
pub authentication_type: Option<api_enums::AuthenticationType>,
/// For non-card charges, you can use this value as the complete description that appears on your customers statements. Must contain at least one letter, maximum 22 characters.
#[schema(max_length = 255, example = "Juspay Router")]
pub statement_descriptor_name: Option<String>,
#[schema(max_length = 255, example = "Hyperswitch Router")]
pub statement_descriptor: Option<String>,
/// Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor thats set on the account to form the complete statement descriptor. Maximum 255 characters for the concatenated descriptor.
#[schema(max_length = 255, example = "Payment for shoes purchase")]
pub statement_descriptor_suffix: Option<String>,