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

Unable to use Java SDK to map the Webhook Event #121

Open
tekpartner-new opened this issue Aug 22, 2023 · 0 comments
Open

Unable to use Java SDK to map the Webhook Event #121

tekpartner-new opened this issue Aug 22, 2023 · 0 comments

Comments

@tekpartner-new
Copy link

When attempting to use the Java Library for mapping the Webhook Events I notice that your Java SDK uses int for “click_tracking” while the value that comes in the payload is Boolean. This makes the SDK unusable. Please provide an update on when we can use your SDK.

https://github.com/SparkPost/java-sparkpost/blob/master/libs/sparkpost-lib/src/main/java/com/sparkpost/model/webhook/event/DeliveryEvent.java

Sample Payload:

{
    "msys":
    {
        "message_event":
        {
            "click_tracking": true,
            "customer_id": "247909",
            "delv_method": "esmtp",
            "event_id": "7267563893113173055",
            "friendly_from": [[email protected]](mailto:[email protected]),
            "injection_time": "2023-08-17T22:10:07.000Z",
            "ip_address": "209.222.82.252",
            "ip_pool": "default",
            "mailbox_provider": "Barracuda Networks",
            "mailbox_provider_region": "B2B - Filter",
            "message_id": "64dbbf9ade6492db2c5b",
            "msg_from": [msprvs1=19593-G44ELib=bounces-247909-4@notification.ambetterhealth.com](mailto:msprvs1=19593-G44ELib=bounces-247909-4@notification.ambetterhealth.com),
            "msg_size": "8662",
            "num_retries": "0",
            "outbound_tls": "1",
            "queue_time": "2661",
            "rcpt_meta":
            {},
            "rcpt_tags":
            [],
            "rcpt_to": [[email protected]](mailto:[email protected]),
            "recv_method": "rest",
            "routing_domain": "handandstone.com",
            "sending_ip": "147.253.214.151",
            "subaccount_id": "4",
            "subject": "Ambetter Payment Confirmation",
            "template_id": "checks-amb-mktplcpymtconf",
            "template_version": "66",
            "timestamp": "1692310210",
            "transmission_id": "7268408008680427921",
            "type": "delivery",
            "raw_rcpt_to": [[email protected]](mailto:[email protected]),
            "recipient_domain": "handandstone.com"
        }
    }
}
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