Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyne committed Feb 4, 2024
1 parent 8b85640 commit 9ae8cc2
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 25 deletions.
55 changes: 55 additions & 0 deletions examples/default/data/resources/appsync/payment-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: PaymentProcessingAPI
description: AWS AppSync API
service: payment-service
AWS:
Arn: arn:aws:appsync:eu-central-1:123456789123:apis/payment-processing-id
Name: payment-processing-id
ApiId: "api-id"
AuthenticationType: "OPENID_CONNECT"
ApiType: "GRAPHQL"
Endpoint: "https://api-id.appsync-api.eu-central-1.amazonaws.com/graphql"
Account: "123456789123"
Service: "appsync"
catalog:
updatedAt: '2024-01-07T16:40:30.270Z'
parent: appsync
path: payment-api
owners:
- payment-team
- dboyne
---


## About this AppSync API

AppSync Payment Service API is a robust, scalable solution for integrating payment processing functionalities into your applications. Utilizing AWS AppSync, this API offers a GraphQL interface for a seamless and efficient payment transaction experience. This document outlines the capabilities of the AppSync Payment Service API and provides guidance on how to effectively utilize its features.

#### Features
1. Transaction Processing: Support for various transaction types including but not limited to purchases, refunds, and pre-authorizations.
1. Multiple Payment Methods: Accept a wide range of payment methods including credit/debit cards, digital wallets, and bank transfers.
1. Real-Time Data Synchronization: Leverage GraphQL subscriptions to receive real-time updates on payment status.
1. Secure Transactions: Compliance with PCI DSS and implementation of advanced security measures to protect sensitive payment information.
1. Customizable Workflow: Flexibility to define and implement custom payment processing logic tailored to business needs.

#### Example Mutation:

```json
mutation {
createPayment(amount: 100.00, currency: "USD", method: "card", customerDetails: {...}) {
transactionId
status
}
}
```

#### Example Query

```json
query {
getPaymentStatus(transactionId: "1234567890") {
status
details
}
}
```
18 changes: 1 addition & 17 deletions packages/cloudcatalog/src/components/ResourceGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,7 @@ const getTagsForResourceType = (resource: Resource) => {
return [
{
icon: PowerIcon,
value: resource.AWS.TableStatus,
class: "text-green-700",
},
{
icon: ArrowsRightLeftIcon,
value: `Stream ${
resource.AWS.StreamSpecification?.StreamEnabled
? "Enabled"
: "Disabled"
}`,
class: "text-green-700",
},
{
icon: ArchiveBoxXMarkIcon,
value: `Deletion protection ${
resource.AWS.DeletionProtectionEnabled ? "enabled" : "disabled"
}`,
value: `AuthenticationType ${resource.AWS.AuthenticationType}`,
class: "text-green-700",
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ const buildOverviewForResource = (
{resource.AWS.Endpoint}
</SyntaxHighlighter>
),
colSpan: 2,
},
{ name: "Authentication Type", stat: resource.AWS?.AuthenticationType },
{ name: "Creation Date", stat: resource.AWS.CreationDate },
];

default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ service: payment-service
AWS:
Arn: arn:aws:appsync:eu-central-1:123456789123:apis/payment-processing-id
Name: payment-processing-id
ApiId: "api-id",
AuthenticationType: "OPENID_CONNECT",
ApiType: "GRAPHQL",
Endpoint: "https://api-id.appsync-api.eu-central-1.amazonaws.com/graphql",
Account: "123456789123",
ApiId: "api-id"
AuthenticationType: "OPENID_CONNECT"
ApiType: "GRAPHQL"
Endpoint: "https://api-id.appsync-api.eu-central-1.amazonaws.com/graphql"
Account: "123456789123"
Service: "appsync"
catalog:
updatedAt: '2024-01-07T16:40:30.270Z'
parent: appsync
path: PaymentProcessingAPI
path: payment-api
owners:
- payment-team
- dboyne
Expand All @@ -23,4 +23,33 @@ owners:

## About this AppSync API

The PaymentProcessingAPI exposes a GraphQL api that is used by the Payment application.
AppSync Payment Service API is a robust, scalable solution for integrating payment processing functionalities into your applications. Utilizing AWS AppSync, this API offers a GraphQL interface for a seamless and efficient payment transaction experience. This document outlines the capabilities of the AppSync Payment Service API and provides guidance on how to effectively utilize its features.

#### Features
1. Transaction Processing: Support for various transaction types including but not limited to purchases, refunds, and pre-authorizations.
1. Multiple Payment Methods: Accept a wide range of payment methods including credit/debit cards, digital wallets, and bank transfers.
1. Real-Time Data Synchronization: Leverage GraphQL subscriptions to receive real-time updates on payment status.
1. Secure Transactions: Compliance with PCI DSS and implementation of advanced security measures to protect sensitive payment information.
1. Customizable Workflow: Flexibility to define and implement custom payment processing logic tailored to business needs.

#### Example Mutation:

```json
mutation {
createPayment(amount: 100.00, currency: "USD", method: "card", customerDetails: {...}) {
transactionId
status
}
}
```

#### Example Query

```json
query {
getPaymentStatus(transactionId: "1234567890") {
status
details
}
}
```

0 comments on commit 9ae8cc2

Please sign in to comment.