Skip to content

Commit

Permalink
Update manifest and future_state to represent correct cursor values
Browse files Browse the repository at this point in the history
  • Loading branch information
pnilan committed Dec 28, 2023
1 parent 81def60 commit 96a8a06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@
{"stream": "credit_note", "data": {"id": "TEST-CN-5", "customer_id": "cbdemo_simon", "subscription_id": "cbdemo_future_sub", "reference_invoice_id": "19", "type": "refundable", "reason_code": "product_unsatisfactory", "status": "refunded", "date": 1674033113, "price_type": "tax_exclusive", "exchange_rate": 1.0, "total": 80000, "amount_allocated": 80000, "amount_refunded": 0, "amount_available": 0, "refunded_at": 1674872880, "generated_at": 1674033113, "updated_at": 1674872880, "channel": "web", "resource_version": 1674872880610, "deleted": false, "object": "credit_note", "create_reason_code": "Product Unsatisfactory", "currency_code": "USD", "round_off_amount": 0, "fractional_correction": 0, "base_currency_code": "USD", "sub_total": 80000, "line_items": [{"id": "li_16CM7mTTHULEa1hh", "date_from": 1674069063, "date_to": 1674069063, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "per_unit", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "cbdemo_future_sub", "customer_id": "cbdemo_simon", "description": "Lite - Monthly Plan", "entity_type": "plan_item_price", "entity_id": "cbdemo_lite-USD-monthly", "entity_description": "Lite Monthly Plan USD", "reference_line_item_id": "li_16CZgbTIgigQV7CGu", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}, {"id": "li_16CM7mTTHULEe1hi", "date_from": 1674069063, "date_to": 1674069063, "unit_amount": 30000, "quantity": 1, "amount": 30000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "cbdemo_future_sub", "customer_id": "cbdemo_simon", "description": "Concierge Support - Monthly Addon", "entity_type": "addon_item_price", "entity_id": "cbdemo_concierge-support-USD-monthly", "reference_line_item_id": "li_16CZgbTIgigQj7CGv", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "taxes": [], "line_item_taxes": [], "line_item_discounts": [], "linked_refunds": [], "allocations": [{"allocated_amount": 20300, "allocated_at": 1674872880, "invoice_id": "64", "invoice_date": 1674872877, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674815049, "invoice_id": "62", "invoice_date": 1674815048, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674728652, "invoice_id": "58", "invoice_date": 1674728648, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674642252, "invoice_id": "54", "invoice_date": 1674642248, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674555851, "invoice_id": "50", "invoice_date": 1674555848, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674469451, "invoice_id": "46", "invoice_date": 1674469448, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674383053, "invoice_id": "42", "invoice_date": 1674383048, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674296651, "invoice_id": "38", "invoice_date": 1674296648, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674210252, "invoice_id": "34", "invoice_date": 1674210248, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674123850, "invoice_id": "30", "invoice_date": 1674123848, "invoice_status": "paid"}, {"allocated_amount": 50700, "allocated_at": 1674037448, "invoice_id": "26", "invoice_date": 1674037448, "invoice_status": "paid"}], "billing_address": {"first_name": "Simon", "last_name": "Masrani", "company": "Openlane Ltd", "validation_status": "not_validated", "object": "billing_address"}, "customer_notes": "", "custom_fields": []}, "emitted_at": 1703612727121}
{"stream": "credit_note", "data": {"id": "TEST-CN-6", "customer_id": "cbdemo_simon", "subscription_id": "AzZTZgTTHmX8Gc1", "reference_invoice_id": "128", "type": "refundable", "reason_code": "product_unsatisfactory", "status": "refunded", "date": 1676371612, "price_type": "tax_exclusive", "exchange_rate": 1.0, "total": 200, "amount_allocated": 200, "amount_refunded": 0, "amount_available": 0, "refunded_at": 1676456650, "generated_at": 1676371612, "updated_at": 1676456650, "channel": "web", "resource_version": 1676456650511, "deleted": false, "object": "credit_note", "create_reason_code": "Product Unsatisfactory", "currency_code": "USD", "round_off_amount": 0, "fractional_correction": 0, "base_currency_code": "USD", "sub_total": 200, "line_items": [{"id": "li_16CM0pTVpkRhZ29v", "date_from": 1676371612, "date_to": 1676371612, "unit_amount": 200, "quantity": 1, "amount": 200, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "AzZTZgTTHmX8Gc1", "customer_id": "cbdemo_simon", "description": "Test Plan 1", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily", "entity_description": "Test", "reference_line_item_id": "li_16CR6XTVdxgpUH1gi", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "taxes": [], "line_item_taxes": [], "line_item_discounts": [], "linked_refunds": [], "allocations": [{"allocated_amount": 200, "allocated_at": 1676456650, "invoice_id": "140", "invoice_date": 1676456648, "invoice_status": "paid"}], "billing_address": {"first_name": "Simon", "last_name": "Masrani", "company": "Openlane Ltd", "validation_status": "not_validated", "object": "billing_address"}, "customer_notes": "", "custom_fields": []}, "emitted_at": 1703612727285}
{"stream": "credit_note", "data": {"id": "TEST-CN-7", "customer_id": "cbdemo_simon", "subscription_id": "AzZTZgTTHmX8Gc1", "reference_invoice_id": "128", "type": "refundable", "reason_code": "product_unsatisfactory", "status": "refunded", "date": 1676371655, "price_type": "tax_exclusive", "exchange_rate": 1.0, "total": 100, "amount_allocated": 100, "amount_refunded": 0, "amount_available": 0, "refunded_at": 1676456650, "generated_at": 1676371655, "updated_at": 1676456650, "channel": "web", "resource_version": 1676456650518, "deleted": false, "object": "credit_note", "create_reason_code": "Product Unsatisfactory", "currency_code": "USD", "round_off_amount": 0, "fractional_correction": 0, "base_currency_code": "USD", "sub_total": 100, "line_items": [{"id": "li_AzZTODTVpkcu827U", "date_from": 1676371655, "date_to": 1676371655, "unit_amount": 100, "quantity": 1, "amount": 100, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "AzZTZgTTHmX8Gc1", "customer_id": "cbdemo_simon", "description": "Test Plan 1", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily", "entity_description": "Test", "reference_line_item_id": "li_16CR6XTVdxgpUH1gi", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "taxes": [], "line_item_taxes": [], "line_item_discounts": [], "linked_refunds": [], "allocations": [{"allocated_amount": 100, "allocated_at": 1676456650, "invoice_id": "140", "invoice_date": 1676456648, "invoice_status": "paid"}], "billing_address": {"first_name": "Simon", "last_name": "Masrani", "company": "Openlane Ltd", "validation_status": "not_validated", "object": "billing_address"}, "customer_notes": "", "custom_fields": []}, "emitted_at": 1703612727293}

{"stream":"comment","data":{"id":"cmt_16CM7mTTHULGY1hj","entity_type":"credit_note","entity_id":"TEST-CN-5","notes":"Test","added_by":"[email protected]","created_at":1674033113,"type":"user","object":"comment","custom_fields":[]},"emitted_at":1703800968922}
{"stream":"comment","data":{"id":"cmt_AzZTZgTTHaxTnJV","entity_type":"subscription","entity_id":"cbdemo_trial_sub","notes":"Test PO 0000001","added_by":"[email protected]","created_at":1674034690,"type":"user","object":"comment","custom_fields":[]},"emitted_at":1703800968925}
{"stream":"comment","data":{"id":"cmt_AzZTZgTTHbgGdKK","entity_type":"transaction","entity_id":"txn_AzZTZgTTHbgFlKJ","notes":"Test cash payment","added_by":"[email protected]","created_at":1674034862,"type":"user","object":"comment","custom_fields":[]},"emitted_at":1703800968928}
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": 2147483647 },
"stream_state": { "migrated_at": 2147483647 },
"stream_descriptor": { "name": "site_migration_detail" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": 2147483647 },
"stream_state": { "created_at": 2147483647 },
"stream_descriptor": { "name": "comment" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ definitions:
request_parameters:
sort_by[asc]: migrated_at
include_deleted: "true"
created_at[between]: "'[{{stream_slice['start_time']}}, {{stream_slice['end_time']}}]'"
migrated_at[between]: "'[{{stream_slice['start_time']}}, {{stream_slice['end_time']}}]'"
incremental_sync:
$ref: "#/definitions/date_stream_slicer"
$parameters:
Expand Down

0 comments on commit 96a8a06

Please sign in to comment.