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

Can we add more customer details? #49

Open
rickpaulfmg opened this issue Oct 31, 2024 · 0 comments
Open

Can we add more customer details? #49

rickpaulfmg opened this issue Oct 31, 2024 · 0 comments

Comments

@rickpaulfmg
Copy link

Currently, we receive only "id" and "email" from the customer details. It would be nice if "first_name", "last_name", "company", and "phone" were also all provided.

Ideally as a customer table, however, it would be fine nested in the transaction response as well.

        "customer_details": {
            "type": "object",
            "properties": {
                "id": {
                    "type": ["null", "string"]
                },
                "email": {
                    "type": ["null", "string"]
                }
            }
        }

The nested customer would appear like this:

        "customer_details": {
            "type": "object",
            "properties": {
                "id": {
                    "type": ["null", "string"]
                },
                "email": {
                    "type": ["null", "string"]
                },
                "first_name": {
                    "type": ["null", "string"]
                },
                "last_name": {
                    "type": ["null", "string"]
                },
                "company": {
                    "type": ["null", "string"]
                },
                "phone": {
                    "type": ["null", "string"]
                },
                "website": {
                    "type": ["null", "string"]
                }
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant