Skip to content

Instantly share code, notes, and snippets.

@mshick
Last active August 9, 2021 19:31
Show Gist options
  • Save mshick/6190dc87fe1b4feb79bddbbd37e8ecf6 to your computer and use it in GitHub Desktop.
Save mshick/6190dc87fe1b4feb79bddbbd37e8ecf6 to your computer and use it in GitHub Desktop.
stripe-fragment.md
"stripeCustomer": {
    "title": "Stripe Customer",
    "description": "",
    "@ref": "stripe:Customer",
    "@resolver": {
        "name": "rest:get",
        "service": "stripe",
        "options": {"path": "/v1/customers/{customer}"},
        "argsMapping": {
            "pathParams.customer": [
                ["get", {"path": "source.stripeCustomerId"}]
            ]
        }
    }
},
"stripeCustomerSubscriptions": {
    "title": "Stripe Customer Subscriptions",
    "description": "",
    "@ref": "stripe:GetSubscriptionsResponse",
    "@resolver": {
        "name": "rest:get",
        "service": "stripe",
        "options": {"path": "/v1/subscriptions"},
        "argsMapping": {
            "searchParams.customer": [
                ["get", {"path": "source.stripeCustomerId"}]
            ]
        }
    }
}          
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment