Skip to content

Commit

Permalink
FEAT(klarna): Klarna Kustom Checkout Integration (#6839)
Browse files Browse the repository at this point in the history
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 839e69d commit c525c9f
Show file tree
Hide file tree
Showing 29 changed files with 593 additions and 265 deletions.
98 changes: 33 additions & 65 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -11854,70 +11854,6 @@
}
}
},
"OrderDetails": {
"type": "object",
"required": [
"product_name",
"quantity"
],
"properties": {
"product_name": {
"type": "string",
"description": "Name of the product that is being purchased",
"example": "shirt",
"maxLength": 255
},
"quantity": {
"type": "integer",
"format": "int32",
"description": "The quantity of the product to be purchased",
"example": 1,
"minimum": 0
},
"requires_shipping": {
"type": "boolean",
"nullable": true
},
"product_img_link": {
"type": "string",
"description": "The image URL of the product",
"nullable": true
},
"product_id": {
"type": "string",
"description": "ID of the product that is being purchased",
"nullable": true
},
"category": {
"type": "string",
"description": "Category of the product that is being purchased",
"nullable": true
},
"sub_category": {
"type": "string",
"description": "Sub category of the product that is being purchased",
"nullable": true
},
"brand": {
"type": "string",
"description": "Brand of the product that is being purchased",
"nullable": true
},
"product_type": {
"allOf": [
{
"$ref": "#/components/schemas/ProductType"
}
],
"nullable": true
},
"product_tax_code": {
"type": "string",
"description": "The tax code for the product",
"nullable": true
}
}
},
"OrderDetailsWithAmount": {
"type": "object",
"required": [
Expand All @@ -11940,7 +11876,21 @@
"minimum": 0
},
"amount": {
"$ref": "#/components/schemas/MinorUnit"
"type": "integer",
"format": "int64",
"description": "the amount per quantity of product"
},
"tax_rate": {
"type": "number",
"format": "double",
"description": "tax rate applicable to the product",
"nullable": true
},
"total_tax_amount": {
"type": "integer",
"format": "int64",
"description": "total tax amount applicable to the product",
"nullable": true
},
"requires_shipping": {
"type": "boolean",
Expand Down Expand Up @@ -12353,6 +12303,17 @@
}
}
},
{
"type": "object",
"required": [
"klarna_checkout"
],
"properties": {
"klarna_checkout": {
"type": "object"
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -12486,6 +12447,13 @@
"description": "The payment attempt amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,",
"example": 6540
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "The payment attempt tax_amount.",
"example": 6540,
"nullable": true
},
"currency": {
"allOf": [
{
Expand Down
126 changes: 61 additions & 65 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14732,70 +14732,6 @@
}
}
},
"OrderDetails": {
"type": "object",
"required": [
"product_name",
"quantity"
],
"properties": {
"product_name": {
"type": "string",
"description": "Name of the product that is being purchased",
"example": "shirt",
"maxLength": 255
},
"quantity": {
"type": "integer",
"format": "int32",
"description": "The quantity of the product to be purchased",
"example": 1,
"minimum": 0
},
"requires_shipping": {
"type": "boolean",
"nullable": true
},
"product_img_link": {
"type": "string",
"description": "The image URL of the product",
"nullable": true
},
"product_id": {
"type": "string",
"description": "ID of the product that is being purchased",
"nullable": true
},
"category": {
"type": "string",
"description": "Category of the product that is being purchased",
"nullable": true
},
"sub_category": {
"type": "string",
"description": "Sub category of the product that is being purchased",
"nullable": true
},
"brand": {
"type": "string",
"description": "Brand of the product that is being purchased",
"nullable": true
},
"product_type": {
"allOf": [
{
"$ref": "#/components/schemas/ProductType"
}
],
"nullable": true
},
"product_tax_code": {
"type": "string",
"description": "The tax code for the product",
"nullable": true
}
}
},
"OrderDetailsWithAmount": {
"type": "object",
"required": [
Expand All @@ -14818,7 +14754,21 @@
"minimum": 0
},
"amount": {
"$ref": "#/components/schemas/MinorUnit"
"type": "integer",
"format": "int64",
"description": "the amount per quantity of product"
},
"tax_rate": {
"type": "number",
"format": "double",
"description": "tax rate applicable to the product",
"nullable": true
},
"total_tax_amount": {
"type": "integer",
"format": "int64",
"description": "total tax amount applicable to the product",
"nullable": true
},
"requires_shipping": {
"type": "boolean",
Expand Down Expand Up @@ -15224,6 +15174,17 @@
}
}
},
{
"type": "object",
"required": [
"klarna_checkout"
],
"properties": {
"klarna_checkout": {
"type": "object"
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -15357,6 +15318,13 @@
"description": "The payment attempt amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,",
"example": 6540
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "The payment attempt tax_amount.",
"example": 6540,
"nullable": true
},
"currency": {
"allOf": [
{
Expand Down Expand Up @@ -17155,6 +17123,13 @@
"nullable": true,
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
"currency": {
"allOf": [
{
Expand Down Expand Up @@ -17533,6 +17508,13 @@
"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)",
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
"currency": {
"$ref": "#/components/schemas/Currency"
},
Expand Down Expand Up @@ -18659,6 +18641,13 @@
"nullable": true,
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
"currency": {
"allOf": [
{
Expand Down Expand Up @@ -19805,6 +19794,13 @@
"nullable": true,
"minimum": 0
},
"order_tax_amount": {
"type": "integer",
"format": "int64",
"description": "Total tax amount applicable to the order",
"example": 6540,
"nullable": true
},
"currency": {
"allOf": [
{
Expand Down
Loading

0 comments on commit c525c9f

Please sign in to comment.