Skip to content

Instantly share code, notes, and snippets.

@jjensenmike
Created September 29, 2021 16:59
Show Gist options
  • Save jjensenmike/b3ad41c5959c42825efad65eb4ae464b to your computer and use it in GitHub Desktop.
Save jjensenmike/b3ad41c5959c42825efad65eb4ae464b to your computer and use it in GitHub Desktop.
Console output for credential component
[0] Received a webhook with data:
[0] { type: 'test', created_at: '2021-09-29T12:47:08.813-04:00', data: {} }
[0] Received a webhook with data:
[0] {
[0] type: 'utility_credential_verified',
[0] created_at: '2021-09-29T12:48:33.429-04:00',
[0] data: {
[0] id: 1795,
[0] username: 'ARCADIA_TEST_R_SINGLE_ELEC',
[0] created_at: '2021-09-29T12:48:32.440-04:00',
[0] updated_at: '2021-09-29T12:48:32.702-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] verification_status: 'correct',
[0] verification_updated_at: '2021-09-29T12:48:32.658-04:00',
[0] accounts_load_in_progress: true
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'historical_utility_statements_discovered',
[0] created_at: '2021-09-29T12:48:35.598-04:00',
[0] data: {
[0] statements: [
[0] {
[0] id: 63390,
[0] kwh: 581,
[0] tariff: null,
[0] due_date: '2021-10-13',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.797-04:00',
[0] updated_at: '2021-09-29T12:48:34.812-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-09-13',
[0] utility_charge: 145.25,
[0] service_end_date: '2021-09-11',
[0] service_start_date: '2021-08-14',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63389,
[0] kwh: 521,
[0] tariff: null,
[0] due_date: '2021-09-14',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.756-04:00',
[0] updated_at: '2021-09-29T12:48:34.770-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-08-15',
[0] utility_charge: 130.25,
[0] service_end_date: '2021-08-13',
[0] service_start_date: '2021-07-16',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63388,
[0] kwh: 228,
[0] tariff: null,
[0] due_date: '2021-08-16',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.714-04:00',
[0] updated_at: '2021-09-29T12:48:34.729-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-07-17',
[0] utility_charge: 57,
[0] service_end_date: '2021-07-15',
[0] service_start_date: '2021-06-17',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63387,
[0] kwh: 283,
[0] tariff: null,
[0] due_date: '2021-07-18',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.674-04:00',
[0] updated_at: '2021-09-29T12:48:34.689-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-06-18',
[0] utility_charge: 70.75,
[0] service_end_date: '2021-06-16',
[0] service_start_date: '2021-05-19',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63386,
[0] kwh: 566,
[0] tariff: null,
[0] due_date: '2021-06-19',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.631-04:00',
[0] updated_at: '2021-09-29T12:48:34.648-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-05-20',
[0] utility_charge: 141.5,
[0] service_end_date: '2021-05-18',
[0] service_start_date: '2021-04-20',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63385,
[0] kwh: 558,
[0] tariff: null,
[0] due_date: '2021-05-21',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.585-04:00',
[0] updated_at: '2021-09-29T12:48:34.602-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-04-21',
[0] utility_charge: 139.5,
[0] service_end_date: '2021-04-19',
[0] service_start_date: '2021-03-22',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63384,
[0] kwh: 470,
[0] tariff: null,
[0] due_date: '2021-04-22',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.541-04:00',
[0] updated_at: '2021-09-29T12:48:34.560-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-03-23',
[0] utility_charge: 117.5,
[0] service_end_date: '2021-03-21',
[0] service_start_date: '2021-02-21',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63383,
[0] kwh: 150,
[0] tariff: null,
[0] due_date: '2021-03-24',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.493-04:00',
[0] updated_at: '2021-09-29T12:48:34.513-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-02-22',
[0] utility_charge: 37.5,
[0] service_end_date: '2021-02-20',
[0] service_start_date: '2021-01-23',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63382,
[0] kwh: 403,
[0] tariff: null,
[0] due_date: '2021-02-23',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.452-04:00',
[0] updated_at: '2021-09-29T12:48:34.467-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2021-01-24',
[0] utility_charge: 100.75,
[0] service_end_date: '2021-01-22',
[0] service_start_date: '2020-12-25',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63381,
[0] kwh: 238,
[0] tariff: null,
[0] due_date: '2021-01-25',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.401-04:00',
[0] updated_at: '2021-09-29T12:48:34.421-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2020-12-26',
[0] utility_charge: 59.5,
[0] service_end_date: '2020-12-24',
[0] service_start_date: '2020-11-26',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63380,
[0] kwh: 367,
[0] tariff: null,
[0] due_date: '2020-12-27',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.358-04:00',
[0] updated_at: '2021-09-29T12:48:34.374-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2020-11-27',
[0] utility_charge: 91.75,
[0] service_end_date: '2020-11-25',
[0] service_start_date: '2020-10-28',
[0] utility_account_id: 6478
[0] },
[0] {
[0] id: 63379,
[0] kwh: 319,
[0] tariff: null,
[0] due_date: '2020-11-28',
[0] past_due: false,
[0] created_at: '2021-09-29T12:48:34.262-04:00',
[0] updated_at: '2021-09-29T12:48:34.328-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '49952',
[0] statement_date: '2020-10-29',
[0] utility_charge: 79.75,
[0] service_end_date: '2020-10-27',
[0] service_start_date: '2020-09-29',
[0] utility_account_id: 6478
[0] }
[0] ],
[0] client_user_id: '49952',
[0] utility_account_id: 6478
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'utility_account_updated',
[0] created_at: '2021-09-29T12:48:36.155-04:00',
[0] data: {
[0] id: 6478,
[0] flags: [],
[0] status: 'active',
[0] services: [],
[0] created_at: '2021-09-29T12:48:32.457-04:00',
[0] updated_at: '2021-09-29T12:48:35.619-04:00',
[0] utility_name: 'Pepco',
[0] account_number: '4594033702',
[0] client_user_id: '49952',
[0] most_recent_tariff: null,
[0] service_address_zip: '20024',
[0] feature_availability: {
[0] charge_cost: 'NOT_AVAILABLE',
[0] smart_charge: 'NOT_AVAILABLE',
[0] utility_intervals: 'NOT_AVAILABLE',
[0] utility_statements: 'AVAILABLE'
[0] },
[0] service_address_city: 'Washington',
[0] service_address_state: 'DC',
[0] utility_credential_id: 1795,
[0] service_address_street_one: '6478 Arcadia Avenue',
[0] service_address_street_two: null
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'utility_credential_verified',
[0] created_at: '2021-09-29T12:49:25.026-04:00',
[0] data: {
[0] id: 1797,
[0] username: 'ap66c8dedaae11@a.arcadiapower.com',
[0] created_at: '2021-09-29T12:49:16.660-04:00',
[0] updated_at: '2021-09-29T12:49:24.307-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '31891',
[0] verification_status: 'correct',
[0] verification_updated_at: '2021-09-29T12:49:24.282-04:00',
[0] accounts_load_in_progress: true
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'utility_credential_verification_error',
[0] created_at: '2021-09-29T12:50:33.824-04:00',
[0] data: {
[0] id: 1801,
[0] username: 'mikejens@gmail.com',
[0] created_at: '2021-09-29T12:50:30.947-04:00',
[0] updated_at: '2021-09-29T12:50:33.213-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '88181',
[0] verification_status: 'error',
[0] verification_updated_at: '2021-09-29T12:50:33.209-04:00',
[0] accounts_load_in_progress: true
[0] }
[0] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment