Merged PR 1317: [SOURCE] - Stripe UK Refunds stream
- [X] The project runs properly with production data. - [X] The models I have created/edited are fully documented. - [X] The models I have created/edited contain tests. - [X] I have checked for DRY opportunities with other models and docs. --- See #13624. This PR adds the source. Related work items: #13624
This commit is contained in:
commit
7ed2c45a6a
1 changed files with 71 additions and 8 deletions
|
|
@ -6,11 +6,11 @@ sources:
|
||||||
tables:
|
tables:
|
||||||
- name: balance_transactions
|
- name: balance_transactions
|
||||||
identifier: balance_transactions
|
identifier: balance_transactions
|
||||||
description: |
|
description: |
|
||||||
Individual transactions happening in our different Stripe currency accounts.
|
Individual transactions happening in our different Stripe currency accounts.
|
||||||
|
|
||||||
You can read more about this object here: https://docs.stripe.com/api/balance_transactions/object.
|
You can read more about this object here: https://docs.stripe.com/api/balance_transactions/object.
|
||||||
|
|
||||||
columns:
|
columns:
|
||||||
- name: id
|
- name: id
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
|
|
@ -120,7 +120,7 @@ sources:
|
||||||
description: "A list of refunds that have been applied to the charge."
|
description: "A list of refunds that have been applied to the charge."
|
||||||
- name: updated
|
- name: updated
|
||||||
data_type: bigint
|
data_type: bigint
|
||||||
description: "{{ doc('stripe_created_desc')}}"
|
description: "{{ doc('stripe_created_desc') }}"
|
||||||
- name: captured
|
- name: captured
|
||||||
data_type: boolean
|
data_type: boolean
|
||||||
description: "If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured."
|
description: "If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured."
|
||||||
|
|
@ -138,7 +138,7 @@ sources:
|
||||||
description: "{{ doc('stripe_livemode_desc') }}"
|
description: "{{ doc('stripe_livemode_desc') }}"
|
||||||
- name: metadata
|
- name: metadata
|
||||||
data_type: jsonb
|
data_type: jsonb
|
||||||
description: "{{ doc('stripe_metadata_desc') }}"
|
description: "{{ doc('stripe_metadata_desc') }}"
|
||||||
- name: refunded
|
- name: refunded
|
||||||
data_type: boolean
|
data_type: boolean
|
||||||
description: "Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false."
|
description: "Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false."
|
||||||
|
|
@ -244,7 +244,7 @@ sources:
|
||||||
A PaymentIntent guides you through the process of collecting a payment from your customer. We recommend that you create exactly one PaymentIntent for each order or customer session in your system. You can reference the PaymentIntent later to see the history of payment attempts for a particular session.
|
A PaymentIntent guides you through the process of collecting a payment from your customer. We recommend that you create exactly one PaymentIntent for each order or customer session in your system. You can reference the PaymentIntent later to see the history of payment attempts for a particular session.
|
||||||
|
|
||||||
A PaymentIntent transitions through multiple statuses throughout its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates at most one successful charge.
|
A PaymentIntent transitions through multiple statuses throughout its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates at most one successful charge.
|
||||||
|
|
||||||
You can read more about this object here: https://docs.stripe.com/api/payment_intents.
|
You can read more about this object here: https://docs.stripe.com/api/payment_intents.
|
||||||
columns:
|
columns:
|
||||||
- name: id
|
- name: id
|
||||||
|
|
@ -293,7 +293,7 @@ sources:
|
||||||
description: "{{ doc('stripe_livemode_desc') }}"
|
description: "{{ doc('stripe_livemode_desc') }}"
|
||||||
- name: metadata
|
- name: metadata
|
||||||
data_type: jsonb
|
data_type: jsonb
|
||||||
description: "{{ doc('stripe_metadata_desc') }}"
|
description: "{{ doc('stripe_metadata_desc') }}"
|
||||||
- name: shipping
|
- name: shipping
|
||||||
data_type: jsonb
|
data_type: jsonb
|
||||||
description: "Shipping information for the charge."
|
description: "Shipping information for the charge."
|
||||||
|
|
@ -399,4 +399,67 @@ sources:
|
||||||
description: "{{ doc('_airbyte_extracted_at_desc') }}"
|
description: "{{ doc('_airbyte_extracted_at_desc') }}"
|
||||||
- name: _airbyte_meta
|
- name: _airbyte_meta
|
||||||
data_type: jsonb
|
data_type: jsonb
|
||||||
description: "{{ doc('_airbyte_meta_desc') }}"
|
description: "{{ doc('_airbyte_meta_desc') }}"
|
||||||
|
- name: refunds
|
||||||
|
description: |
|
||||||
|
Refund objects allow you to refund a previously created charge that isn’t refunded yet. Funds are refunded to the credit or debit card that’s initially charged.
|
||||||
|
|
||||||
|
You can read more about this object here: https://docs.stripe.com/api/refunds.
|
||||||
|
columns:
|
||||||
|
- name: id
|
||||||
|
data_type: character varying
|
||||||
|
description: "{{ doc('generic_id_desc') }}"
|
||||||
|
- name: amount
|
||||||
|
data_type: bigint
|
||||||
|
description: "Amount, in cents."
|
||||||
|
- name: charge
|
||||||
|
data_type: character varying
|
||||||
|
description: "ID of the charge that’s refunded."
|
||||||
|
- name: object
|
||||||
|
data_type: character varying
|
||||||
|
description: "Silly column. The value is always `refund`."
|
||||||
|
- name: reason
|
||||||
|
data_type: character varying
|
||||||
|
description: "Reason for the refund, which is either user-provided (duplicate, fraudulent, or requested_by_customer) or generated by Stripe internally (expired_uncaptured_charge)."
|
||||||
|
- name: status
|
||||||
|
data_type: character varying
|
||||||
|
description: "Status of the refund. This can be pending, requires_action, succeeded, failed, or canceled. Learn more about failed refunds."
|
||||||
|
- name: created
|
||||||
|
data_type: bigint
|
||||||
|
description: "{{ doc('stripe_created_desc') }}"
|
||||||
|
- name: updated
|
||||||
|
data_type: bigint
|
||||||
|
description: "{{ doc('stripe_created_desc') }}"
|
||||||
|
- name: currency
|
||||||
|
data_type: character varying
|
||||||
|
description: "{{ doc('stripe_currency_desc') }}"
|
||||||
|
- name: metadata
|
||||||
|
data_type: jsonb
|
||||||
|
description: "{{ doc('stripe_metadata_desc') }}"
|
||||||
|
- name: payment_intent
|
||||||
|
data_type: character varying
|
||||||
|
description: "ID of the PaymentIntent that’s refunded."
|
||||||
|
- name: receipt_number
|
||||||
|
data_type: character varying
|
||||||
|
description: "This is the transaction number that appears on email receipts sent for this refund."
|
||||||
|
- name: transfer_reversal
|
||||||
|
data_type: character varying
|
||||||
|
description: "This refers to the transfer reversal object if the accompanying transfer reverses. This is only applicable if the charge was created using the destination parameter."
|
||||||
|
- name: balance_transaction
|
||||||
|
data_type: character varying
|
||||||
|
description: "Balance transaction that describes the impact on your account balance."
|
||||||
|
- name: destination_details
|
||||||
|
data_type: jsonb
|
||||||
|
description: "Transaction-specific details for the refund."
|
||||||
|
- name: source_transfer_reversal
|
||||||
|
data_type: character varying
|
||||||
|
description: "The transfer reversal that’s associated with the refund. Only present if the charge came from another Stripe account."
|
||||||
|
- name: _airbyte_raw_id
|
||||||
|
data_type: character varying
|
||||||
|
description: "{{ doc('_airbyte_raw_id_desc') }}"
|
||||||
|
- name: _airbyte_extracted_at
|
||||||
|
data_type: timestamp with time zone
|
||||||
|
description: "{{ doc('_airbyte_extracted_at_desc') }}"
|
||||||
|
- name: _airbyte_meta
|
||||||
|
data_type: jsonb
|
||||||
|
description: "{{ doc('_airbyte_meta_desc') }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue