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

feat: add streams Orders/Transactions/Subscriptions #2

Open
pnadolny13 opened this issue Mar 25, 2024 · 0 comments
Open

feat: add streams Orders/Transactions/Subscriptions #2

pnadolny13 opened this issue Mar 25, 2024 · 0 comments

Comments

@pnadolny13
Copy link
Contributor

pnadolny13 commented Mar 25, 2024

# Orders
# https://services.leadconnectorhq.com/payments/orders
# https://highlevel.stoplight.io/docs/integrations/378562f514a17-list-orders
schema = th.PropertiesList(
    th.Property("_id", th.StringType),
    th.Property("altId", th.StringType),
    th.Property("altType", th.StringType),
    th.Property("contactId", th.StringType),
    th.Property("contactName", th.StringType),
    th.Property("contactEmail", th.StringType),
    th.Property("currency", th.StringType),
    th.Property("amount", th.StringType),
    th.Property("subtotal", th.StringType),
    th.Property("discount", th.StringType),
    th.Property("status", th.StringType),
    th.Property("liveMode", th.StringType),
    th.Property("totalProducts", th.StringType),
    th.Property("sourceType", th.StringType),
    th.Property("sourceName", th.StringType),
    th.Property("sourceId", th.StringType),
    th.Property("sourceMeta", th.StringType),
    th.Property("couponCode", th.StringType),
    th.Property("createdAt", th.DateTimeType),
    th.Property("updatedAt", th.DateTimeType),
    th.Property("sourceSubType", th.StringType),
    th.Property("fulfillmentStatus", th.StringType),
    th.Property("onetimeProducts", th.StringType),
    th.Property("recurringProducts", th.StringType)
).to_dict()


# Transactions
# https://highlevel.stoplight.io/docs/integrations/4d127e6508f0a-list-transactions
schema = th.PropertiesList(
    th.Property("_id", th.StringType),
    th.Property("altId", th.StringType),
    th.Property("altType", th.StringType),
    th.Property("contactId", th.StringType),
    th.Property("contactName", th.StringType),
    th.Property("contactEmail", th.StringType),
    th.Property("currency", th.StringType),
    th.Property("amount", th.StringType),
    th.Property("status", th.StringType),
    th.Property("liveMode", th.StringType),
    th.Property("entityType", th.StringType),
    th.Property("entityId", th.StringType),
    th.Property("entitySourceType", th.StringType),
    th.Property("entitySourceSubType", th.StringType),
    th.Property("entitySourceName", th.StringType),
    th.Property("entitySourceId", th.StringType),
    th.Property("entitySourceMeta", th.StringType),
    th.Property("subscriptionId", th.StringType),
    th.Property("chargeId", th.StringType),
    th.Property("chargeSnapshot", th.StringType),
    th.Property("paymentProviderType", th.StringType),
    th.Property("paymentProviderConnectedAccount", th.StringType),
    th.Property("ipAddress", th.StringType),
    th.Property("createdAt", th.DateTimeType),
    th.Property("updatedAt", th.DateTimeType),
    th.Property("amountRefunded", th.StringType),
    th.Property("paymentMethod", th.StringType),
).to_dict()


# Subscriptions
# https://highlevel.stoplight.io/docs/integrations/33c965c6cb9da-list-subscriptions
schema = th.PropertiesList(
    th.Property("_id", th.StringType),
    th.Property("altId", th.StringType),
    th.Property("altType", th.StringType),
    th.Property("contactId", th.StringType),
    th.Property("contactName", th.StringType),
    th.Property("contactEmail", th.StringType),
    th.Property("currency", th.StringType),
    th.Property("amount", th.StringType),
    th.Property("status", th.StringType),
    th.Property("liveMode", th.StringType),
    th.Property("entityType", th.StringType),
    th.Property("entityId", th.StringType),
    th.Property("entitySourceType", th.StringType),
    th.Property("entitySourceName", th.StringType),
    th.Property("entitySourceId", th.StringType),
    th.Property("entitySourceMeta", th.StringType),
    th.Property("subscriptionId", th.StringType),
    th.Property("subscriptionSnapshot", th.StringType),
    th.Property("paymentProviderType", th.StringType),
    th.Property("paymentProviderConnectedAccount", th.StringType),
    th.Property("ipAddress", th.StringType),
    th.Property("createdAt", th.DateTimeType),
    th.Property("updatedAt", th.DateTimeType)
).to_dict()
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