Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(payment_methods_v2): Implemented Diesel and Domain models for v2 #5700

Merged
merged 53 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b1ffaf6
feat(payment_methods_v2): Payment methods v2 API models
Sarthak1799 Aug 7, 2024
dd73c0c
chore: run formatter
hyperswitch-bot[bot] Aug 7, 2024
8732045
Merge branch 'main' into pm-models-v2
Sarthak1799 Aug 7, 2024
013a793
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] Aug 7, 2024
b0cd0f2
fix(payment_methods_v2): script changes
Sarthak1799 Aug 7, 2024
c032d28
Merge branch 'main' of github.com:juspay/hyperswitch into pm-models-v2
Sarthak1799 Aug 8, 2024
8a5ef21
fix(payment_methods_v2): Resolved comments
Sarthak1799 Aug 12, 2024
9ca881c
chore: run formatter
hyperswitch-bot[bot] Aug 12, 2024
78069f4
fix(payment_methods_v2): Resolved comments
Sarthak1799 Aug 12, 2024
39c128c
fix(payment_methods_v2): Resolved comments
Sarthak1799 Aug 13, 2024
2d100a4
Merge branch 'main' into pm-models-v2
Sarthak1799 Aug 14, 2024
169a890
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] Aug 14, 2024
bba3b8a
fix(payment_methods_v2): fixed v2 funcs
Sarthak1799 Aug 14, 2024
6b34cbe
Merge branch 'main' of github.com:juspay/hyperswitch into pm-models-v2
Sarthak1799 Aug 14, 2024
5986fbf
Merge branch 'main' into pm-models-v2
Sarthak1799 Aug 20, 2024
2c0e5e6
fix(payment_methods_v2): Fixed errors
Sarthak1799 Aug 21, 2024
194a2ba
fix(payment_methods_v2): Fixed errors
Sarthak1799 Aug 21, 2024
c5b29a2
fix(payment_methods_v2): Resolved comments
Sarthak1799 Aug 22, 2024
aab6e8c
chore: run formatter
hyperswitch-bot[bot] Aug 22, 2024
835bf15
fix(payment_methods_v2): Fixed errors
Sarthak1799 Aug 22, 2024
5009e57
fix(payment_methods_v2): Resolved comments
Sarthak1799 Aug 22, 2024
0dd4f3d
fix(payment_methods_v2): Fixed errors
Sarthak1799 Aug 22, 2024
92e1a68
Merge branch 'main' into pm-models-v2
Sarthak1799 Aug 22, 2024
be4bee6
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] Aug 22, 2024
07979b9
Merge branch 'main' of github.com:juspay/hyperswitch into pm-models-v2
Sarthak1799 Aug 22, 2024
813d2aa
Merge branch 'main' of github.com:juspay/hyperswitch into pm-v2-domain
Sarthak1799 Aug 26, 2024
1e832b6
feat(payment_methods_v2): Implemented Diesel and Domain models for v2
Sarthak1799 Aug 26, 2024
22163e8
fix(core): Fixed errors
Sarthak1799 Aug 26, 2024
cb30f48
fix(core): Fixed errors
Sarthak1799 Aug 26, 2024
f55d8c6
fix(core): Fixed migrations
Sarthak1799 Aug 26, 2024
11e5075
fix(core): Fixed errors
Sarthak1799 Aug 27, 2024
8100ef7
fix(core): Resolved comments
Sarthak1799 Aug 27, 2024
de10bb1
Merge branch 'main' of github.com:juspay/hyperswitch into pm-v2-domain
Sarthak1799 Aug 27, 2024
ed10dd4
chore: run formatter
hyperswitch-bot[bot] Aug 27, 2024
6764ed0
fix(core): Fixed errors
Sarthak1799 Aug 27, 2024
b1e48f6
fix(core): Resolved comments
Sarthak1799 Aug 28, 2024
8c0d561
Merge branch 'main' of github.com:juspay/hyperswitch into pm-v2-domain
Sarthak1799 Aug 28, 2024
451c255
fix(core): Fixed errors
Sarthak1799 Aug 28, 2024
cb1be14
diesel: Added fingerprint col + refactor
Sarthak1799 Aug 29, 2024
4d2168e
fix(diesel): Fixed errors for v2
Sarthak1799 Aug 30, 2024
36d3fed
chore: run formatter
hyperswitch-bot[bot] Aug 30, 2024
79a0f41
fix(core): Resolved comments
Sarthak1799 Aug 30, 2024
d1b8dd4
Merge branch 'main' of github.com:juspay/hyperswitch into pm-v2-domain
Sarthak1799 Aug 30, 2024
d7310d2
fix: Fixed errors
Sarthak1799 Aug 30, 2024
15dc84a
diesel: Added fingerprint lookup query
Sarthak1799 Aug 31, 2024
cb9da79
Resolved comments
Sarthak1799 Aug 31, 2024
f4a6e33
fix: Fixed errors
Sarthak1799 Aug 31, 2024
a156223
diesel: Added api_version + resolved comments
Sarthak1799 Sep 2, 2024
dd79289
Merge branch 'main' into pm-v2-domain
Sarthak1799 Sep 2, 2024
cca58e8
fix: Resolved comments
Sarthak1799 Sep 2, 2024
3db7275
Merge branch 'main' of github.com:juspay/hyperswitch into pm-v2-domain
Sarthak1799 Sep 4, 2024
24a7ffc
fix: Fixed error from main
Sarthak1799 Sep 4, 2024
deb48af
Merge branch 'main' of github.com:juspay/hyperswitch into pm-v2-domain
Sarthak1799 Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/diesel_models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ v1 = []
v2 = []
customer_v2 = []
payment_v2 = []
payment_methods_v2 = []

[dependencies]
async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" }
Expand Down
8 changes: 8 additions & 0 deletions crates/diesel_models/src/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,19 @@ impl DBOperation {
Updateable::PayoutAttemptUpdate(a) => DBResult::PayoutAttempt(Box::new(
a.orig.update_with_attempt_id(conn, a.update_data).await?,
)),
#[cfg(all(
any(feature = "v1", feature = "v2"),
not(feature = "payment_methods_v2")
))]
Updateable::PaymentMethodUpdate(v) => DBResult::PaymentMethod(Box::new(
v.orig
.update_with_payment_method_id(conn, v.update_data)
.await?,
)),
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
Updateable::PaymentMethodUpdate(v) => DBResult::PaymentMethod(Box::new(
v.orig.update_with_id(conn, v.update_data).await?,
)),
Updateable::MandateUpdate(m) => DBResult::Mandate(Box::new(
Mandate::update_by_merchant_id_mandate_id(
conn,
Expand Down
Loading
Loading