Skip to content

Commit

Permalink
Merge branch 'main' into 7863-add-email-and-phone-number-to-session-t…
Browse files Browse the repository at this point in the history
…oken-response
  • Loading branch information
sahkal authored Dec 18, 2024
2 parents 6d05461 + db51ec4 commit 19fca42
Show file tree
Hide file tree
Showing 72 changed files with 1,456 additions and 517 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/wasm-bulild-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI wasm-check

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
wasm-ci:
name: Check wasm build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable 2 weeks ago

- name: Install wasm-pack
uses: taiki-e/install-action@v2
with:
tool: wasm-pack
checksum: true

- name: wasm build
shell: bash
run: make euclid-wasm
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@ All notable changes to HyperSwitch will be documented here.

- - -

## 2024.12.18.0

### Features

- **analytics:** Analytics Request Validator and config driven forex feature ([#6733](https://github.com/juspay/hyperswitch/pull/6733)) ([`c883aa5`](https://github.com/juspay/hyperswitch/commit/c883aa59aae4ddbcf8c754052ed60b4514043d47))
- **redis-interface:** Add redis interface command to set multiple the keys in redis and increment if the key already exists ([#6827](https://github.com/juspay/hyperswitch/pull/6827)) ([`94ad90f`](https://github.com/juspay/hyperswitch/commit/94ad90f9ed8b2d8a0e4715875f3fdccf2abec15d))

### Bug Fixes

- **connector:**
- 5xx error for Volt Payment Sync ([#6846](https://github.com/juspay/hyperswitch/pull/6846)) ([`588ce40`](https://github.com/juspay/hyperswitch/commit/588ce408b4b04bdd89f2594239e7efc9e0f66114))
- Add expiry year conversion for adyen mit transactions ([#6851](https://github.com/juspay/hyperswitch/pull/6851)) ([`c154a38`](https://github.com/juspay/hyperswitch/commit/c154a385597104fcdbed4aa859c52c97a240c39f))
- **core:** Populate off_session based on payments request ([#6855](https://github.com/juspay/hyperswitch/pull/6855)) ([`107098c`](https://github.com/juspay/hyperswitch/commit/107098cda45440f9d80c6305b7b6e5cd3de9ca0d))
- **payment_methods:** Card_network and card_scheme should be consistent ([#6849](https://github.com/juspay/hyperswitch/pull/6849)) ([`5c4de8a`](https://github.com/juspay/hyperswitch/commit/5c4de8a5133c9a835d8c706c9b71bdfc8140568d))

### Refactors

- **constraint_graph:** Handle PML for cases where setup_future_usage is not passed in payments ([#6810](https://github.com/juspay/hyperswitch/pull/6810)) ([`e8bfd0e`](https://github.com/juspay/hyperswitch/commit/e8bfd0e2270300fff3f051143f34ebb782da5366))
- **customers_v2:** Address panics and some bugs in customers v2 endpoints ([#6836](https://github.com/juspay/hyperswitch/pull/6836)) ([`dfbfce4`](https://github.com/juspay/hyperswitch/commit/dfbfce4e4247166e43f1a805e65331b21eab4e09))

### Miscellaneous Tasks

- **analytics:** SDK table schema changes ([#6579](https://github.com/juspay/hyperswitch/pull/6579)) ([`a056dc7`](https://github.com/juspay/hyperswitch/commit/a056dc72db23200c473e8aa2ec8ce5579fa4f6c6))
- **wasm:** Add wasm changes for ctp_mastercard connector ([#6838](https://github.com/juspay/hyperswitch/pull/6838)) ([`b301d09`](https://github.com/juspay/hyperswitch/commit/b301d09213a8c1c68d711a3b34227d13e61e52f9))

**Full Changelog:** [`2024.12.17.0...2024.12.18.0`](https://github.com/juspay/hyperswitch/compare/2024.12.17.0...2024.12.18.0)

- - -

## 2024.12.17.0

### Features
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: post /v2/customers
---
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: delete /v2/customers/{id}
---
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/customers/list
---
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/customers/{id}
---
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: post /v2/customers/{id}
---
openapi: put /v2/customers/{id}
---
143 changes: 114 additions & 29 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomerRequest"
"$ref": "#/components/schemas/CustomerUpdateRequest"
},
"examples": {
"Update name and email of a customer": {
Expand Down Expand Up @@ -7269,13 +7269,20 @@
"CustomerDeleteResponse": {
"type": "object",
"required": [
"id",
"merchant_reference_id",
"customer_deleted",
"address_deleted",
"payment_methods_deleted",
"id"
"payment_methods_deleted"
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the customer",
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 32
},
"merchant_reference_id": {
"type": "string",
"description": "The identifier for the customer object",
Expand All @@ -7296,10 +7303,6 @@
"type": "boolean",
"description": "Whether payment methods deleted or not",
"example": false
},
"id": {
"type": "string",
"description": "Global id"
}
}
},
Expand Down Expand Up @@ -7415,9 +7418,9 @@
"customer_id": {
"type": "string",
"description": "The unique identifier of the customer.",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 1
"minLength": 32
},
"payment_method_type": {
"$ref": "#/components/schemas/PaymentMethod"
Expand Down Expand Up @@ -7582,16 +7585,24 @@
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500\ncharacters long. Metadata is useful for storing additional, structured information on an\nobject.",
"nullable": true
}
}
},
"additionalProperties": false
},
"CustomerResponse": {
"type": "object",
"required": [
"id",
"merchant_reference_id",
"created_at",
"id"
"created_at"
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the customer",
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 32
},
"merchant_reference_id": {
"type": "string",
"description": "The identifier for the customer object",
Expand Down Expand Up @@ -7667,12 +7678,86 @@
"example": "pm_djh2837dwduh890123",
"nullable": true,
"maxLength": 64
}
}
},
"CustomerUpdateRequest": {
"type": "object",
"required": [
"name",
"email"
],
"properties": {
"merchant_reference_id": {
"type": "string",
"description": "The merchant identifier for the customer object.",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"nullable": true,
"maxLength": 64,
"minLength": 1
},
"id": {
"name": {
"type": "string",
"description": "The customer's name",
"example": "Jon Test",
"maxLength": 255
},
"email": {
"type": "string",
"description": "The customer's email address",
"example": "[email protected]",
"maxLength": 255
},
"phone": {
"type": "string",
"description": "The customer's phone number",
"example": "9123456789",
"nullable": true,
"maxLength": 255
},
"description": {
"type": "string",
"description": "Global id"
"description": "An arbitrary string that you can attach to a customer object.",
"example": "First Customer",
"nullable": true,
"maxLength": 255
},
"phone_country_code": {
"type": "string",
"description": "The country code for the customer phone number",
"example": "+65",
"nullable": true,
"maxLength": 255
},
"default_billing_address": {
"allOf": [
{
"$ref": "#/components/schemas/AddressDetails"
}
],
"nullable": true
},
"default_shipping_address": {
"allOf": [
{
"$ref": "#/components/schemas/AddressDetails"
}
],
"nullable": true
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500\ncharacters long. Metadata is useful for storing additional, structured information on an\nobject.",
"nullable": true
},
"default_payment_method_id": {
"type": "string",
"description": "The unique identifier of the payment method",
"example": "card_rGK4Vi5iSW70MY7J2mIg",
"nullable": true
}
}
},
"additionalProperties": false
},
"DecoupledAuthenticationType": {
"type": "string",
Expand Down Expand Up @@ -13138,9 +13223,9 @@
"customer_id": {
"type": "string",
"description": "The unique identifier of the customer.",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 1
"minLength": 32
},
"payment_method_data": {
"$ref": "#/components/schemas/PaymentMethodCreateData"
Expand Down Expand Up @@ -13679,9 +13764,9 @@
"customer_id": {
"type": "string",
"description": "The unique identifier of the customer.",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 1
"minLength": 32
}
},
"additionalProperties": false
Expand Down Expand Up @@ -13870,6 +13955,7 @@
"type": "object",
"required": [
"merchant_id",
"customer_id",
"payment_method_id",
"payment_method_type",
"recurring_enabled"
Expand All @@ -13883,10 +13969,9 @@
"customer_id": {
"type": "string",
"description": "The unique identifier of the customer.",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"nullable": true,
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 1
"minLength": 32
},
"payment_method_id": {
"type": "string",
Expand Down Expand Up @@ -14452,7 +14537,8 @@
"PaymentsCreateIntentRequest": {
"type": "object",
"required": [
"amount_details"
"amount_details",
"customer_id"
],
"properties": {
"amount_details": {
Expand Down Expand Up @@ -14507,10 +14593,9 @@
"customer_id": {
"type": "string",
"description": "The identifier for the customer",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"nullable": true,
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 1
"minLength": 32
},
"customer_present": {
"allOf": [
Expand Down Expand Up @@ -15344,6 +15429,7 @@
"profile_id",
"capture_method",
"authentication_type",
"customer_id",
"customer_present",
"setup_future_usage",
"apply_mit_exemption",
Expand Down Expand Up @@ -15415,10 +15501,9 @@
"customer_id": {
"type": "string",
"description": "The identifier for the customer",
"example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"nullable": true,
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 1
"minLength": 32
},
"customer_present": {
"$ref": "#/components/schemas/PresenceOfCustomerDuringPayment"
Expand Down
Loading

0 comments on commit 19fca42

Please sign in to comment.