Skip to content

Commit d1f2cb7

Browse files
committed
Merge main
2 parents 1db2293 + 8b0fd04 commit d1f2cb7

File tree

17 files changed

+174
-134
lines changed

17 files changed

+174
-134
lines changed

api-reference/openapi_spec.json

Lines changed: 123 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,48 @@
312312
"schema": {
313313
"type": "string"
314314
}
315-
}
316-
],
317-
"requestBody": {
318-
"content": {
319-
"application/json": {
320-
"schema": {
321-
"$ref": "#/components/schemas/PaymentRetrieveBody"
322-
}
315+
},
316+
{
317+
"name": "force_sync",
318+
"in": "query",
319+
"description": "Decider to enable or disable the connector call for retrieve request",
320+
"required": false,
321+
"schema": {
322+
"type": "boolean",
323+
"nullable": true
323324
}
324325
},
325-
"required": true
326-
},
326+
{
327+
"name": "client_secret",
328+
"in": "query",
329+
"description": "This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK",
330+
"required": false,
331+
"schema": {
332+
"type": "string",
333+
"nullable": true
334+
}
335+
},
336+
{
337+
"name": "expand_attempts",
338+
"in": "query",
339+
"description": "If enabled provides list of attempts linked to payment intent",
340+
"required": false,
341+
"schema": {
342+
"type": "boolean",
343+
"nullable": true
344+
}
345+
},
346+
{
347+
"name": "expand_captures",
348+
"in": "query",
349+
"description": "If enabled provides list of captures linked to latest attempt",
350+
"required": false,
351+
"schema": {
352+
"type": "boolean",
353+
"nullable": true
354+
}
355+
}
356+
],
327357
"responses": {
328358
"200": {
329359
"description": "Gets the payment with final status",
@@ -592,91 +622,90 @@
592622
"description": "To list the *payments*",
593623
"operationId": "List all Payments",
594624
"parameters": [
595-
{
596-
"name": "customer_id",
597-
"in": "query",
598-
"description": "The identifier for the customer",
599-
"required": true,
600-
"schema": {
601-
"type": "string"
602-
}
603-
},
604625
{
605626
"name": "starting_after",
606627
"in": "query",
607628
"description": "A cursor for use in pagination, fetch the next list after some object",
608-
"required": true,
629+
"required": false,
609630
"schema": {
610-
"type": "string"
631+
"type": "string",
632+
"nullable": true
611633
}
612634
},
613635
{
614636
"name": "ending_before",
615637
"in": "query",
616638
"description": "A cursor for use in pagination, fetch the previous list before some object",
617-
"required": true,
639+
"required": false,
618640
"schema": {
619-
"type": "string"
641+
"type": "string",
642+
"nullable": true
620643
}
621644
},
622645
{
623646
"name": "limit",
624647
"in": "query",
625648
"description": "Limit on the number of objects to return",
626-
"required": true,
649+
"required": false,
627650
"schema": {
628651
"type": "integer",
629-
"format": "int64"
652+
"format": "int64",
653+
"nullable": true
630654
}
631655
},
632656
{
633657
"name": "created",
634658
"in": "query",
635659
"description": "The time at which payment is created",
636-
"required": true,
660+
"required": false,
637661
"schema": {
638662
"type": "string",
639-
"format": "date-time"
663+
"format": "date-time",
664+
"nullable": true
640665
}
641666
},
642667
{
643668
"name": "created_lt",
644669
"in": "query",
645670
"description": "Time less than the payment created time",
646-
"required": true,
671+
"required": false,
647672
"schema": {
648673
"type": "string",
649-
"format": "date-time"
674+
"format": "date-time",
675+
"nullable": true
650676
}
651677
},
652678
{
653679
"name": "created_gt",
654680
"in": "query",
655681
"description": "Time greater than the payment created time",
656-
"required": true,
682+
"required": false,
657683
"schema": {
658684
"type": "string",
659-
"format": "date-time"
685+
"format": "date-time",
686+
"nullable": true
660687
}
661688
},
662689
{
663690
"name": "created_lte",
664691
"in": "query",
665692
"description": "Time less than or equals to the payment created time",
666-
"required": true,
693+
"required": false,
667694
"schema": {
668695
"type": "string",
669-
"format": "date-time"
696+
"format": "date-time",
697+
"nullable": true
670698
}
671699
},
672700
{
673701
"name": "created_gte",
674702
"in": "query",
675703
"description": "Time greater than or equals to the payment created time",
676-
"required": true,
704+
"required": false,
677705
"schema": {
678706
"type": "string",
679-
"format": "date-time"
707+
"format": "date-time",
708+
"nullable": true
680709
}
681710
}
682711
],
@@ -918,6 +947,17 @@
918947
],
919948
"summary": "Payments - Post Session Tokens",
920949
"operationId": "Create Post Session Tokens for a Payment",
950+
"parameters": [
951+
{
952+
"name": "payment_id",
953+
"in": "path",
954+
"description": "The identifier for payment",
955+
"required": true,
956+
"schema": {
957+
"type": "string"
958+
}
959+
}
960+
],
921961
"requestBody": {
922962
"content": {
923963
"application/json": {
@@ -957,6 +997,17 @@
957997
],
958998
"summary": "Payments - Update Metadata",
959999
"operationId": "Update Metadata for a Payment",
1000+
"parameters": [
1001+
{
1002+
"name": "payment_id",
1003+
"in": "path",
1004+
"description": "The identifier for payment",
1005+
"required": true,
1006+
"schema": {
1007+
"type": "string"
1008+
}
1009+
}
1010+
],
9601011
"requestBody": {
9611012
"content": {
9621013
"application/json": {
@@ -1073,6 +1124,15 @@
10731124
"description": "Retrieves a relay details.",
10741125
"operationId": "Retrieve a Relay details",
10751126
"parameters": [
1127+
{
1128+
"name": "relay_id",
1129+
"in": "path",
1130+
"description": "The unique identifier for the Relay",
1131+
"required": true,
1132+
"schema": {
1133+
"type": "string"
1134+
}
1135+
},
10761136
{
10771137
"name": "X-Profile-Id",
10781138
"in": "header",
@@ -1735,6 +1795,17 @@
17351795
"summary": "Merchant Connector - Create",
17361796
"description": "Creates a new Merchant Connector for the merchant account. The connector could be a payment processor/facilitator/acquirer or a provider of specialized services like Fraud/Accounting etc.",
17371797
"operationId": "Create a Merchant Connector",
1798+
"parameters": [
1799+
{
1800+
"name": "account_id",
1801+
"in": "path",
1802+
"description": "The unique identifier for the merchant account",
1803+
"required": true,
1804+
"schema": {
1805+
"type": "string"
1806+
}
1807+
}
1808+
],
17381809
"requestBody": {
17391810
"content": {
17401811
"application/json": {
@@ -2286,6 +2357,17 @@
22862357
"summary": "Mandates - Customer Mandates List",
22872358
"description": "Lists all the mandates for a particular customer id.",
22882359
"operationId": "List Mandates for a Customer",
2360+
"parameters": [
2361+
{
2362+
"name": "customer_id",
2363+
"in": "path",
2364+
"description": "The unique identifier for the customer",
2365+
"required": true,
2366+
"schema": {
2367+
"type": "string"
2368+
}
2369+
}
2370+
],
22892371
"responses": {
22902372
"200": {
22912373
"description": "List of retrieved mandates for a customer",
@@ -2810,7 +2892,7 @@
28102892
],
28112893
"summary": "List customer saved payment methods for a Payment",
28122894
"description": "Lists all the applicable payment methods for a particular payment tied to the `client_secret`.",
2813-
"operationId": "List all Payment Methods for a Customer",
2895+
"operationId": "List Customer Payment Methods via Client Secret",
28142896
"parameters": [
28152897
{
28162898
"name": "client-secret",
@@ -2919,7 +3001,7 @@
29193001
}
29203002
},
29213003
"/{customer_id}/payment_methods/{payment_method_id}/default": {
2922-
"get": {
3004+
"post": {
29233005
"tags": [
29243006
"Payment Methods"
29253007
],
@@ -16534,6 +16616,9 @@
1653416616
},
1653516617
"OrganizationUpdateRequest": {
1653616618
"type": "object",
16619+
"required": [
16620+
"platform_merchant_id"
16621+
],
1653716622
"properties": {
1653816623
"organization_name": {
1653916624
"type": "string",
@@ -16552,8 +16637,7 @@
1655216637
},
1655316638
"platform_merchant_id": {
1655416639
"type": "string",
16555-
"description": "Platform merchant id is unique distiguisher for special merchant in the platform org",
16556-
"nullable": true
16640+
"description": "Platform merchant id is unique distiguisher for special merchant in the platform org"
1655716641
}
1655816642
},
1655916643
"additionalProperties": false

crates/api_models/src/organization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub struct OrganizationUpdateRequest {
5252
pub metadata: Option<pii::SecretSerdeValue>,
5353

5454
/// Platform merchant id is unique distiguisher for special merchant in the platform org
55-
#[schema(value_type = Option<String>)]
55+
#[schema(value_type = String)]
5656
pub platform_merchant_id: Option<id_type::MerchantId>,
5757
}
5858
#[cfg(feature = "v1")]

crates/connector_configs/toml/development.toml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -977,24 +977,6 @@ merchant_secret="Source verification key"
977977
payment_method_type = "CartesBancaires"
978978
[[bluesnap.credit]]
979979
payment_method_type = "UnionPay"
980-
[[bluesnap.debit]]
981-
payment_method_type = "Mastercard"
982-
[[bluesnap.debit]]
983-
payment_method_type = "Visa"
984-
[[bluesnap.debit]]
985-
payment_method_type = "Interac"
986-
[[bluesnap.debit]]
987-
payment_method_type = "AmericanExpress"
988-
[[bluesnap.debit]]
989-
payment_method_type = "JCB"
990-
[[bluesnap.debit]]
991-
payment_method_type = "DinersClub"
992-
[[bluesnap.debit]]
993-
payment_method_type = "Discover"
994-
[[bluesnap.debit]]
995-
payment_method_type = "CartesBancaires"
996-
[[bluesnap.debit]]
997-
payment_method_type = "UnionPay"
998980
[[bluesnap.wallet]]
999981
payment_method_type = "google_pay"
1000982
[[bluesnap.wallet]]

crates/connector_configs/toml/production.toml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -494,24 +494,6 @@ merchant_secret="Source verification key"
494494
payment_method_type = "CartesBancaires"
495495
[[bluesnap.credit]]
496496
payment_method_type = "UnionPay"
497-
[[bluesnap.debit]]
498-
payment_method_type = "Mastercard"
499-
[[bluesnap.debit]]
500-
payment_method_type = "Visa"
501-
[[bluesnap.debit]]
502-
payment_method_type = "Interac"
503-
[[bluesnap.debit]]
504-
payment_method_type = "AmericanExpress"
505-
[[bluesnap.debit]]
506-
payment_method_type = "JCB"
507-
[[bluesnap.debit]]
508-
payment_method_type = "DinersClub"
509-
[[bluesnap.debit]]
510-
payment_method_type = "Discover"
511-
[[bluesnap.debit]]
512-
payment_method_type = "CartesBancaires"
513-
[[bluesnap.debit]]
514-
payment_method_type = "UnionPay"
515497
[[bluesnap.wallet]]
516498
payment_method_type = "google_pay"
517499
[[bluesnap.wallet]]

crates/connector_configs/toml/sandbox.toml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -977,24 +977,6 @@ merchant_secret="Source verification key"
977977
payment_method_type = "CartesBancaires"
978978
[[bluesnap.credit]]
979979
payment_method_type = "UnionPay"
980-
[[bluesnap.debit]]
981-
payment_method_type = "Mastercard"
982-
[[bluesnap.debit]]
983-
payment_method_type = "Visa"
984-
[[bluesnap.debit]]
985-
payment_method_type = "Interac"
986-
[[bluesnap.debit]]
987-
payment_method_type = "AmericanExpress"
988-
[[bluesnap.debit]]
989-
payment_method_type = "JCB"
990-
[[bluesnap.debit]]
991-
payment_method_type = "DinersClub"
992-
[[bluesnap.debit]]
993-
payment_method_type = "Discover"
994-
[[bluesnap.debit]]
995-
payment_method_type = "CartesBancaires"
996-
[[bluesnap.debit]]
997-
payment_method_type = "UnionPay"
998980
[[bluesnap.wallet]]
999981
payment_method_type = "google_pay"
1000982
[[bluesnap.wallet]]

crates/hyperswitch_connectors/src/connectors/bluesnap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ static BLUESNAP_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =
14501450
api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
14511451
api_models::feature_matrix::CardSpecificFeatures {
14521452
three_ds: common_enums::FeatureStatus::Supported,
1453-
no_three_ds: common_enums::FeatureStatus::NotSupported,
1453+
no_three_ds: common_enums::FeatureStatus::Supported,
14541454
supported_card_networks: supported_card_network.clone(),
14551455
}
14561456
}),

0 commit comments

Comments
 (0)