Skip to content

Commit c3e689e

Browse files
PR feedback - fix schema descriptions
1 parent 52f8d1f commit c3e689e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

backend/compact-connect/lambdas/python/purchases/purchase_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ class PaymentProcessorClientFactory:
846846
@staticmethod
847847
def create_payment_processor_client(credentials: dict) -> PaymentProcessorClient:
848848
processor_type: str = credentials.get('processor')
849-
if processor_type.lower() == PaymentProcessorType.AUTHORIZE_DOT_NET_TYPE:
849+
if processor_type.lower() == PaymentProcessorType.AUTHORIZE_DOT_NET_TYPE.lower():
850850
return AuthorizeNetPaymentProcessorClient(
851851
api_login_id=credentials.get('api_login_id'), transaction_key=credentials.get('transaction_key')
852852
)

backend/compact-connect/stacks/api_stack/v1_api/api_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,12 +687,12 @@ def post_purchase_privileges_request_model(self) -> Model:
687687
properties={
688688
'dataDescriptor': JsonSchema(
689689
type=JsonSchemaType.STRING,
690-
description='The card number',
690+
description='The opaque data descriptor returned by Authorize.Net Accept UI',
691691
max_length=100,
692692
),
693693
'dataValue': JsonSchema(
694694
type=JsonSchemaType.STRING,
695-
description='The card expiration date',
695+
description='The opaque data value token returned by Authorize.Net Accept UI',
696696
max_length=1000,
697697
),
698698
},

backend/compact-connect/tests/app/test_api/test_purchases_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_synth_generates_post_purchases_privileges_endpoint_resources(self):
139139
self.compare_snapshot(
140140
actual=post_purchase_privilege_request_model['Schema'],
141141
snapshot_name='PURCHASE_PRIVILEGE_REQUEST_SCHEMA',
142-
overwrite_snapshot=True,
142+
overwrite_snapshot=False,
143143
)
144144

145145
# now check the response matches expected contract

backend/compact-connect/tests/resources/snapshots/PURCHASE_PRIVILEGE_REQUEST_SCHEMA.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
"opaqueData": {
8080
"properties": {
8181
"dataDescriptor": {
82-
"description": "The card number",
82+
"description": "The opaque data descriptor returned by Authorize.Net Accept UI",
8383
"maxLength": 100,
8484
"type": "string"
8585
},
8686
"dataValue": {
87-
"description": "The card expiration date",
87+
"description": "The opaque data value token returned by Authorize.Net Accept UI",
8888
"maxLength": 1000,
8989
"type": "string"
9090
}

0 commit comments

Comments
 (0)