273 lines
6.7 KiB
JSON
273 lines
6.7 KiB
JSON
{
|
|
"streams": [
|
|
{
|
|
"name": "customers",
|
|
"json_schema": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"properties": {
|
|
"default_subscription_group_uid": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"portal_invite_last_sent_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"vat_number": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"zip": {
|
|
"type": "string"
|
|
},
|
|
"first_name": {
|
|
"type": "string"
|
|
},
|
|
"country_name": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"city": {
|
|
"type": "string"
|
|
},
|
|
"parent_id": {
|
|
"type": ["null", "integer"]
|
|
},
|
|
"locale": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"portal_customer_created_at": {
|
|
"type": "string"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"country": {
|
|
"type": "string"
|
|
},
|
|
"portal_invite_last_accepted_at": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"tax_exempt": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"reference": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"last_name": {
|
|
"type": "string"
|
|
},
|
|
"address_2": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"organization": {
|
|
"type": "string"
|
|
},
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"cc_emails": {
|
|
"type": "string"
|
|
},
|
|
"state_name": {
|
|
"type": ["null", "string"]
|
|
}
|
|
}
|
|
},
|
|
"supported_sync_modes": ["full_refresh"],
|
|
"source_defined_primary_key": [["id"]]
|
|
},
|
|
{
|
|
"name": "subscriptions",
|
|
"json_schema": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": ["integer"]
|
|
},
|
|
"state": {
|
|
"type": ["string"]
|
|
},
|
|
"balance_in_cents": {
|
|
"type": ["integer"]
|
|
},
|
|
"total_revenue_in_cents": {
|
|
"type": ["integer"]
|
|
},
|
|
"product_price_in_cents": {
|
|
"type": ["integer"]
|
|
},
|
|
"product_version_number": {
|
|
"type": ["integer"]
|
|
},
|
|
"current_period_ends_at": {
|
|
"type": ["string"]
|
|
},
|
|
"next_assessment_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"trial_started_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"trial_ended_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"activated_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"created_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"cancellation_message": {
|
|
"type": ["string"]
|
|
},
|
|
"cancellation_method": {
|
|
"type": ["null", "string"]
|
|
},
|
|
"cancel_at_end_of_period": {
|
|
"type": ["boolean"]
|
|
},
|
|
"canceled_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"current_period_started_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"previous_state": {
|
|
"type": ["string"]
|
|
},
|
|
"signup_payment_id": {
|
|
"type": ["integer"]
|
|
},
|
|
"signup_revenue": {
|
|
"type": ["string"]
|
|
},
|
|
"delayed_cancel_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"coupon_code": {
|
|
"type": ["string"]
|
|
},
|
|
"snap_day": {
|
|
"type": ["string"]
|
|
},
|
|
"payment_collection_method": {
|
|
"type": ["string"]
|
|
},
|
|
"customer": {
|
|
"type": ["object"]
|
|
},
|
|
"product": {
|
|
"type": ["object"]
|
|
},
|
|
"credit_card": {
|
|
"type": ["object"]
|
|
},
|
|
"group": {
|
|
"type": ["null", "object"]
|
|
},
|
|
"bank_account": {
|
|
"type": ["object"]
|
|
},
|
|
"payment_type": {
|
|
"type": ["string"]
|
|
},
|
|
"referral_code": {
|
|
"type": ["string"]
|
|
},
|
|
"next_product_id": {
|
|
"type": ["string"]
|
|
},
|
|
"next_product_handle": {
|
|
"type": ["string"]
|
|
},
|
|
"coupon_use_count": {
|
|
"type": ["integer"]
|
|
},
|
|
"coupon_uses_allowed": {
|
|
"type": ["integer"]
|
|
},
|
|
"reason_code": {
|
|
"type": ["string"]
|
|
},
|
|
"automatically_resume_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"coupon_codes": {
|
|
"type": ["array"]
|
|
},
|
|
"offer_id": {
|
|
"type": ["string"]
|
|
},
|
|
"payer_id": {
|
|
"type": ["integer"]
|
|
},
|
|
"current_billing_amount_in_cents": {
|
|
"type": ["integer"]
|
|
},
|
|
"product_price_point_id": {
|
|
"type": ["integer"]
|
|
},
|
|
"next_product_price_point_id": {
|
|
"type": ["integer"]
|
|
},
|
|
"net_terms": {
|
|
"type": ["integer"]
|
|
},
|
|
"stored_credential_transaction_id": {
|
|
"type": ["integer"]
|
|
},
|
|
"reference": {
|
|
"type": ["string"]
|
|
},
|
|
"on_hold_at": {
|
|
"type": ["string"],
|
|
"format": "date-time"
|
|
},
|
|
"prepaid_dunning": {
|
|
"type": ["boolean"]
|
|
}
|
|
}
|
|
},
|
|
"supported_sync_modes": ["full_refresh"],
|
|
"source_defined_primary_key": [["id"]]
|
|
}
|
|
]
|
|
}
|