Skip to content

Commit

Permalink
Merge pull request #68 from fivetran/feature/q3-2023-updates
Browse files Browse the repository at this point in the history
add new models and fields
  • Loading branch information
fivetran-reneeli authored Oct 18, 2023
2 parents 5d4f43d + e099f29 commit d090bb9
Show file tree
Hide file tree
Showing 29 changed files with 796 additions and 54 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# dbt_stripe_source v0.10.0
[PR #68](https://github.com/fivetran/dbt_stripe_source/pull/68) includes the following updates:
## Updates
- Adds the `dispute` and `transfer` objects and respective staging models.

# dbt_stripe_source v0.9.3
v0.9.3 includes the following updates:
## Under the Hood:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ If you are **not** using the [Stripe transformation package](https://github.com
```yaml
packages:
- package: fivetran/stripe_source
version: [">=0.9.0", "<0.10.0"]
version: [">=0.10.0", "<0.11.0"]
```
## Step 3: Define database and schema variables
By default, this package runs using your destination and the `stripe` schema. If this is not where your stripe data is (for example, if your stripe schema is named `stripe_fivetran`), add the following configuration to your root `dbt_project.yml` file:
Expand Down Expand Up @@ -128,7 +128,7 @@ Oftentimes you may have custom fields within your source tables that is stored a

Additionally, you may `alias` your field if you happen to be using a reserved word as a metadata field, any otherwise incompatible name, or just wish to rename your field. Below are examples of how you would add the respective fields.

The `metadata` JSON field is present within the `customer`, `charge`, `card`, `invoice`, `invoice_line_item`, `payment_intent`, `payment_method`, `payout`, `plan`, `price`, `refund`, and `subscription` source tables. To pivot these fields out and include in the respective downstream staging model, add the respective variable(s) to your root `dbt_project.yml` file like below.
The `metadata` JSON field is present within the `customer`, `charge`, `card`, `dispute`, `invoice`, `invoice_line_item`, `payment_intent`, `payment_method`, `payout`, `plan`, `price`, `refund`, `subscription`, and `transfer` source tables. To pivot these fields out and include in the respective downstream staging model, add the respective variable(s) to your root `dbt_project.yml` file like below.

```yml
vars:
Expand All @@ -143,6 +143,8 @@ vars:
stripe__customer_metadata:
- name: metadata_field_6
alias: metadata_field_six
stripe__dispute_metadata:
- name: dispute_metadata_field
stripe__invoice_metadata:
- name: metadata_field_2
stripe__invoice_line_item_metadata:
Expand All @@ -164,6 +166,8 @@ vars:
stripe__subscription_metadata:
- name: 567
alias: five_six_seven
stripe__transfer_metadata:
- name: transfer_metadata_field
```

Expand Down
6 changes: 4 additions & 2 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config-version: 2
name: 'stripe_source'
version: '0.9.3'
version: '0.10.0'
require-dbt-version: [">=1.3.0", "<2.0.0"]

models:
Expand All @@ -18,6 +18,7 @@ vars:
credit_note: "{{ source('stripe', 'credit_note') }}"
credit_note_line_item: "{{ source('stripe', 'credit_note_line_item') }}"
customer: "{{ source('stripe', 'customer') }}"
dispute: "{{ source('stripe', 'dispute') }}"
fee: "{{ source('stripe', 'fee') }}"
invoice: "{{ source('stripe', 'invoice') }}"
invoice_line_item: "{{ source('stripe', 'invoice_line_item') }}"
Expand All @@ -29,4 +30,5 @@ vars:
price: "{{ source('stripe', 'price') }}"
refund: "{{ source('stripe', 'refund') }}"
subscription_history: "{{ source('stripe', 'subscription_history') }}"
subscription: "{{ source('stripe', 'subscription') }}"
subscription: "{{ source('stripe', 'subscription') }}"
transfer: "{{ source('stripe', 'transfer') }}"
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'stripe_source_integration_tests'
version: '0.9.3'
version: '0.10.0'


profile: 'integration_tests'
Expand All @@ -15,6 +15,7 @@ vars:
stripe_card_identifier: "card_data"
stripe_charge_identifier: "charge_data"
stripe_customer_identifier: "customer_data"
stripe_dispute_identifier: "dispute_data"
stripe_fee_identifier: "fee_data"
stripe_invoice_identifier: "invoice_data"
stripe_invoice_line_item_identifier: "invoice_line_item_data"
Expand All @@ -27,6 +28,7 @@ vars:
stripe_refund_identifier: "refund_data"
stripe_subscription_history_identifier: "subscription_history_data"
stripe_subscription_identifier: "subscription_data"
stripe_transfer_identifier: "transfer_data"
stripe_credit_note_identifier: "credit_note_data"
stripe_credit_note_line_item_identifier: "credit_note_line_item_data"

Expand Down
2 changes: 2 additions & 0 deletions integration_tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ dbt-postgres>=1.3.0,<2.0.0
dbt-spark>=1.3.0,<2.0.0
dbt-spark[PyHive]>=1.3.0,<2.0.0
dbt-databricks>=1.3.0,<2.0.0

oscrypto @ git+https://github.com/wbond/oscrypto.git@d5f3437
21 changes: 11 additions & 10 deletions integration_tests/seeds/balance_transaction_data.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
id,_fivetran_synced,amount,available_on,connected_account_id,created,currency,description,exchange_rate,fee,net,source,status,type,payout_id
txn_0IV4rIig6peNXzgDK3XAFbaN,2021-03-15 02:21:18,-18759,2021-03-16 0:00:00,,2021-03-15 01:04:36,usd,f39657a1847db73d9a2abb0bad3d31ae,,0,-18759,po_0IV4rIig6peNXzgD51VFKdaB,pending,payout,po_0IV4rIig6peNXzgD51VFKdaB
txn_0IDYgiig6peNXzgDuNvLeoLR,2021-01-31 02:21:08,2040000,2021-02-01 0:00:00,,2021-01-25 17:17:15,usd,d267c9d09a2d1e50f12635bd2b56ed29,,59190,1980810,ch_0IDYghig6peNXzgDhuOFKdTS,pending,charge,po_0IFUKBig6peNXzgDZQM7WPAo
txn_0IG5fvig6peNXzgD8jemrxAp,2021-02-07 02:21:12,117524,2021-02-08 0:00:00,,2021-02-01 16:54:54,usd,0662d6089789e1fabd56c6d55e91ef09,,3438,114086,ch_0IG5fuig6peNXzgDzZkrO949,pending,charge,po_0II1gGig6peNXzgD4BxKEJJJ
txn_0ILGCbig6peNXzgDqjp7xaaX,2021-02-21 02:21:08,7239375,2021-02-22 0:00:00,,2021-02-15 23:09:59,usd,612942eb1230077a0b1d066de5aba0db,,209972,7029403,ch_0ILGCZig6peNXzgDw4eVbq0v,pending,charge,po_0IN6L6ig6peNXzgDu7m6fhRI
txn_0IO6DWig6peNXzgDF8qNjZNX,2021-03-01 02:21:13,255360,2021-03-02 0:00:00,,2021-02-23 19:06:41,usd,b8de27e00022f92981c965125c15c22d,,7435,247925,ch_0IO6DVig6peNXzgDgTOGtdeD,pending,charge,po_0IQ08Sig6peNXzgDC6UG0Oxc
txn_0IROZoig6peNXzgDRsBjph8K,2021-03-10 02:21:13,438750,2021-03-11 0:00:00,,2021-03-04 21:19:18,usd,d3c18c425369d3c6b26126b7f791cf3f,,12754,425996,ch_0IROZmig6peNXzgDwohSYaPj,pending,charge,po_0ITGUHig6peNXzgD78pmjvio
txn_0IT7uhig6peNXzgDolTgmiUJ,2021-03-15 02:21:18,19350,2021-03-16 0:00:00,,2021-03-09 15:56:02,usd,a29cfd524867f29bd7eddcb21fdf6e3b,,591,18759,ch_0IT7ugig6peNXzgDh9iGZed7,pending,charge,po_0IV4rIig6peNXzgD51VFKdaB
txn_0IUBwDig6peNXzgDCYCHC7gd,2021-03-13 14:21:36,3519960,2021-03-19 0:00:00,,2021-03-12 14:26:00,usd,e8be2b872cd9d14ddf3b5cd89860d551,,137308,3382652,ch_0IUBwCig6peNXzgDTOTEw24B,pending,charge,
txn_0IUIaVig6peNXzgDoGvsNC17,2021-03-13 14:21:36,7499999,2021-03-19 0:00:00,,2021-03-12 21:32:01,usd,9b8159d008204266ff7f2df19843d5b4,,217530,7282469,ch_0IUIaTig6peNXzgDhyoZBxWv,pending,charge,
id,_fivetran_synced,amount,available_on,connected_account_id,created,currency,description,exchange_rate,fee,net,source,status,type,payout_id,reporting_category
txn_0IV4rIig6peNXzgDK3XAFbaN,2021-03-15 02:21:18,-18759,2021-03-16 0:00:00,,2021-03-15 01:04:36,usd,f39657a1847db73d9a2abb0bad3d31ae,,0,-18759,po_0IV4rIig6peNXzgD51VFKdaB,pending,payout,po_0IV4rIig6peNXzgD51VFKdaB,payout
txn_0IDYgiig6peNXzgDuNvLeoLR,2021-01-31 02:21:08,2040000,2021-02-01 0:00:00,,2021-01-25 17:17:15,usd,d267c9d09a2d1e50f12635bd2b56ed29,,59190,1980810,ch_0IDYghig6peNXzgDhuOFKdTS,pending,payout,po_0IFUKBig6peNXzgDZQM7WPAo,payout
txn_0IG5fvig6peNXzgD8jemrxAp,2021-02-07 02:21:12,117524,2021-02-08 0:00:00,,2021-02-01 16:54:54,usd,0662d6089789e1fabd56c6d55e91ef09,,3438,114086,ch_0IG5fuig6peNXzgDzZkrO949,pending,payout,po_0II1gGig6peNXzgD4BxKEJJJ,payout
txn_0ILGCbig6peNXzgDqjp7xaaX,2021-02-21 02:21:08,7239375,2021-02-22 0:00:00,,2021-02-15 23:09:59,usd,612942eb1230077a0b1d066de5aba0db,,209972,7029403,ch_0ILGCZig6peNXzgDw4eVbq0v,pending,payout,po_0IN6L6ig6peNXzgDu7m6fhRI,payout
txn_0IO6DWig6peNXzgDF8qNjZNX,2021-03-01 02:21:13,255360,2021-03-02 0:00:00,,2021-02-23 19:06:41,usd,b8de27e00022f92981c965125c15c22d,,7435,247925,ch_0IO6DVig6peNXzgDgTOGtdeD,pending,payout,po_0IQ08Sig6peNXzgDC6UG0Oxc,payout
txn_0IROZoig6peNXzgDRsBjph8K,2021-03-10 02:21:13,438750,2021-03-11 0:00:00,,2021-03-04 21:19:18,usd,d3c18c425369d3c6b26126b7f791cf3f,,12754,425996,ch_0IROZmig6peNXzgDwohSYaPj,pending,payout,po_0ITGUHig6peNXzgD78pmjvio,payout
txn_0IT7uhig6peNXzgDolTgmiUJ,2021-03-15 02:21:18,19350,2021-03-16 0:00:00,,2021-03-09 15:56:02,usd,a29cfd524867f29bd7eddcb21fdf6e3b,,591,18759,ch_0IT7ugig6peNXzgDh9iGZed7,pending,payout,po_0IV4rIig6peNXzgD51VFKdaB,payout
txn_0IUBwDig6peNXzgDCYCHC7gd,2021-03-13 14:21:36,3519960,2021-03-19 0:00:00,,2021-03-12 14:26:00,usd,e8be2b872cd9d14ddf3b5cd89860d551,,137308,3382652,ch_0IUBwCig6peNXzgDTOTEw24B,pending,charge,,charge
txn_0IUIaVig6peNXzgDoGvsNC17,2021-03-13 14:21:36,7499999,2021-03-19 0:00:00,,2021-03-12 21:32:01,usd,9b8159d008204266ff7f2df19843d5b4,,217530,7282469,ch_0IUIaTig6peNXzgDhyoZBxWv,pending,charge,,charge
txn_0LSoHSig6peNXzgDlpA8A62P,2021-03-13 14:21:36,1234555,2021-03-19 0:00:00,,2021-03-12 21:32:01,usd,Barbie or Oppenheimer,,0,-50000,,available,stripe_fee,po_0KE1Otig6peNXzgD2qg5lNe9,fee
11 changes: 11 additions & 0 deletions integration_tests/seeds/dispute_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id,_fivetran_synced,amount,balance_transaction,charge_id,connected_account_id,created,currency,evidence_access_activity_log,evidence_billing_address,evidence_cancellation_policy,evidence_cancellation_policy_disclosure,evidence_cancellation_rebuttal,evidence_customer_communication,evidence_customer_email_address,evidence_customer_name,evidence_customer_purchase_ip,evidence_customer_signature,evidence_details_due_by,evidence_details_has_evidence,evidence_details_past_due,evidence_details_submission_count,evidence_duplicate_charge_documentation,evidence_duplicate_charge_explanation,evidence_duplicate_charge_id,evidence_product_description,evidence_receipt,evidence_refund_policy,evidence_refund_policy_disclosure,evidence_refund_refusal_explanation,evidence_service_date,evidence_service_documentation,evidence_shipping_address,evidence_shipping_carrier,evidence_shipping_date,evidence_shipping_documentation,evidence_shipping_tracking_number,evidence_uncategorized_file,evidence_uncategorized_text,is_charge_refundable,livemode,metadata,reason,status
du_0MmTsrig6peNXzgD4bsS3XWF,2023-06-02 08:23:57,1234,txn_0MmTt4ig6peNXzgDDEp8wsKh,ch_2MZdKRig6peNXzgD0EygIk7l,,2023-03-17 03:23:13,usd,,,,,,,,,,,2023-04-26 23:59:59.000000 UTC,true,false,1,,,,,,,,,,,,,,,,,,true,true,"""{""netsuite_credit_memo_id"":""3324234"",""netsuite_credit_memo_link"":""https://en.wikipedia.org/wiki/Brave_New_World"",""netsuite_customer_refund_id"":""3524872"",""netsuite_customer_refund_link"":""https://en.wikipedia.org/wiki/Aldous_Huxley""}""",product_unacceptable,won
du_0Lvivfig6peNXzgD33SIekHq,2022-12-21 20:19:05,3333,txn_0LviwVig6peNXzgDkSPS1Y1C,ch_2LqbkJig6peNXzgD1jG4Xy7z,,2022-10-22 14:44:03,usd,,,,,,,,,,,2022-11-17 23:59:59.000000 UTC,false,false,1,,,,,,,,,,,,,,,,,,true,true,,general,won
du_0KHowkig6peNXzgDyhndDHOe,2022-09-23 00:00:24,3331,txn_0KHoxcig6peNXzgDKWarDbF0,ch_2JtdoJig6peNXzgD1lCAvXwG,,2022-01-14 12:31:58,usd,,"1600 Pennsylvania Avenue NW, Washington, DC 20500",,,,,[email protected],Aldous Huxley,68.1.21.555,,2022-02-09 23:59:59.000000 UTC,false,false,1,,,,,file_0KHowoig6peNXzgDyeDmylk3,,,,,,,,,,,,,true,true,,general,won
du_0M9SJTig6peNXzgD58OLM8Mz,2022-12-12 20:19:03,1099,txn_0M9SKaig6peNXzgDlb5cqlBg,ch_2M2d6mig6peNXzgD03nrNVYZ,,2022-11-29 11:49:23,usd,,,,,,,,,,,2022-12-25 23:59:59.000000 UTC,false,false,0,,,,,,,,,,,,,,,,,,false,true,,subscription_canceled,lost
du_0LuGYgig6peNXzgDM8lPBTFC,2022-11-14 14:21:25,1222,txn_0LuGZyig6peNXzgDLgWzetHo,ch_2LUt28ig6peNXzgD0RdFu0qW,,2022-10-18 14:14:18,usd,,,,,,,,,,,2022-11-13 23:59:59.000000 UTC,false,false,0,,,,,,,,,,,,,,,,,,false,true,,subscription_canceled,lost
du_0LyvFuig6peNXzgDyBMCjDi6,2022-11-27 14:20:24,221244,txn_0LyvHhig6peNXzgDg5LanDAq,ch_2Lqdeuig6peNXzgD0sA3iBuH,,2022-10-31 10:30:10,usd,,,,,,,,,,,2022-11-26 23:59:59.000000 UTC,false,false,0,,,,,,,,,,,,,,,,,,false,true,,subscription_canceled,lost
du_0LiAl6ig6peNXzgDEejs24CE,2022-11-13 20:20:09,432532,txn_0Lumheig6peNXzgDSp1KIXph,ch_2LVoJuig6peNXzgD1DvyohjD,,2022-09-15 05:37:08,usd,,,,,,,,,,,2022-11-12 23:59:59.000000 UTC,false,false,0,,,,,,,,,,,,,,,,,,false,true,,general,lost
du_0M9ScVig6peNXzgDkfd7tUNb,2022-12-12 20:19:03,1400,txn_0M9SdPig6peNXzgDgpb4aJDQ,ch_2LqcRzig6peNXzgD06FImTqU,,2022-11-29 12:09:03,usd,,,,,,,,,,,2022-12-25 23:59:59.000000 UTC,false,false,0,,,,,,,,,,,,,,,,,,false,true,,subscription_canceled,lost
du_0LuGd7ig6peNXzgDUxXx85wF,2022-11-14 14:21:25,1400,txn_0LuGe5ig6peNXzgD7PMfTzJ6,ch_2LfkHjig6peNXzgD1e9ltqQt,,2022-10-18 14:18:53,usd,,,,,,,,,,,2022-11-13 23:59:59.000000 UTC,false,false,0,,,,,,,,,,,,,,,,,,false,true,,subscription_canceled,lost
du_0LuGbbig6peNXzgDjHA4RfoT,2022-11-14 14:21:25,700,txn_0LuGcrig6peNXzgDKP5y95T9,ch_2LLwgKig6peNXzgD0Sr5X6kL,,2022-10-18 14:17:19,usd,,,,,,,,,,,2022-11-13 23:59:59.000000 UTC,false,false,0,,,,,,,,,,,,,,,,,,false,true,,subscription_canceled,lost
11 changes: 11 additions & 0 deletions integration_tests/seeds/transfer_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id,_fivetran_synced,amount,amount_reversed,balance_transaction_id,created,currency,description,destination,destination_payment,destination_payment_id,livemode,metadata,reversed,source_transaction,source_transaction_id,source_type,transfer_group
po_0Njtvzig6peNXzgD6RPBasht,2023-08-29 02:19:08,1447318,0,txn_0Njtw0ig6peNXzgDXY3mJGwC,2023-08-28 01:08:03,usd,STRIPE PAYOUT,ba_0MkB7Nig6peNXzgDBFL0SIgk,,,true,"""{""netsuite_deposit_id"":""3975560"",""netsuite_deposit_link"":""https://en.wikipedia.org/wiki/Beyonc%C3%A9""}""",false,,,card,
po_0NjXKxig6peNXzgDgn8MqQuZ,2023-08-28 08:20:02,2660278,0,txn_0NjXKyig6peNXzgDbmNVE84K,2023-08-27 01:00:19,usd,STRIPE PAYOUT,ba_0MkB7Nig6peNXzgDBFL0SIgk,,,true,,false,,,card,
po_0NkGNTig6peNXzgDJWfkSimX,2023-08-30 02:19:14,760313,0,txn_0NkGNTig6peNXzgDTsXXisyE,2023-08-29 01:05:55,usd,STRIPE PAYOUT,ba_0MkB7Nig6peNXzgDBFL0SIgk,,,true,,false,,,card,
po_0NkcrHig6peNXzgDwoDFU4Yi,2023-08-30 02:19:14,1944407,0,txn_0NkcrHig6peNXzgD7eFO2jc7,2023-08-30 01:06:11,usd,STRIPE PAYOUT,ba_0MkB7Nig6peNXzgDBFL0SIgk,,,true,,false,,,card,
po_0Mbvvvig6peNXzgDNH6Wf3ha,2023-02-17 01:15:32,7251977,0,txn_0Mbvvvig6peNXzgDJAGJCdpN,2023-02-16 01:06:47,usd,STRIPE PAYOUT,ba_1S2vcDBpbM03IU,,,true,,false,,,card,
po_0LunJvig6peNXzgD41QBrw1m,2022-10-21 08:21:56,-1426166,0,txn_0LunJwig6peNXzgDCnBflWPl,2022-10-20 01:13:15,usd,STRIPE PAYOUT,ba_1S2vcDBpbM03IU,,,true,,false,,,card,
po_0MRQ1gig6peNXzgD138jhQS7,2023-01-19 02:19:35,7332491,0,txn_0MRQ1gig6peNXzgDchKTwIPQ,2023-01-18 01:01:16,usd,STRIPE PAYOUT,ba_1S2vcDBpbM03IU,,,true,,false,,,card,
po_0MRmW1ig6peNXzgDUPQSnmYw,2023-01-20 02:19:18,6108653,0,txn_0MRmW1ig6peNXzgDFqR0yaFa,2023-01-19 01:02:05,usd,STRIPE PAYOUT,ba_1S2vcDBpbM03IU,,,true,,false,,,card,
po_0MJ5C6ig6peNXzgDyic22YlD,2022-12-27 02:19:05,3456033,0,txn_0MJ5C7ig6peNXzgDfWTszRUw,2022-12-26 01:09:34,usd,STRIPE PAYOUT,ba_1S2vcDBpbM03IU,,,true,,false,,,card,
po_0MDe3Sig6peNXzgDJHinDGmA,2022-12-12 02:18:56,3330213,0,txn_0MDe3Tig6peNXzgDSyxtRpRH,2022-12-11 01:10:10,usd,STRIPE PAYOUT,ba_1S2vcDBpbM03IU,,,true,,false,,,card,
1 change: 1 addition & 0 deletions macros/get_balance_transaction_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{"name": "id", "datatype": dbt.type_string()},
{"name": "net", "datatype": dbt.type_int()},
{"name": "payout_id", "datatype": dbt.type_string()},
{"name": "reporting_category", "datatype": dbt.type_string()},
{"name": "source", "datatype": dbt.type_string()},
{"name": "status", "datatype": dbt.type_string()},
{"name": "type", "datatype": dbt.type_string()}
Expand Down
1 change: 0 additions & 1 deletion macros/get_charge_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
{"name": "transfer_data_destination", "datatype": dbt.type_string()},
{"name": "transfer_group", "datatype": dbt.type_string()},
{"name": "transfer_id", "datatype": dbt.type_string()},
{"name": "shipping_address_city", "datatype": dbt.type_string()},
{"name": "billing_detail_address_city", "datatype": dbt.type_string()},
{"name": "billing_detail_address_country", "datatype": dbt.type_string()},
{"name": "billing_detail_address_line1", "datatype": dbt.type_string()},
Expand Down
52 changes: 52 additions & 0 deletions macros/get_dispute_columns.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{% macro get_dispute_columns() %}

{% set columns = [
{"name": "_fivetran_synced", "datatype": dbt.type_timestamp()},
{"name": "amount", "datatype": dbt.type_int()},
{"name": "balance_transaction", "datatype": dbt.type_string()},
{"name": "charge_id", "datatype": dbt.type_string()},
{"name": "connected_account_id", "datatype": dbt.type_string()},
{"name": "created", "datatype": dbt.type_timestamp()},
{"name": "currency", "datatype": dbt.type_string()},
{"name": "evidence_access_activity_log", "datatype": dbt.type_string()},
{"name": "evidence_billing_address", "datatype": dbt.type_string()},
{"name": "evidence_cancellation_policy", "datatype": dbt.type_string()},
{"name": "evidence_cancellation_policy_disclosure", "datatype": dbt.type_string()},
{"name": "evidence_cancellation_rebuttal", "datatype": dbt.type_string()},
{"name": "evidence_customer_communication", "datatype": dbt.type_string()},
{"name": "evidence_customer_email_address", "datatype": dbt.type_string()},
{"name": "evidence_customer_name", "datatype": dbt.type_string()},
{"name": "evidence_customer_purchase_ip", "datatype": dbt.type_string()},
{"name": "evidence_customer_signature", "datatype": dbt.type_string()},
{"name": "evidence_details_due_by", "datatype": dbt.type_timestamp()},
{"name": "evidence_details_has_evidence", "datatype": "boolean"},
{"name": "evidence_details_past_due", "datatype": "boolean"},
{"name": "evidence_details_submission_count", "datatype": dbt.type_int()},
{"name": "evidence_duplicate_charge_documentation", "datatype": dbt.type_string()},
{"name": "evidence_duplicate_charge_explanation", "datatype": dbt.type_string()},
{"name": "evidence_duplicate_charge_id", "datatype": dbt.type_string()},
{"name": "evidence_product_description", "datatype": dbt.type_string()},
{"name": "evidence_receipt", "datatype": dbt.type_string()},
{"name": "evidence_refund_policy", "datatype": dbt.type_string()},
{"name": "evidence_refund_policy_disclosure", "datatype": dbt.type_string()},
{"name": "evidence_refund_refusal_explanation", "datatype": dbt.type_string()},
{"name": "evidence_service_date", "datatype": dbt.type_string()},
{"name": "evidence_service_documentation", "datatype": dbt.type_string()},
{"name": "evidence_shipping_address", "datatype": dbt.type_string()},
{"name": "evidence_shipping_carrier", "datatype": dbt.type_string()},
{"name": "evidence_shipping_date", "datatype": dbt.type_string()},
{"name": "evidence_shipping_documentation", "datatype": dbt.type_string()},
{"name": "evidence_shipping_tracking_number", "datatype": dbt.type_string()},
{"name": "evidence_uncategorized_file", "datatype": dbt.type_string()},
{"name": "evidence_uncategorized_text", "datatype": dbt.type_string()},
{"name": "id", "datatype": dbt.type_string()},
{"name": "is_charge_refundable", "datatype": "boolean"},
{"name": "livemode", "datatype": "boolean"},
{"name": "metadata", "datatype": dbt.type_string()},
{"name": "reason", "datatype": dbt.type_string()},
{"name": "status", "datatype": dbt.type_string()}
] %}

{{ return(columns) }}

{% endmacro %}
Loading

0 comments on commit d090bb9

Please sign in to comment.