Skip to content

Commit

Permalink
bot commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweta-Kumari-Sharma committed Dec 4, 2024
2 parents 1cc33c2 + bd5e2a3 commit fa887e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -16725,14 +16725,15 @@
"amount": {
"type": "integer",
"format": "int64",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest",
"example": 6540,
"nullable": true,
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
Expand Down Expand Up @@ -17103,12 +17104,13 @@
"amount": {
"type": "integer",
"format": "int64",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest",
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
Expand Down Expand Up @@ -18225,14 +18227,15 @@
"amount": {
"type": "integer",
"format": "int64",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest",
"example": 6540,
"nullable": true,
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
Expand Down Expand Up @@ -19369,14 +19372,15 @@
"amount": {
"type": "integer",
"format": "int64",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest",
"example": 6540,
"nullable": true,
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
Expand Down
6 changes: 4 additions & 2 deletions crates/router/src/connector/klarna/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ impl TryFrom<&KlarnaRouterData<&types::PaymentsAuthorizeRouterData>> for KlarnaP
let request = &item.router_data.request;
let payment_method_data = request.payment_method_data.clone();
let return_url = item.router_data.request.get_return_url()?;
let webhook_url = item.router_data.request.get_webhook_url()?;

match payment_method_data {
domain::PaymentMethodData::PayLater(domain::PayLaterData::KlarnaSdk { .. }) => {
match request.order_details.clone() {
Expand Down Expand Up @@ -296,8 +298,8 @@ impl TryFrom<&KlarnaRouterData<&types::PaymentsAuthorizeRouterData>> for KlarnaP
merchant_urls: MerchantURLs {
terms: return_url.clone(),
checkout: return_url.clone(),
confirmation: "https://google.com".to_string(),
push: "https://google.com".to_string(),
confirmation: return_url,
push: webhook_url,
},
}),
options: Some(CheckoutOptions {
Expand Down

0 comments on commit fa887e3

Please sign in to comment.