Merged PR 5214: Integrates Guest Product new flow Payments

# Description

Integrates Guest Product Payments coming from the new flow of Guest Products.

This also removes few fields that will not be used or that do not make sense for GP specifically.

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #30110
This commit is contained in:
Oriol Roqué Paniagua 2025-05-15 07:00:11 +00:00
parent d5dd6df1c1
commit ae9bb524b7
4 changed files with 76 additions and 32 deletions

View file

@ -5789,18 +5789,6 @@ models:
- unique
- not_null
- name: id_verification_to_payment
data_type: bigint
description: |
Identifier for the relation between the payment verification
and the payment. It can be null if the payment is not related
to a verification.
- name: is_refundable
data_type: boolean
description: |
Indicates whether the payment is refundable or not.
- name: created_at_utc
data_type: timestamp without time zone
description: |
@ -5901,12 +5889,6 @@ models:
data_tests:
- not_null
- name: id_verification
data_type: bigint
description: |
Unique identifier of the Verification that has a payment.
It can be null if the payment is not related to a verification.
- name: id_verification_request
data_type: bigint
description: |
@ -5924,6 +5906,7 @@ models:
- accepted_values:
values:
- CHECKINCOVER
- STAYDISRUPT
- name: guest_product_payment_source
data_type: character varying
@ -5932,12 +5915,12 @@ models:
This helps identify the backend tables that are used to track this
payment.
It cannot be null.
At this stage, it only includes the source "VERIFICATION_PAYMENT".
data_tests:
- not_null
- accepted_values:
values:
- VERIFICATION_PAYMENT
- GUEST_PRODUCT_PAYMENT
- name: currency
data_type: character varying
@ -6325,6 +6308,7 @@ models:
- DEPOSIT
- WAIVER
- CHECKINCOVER
- STAYDISRUPT
- UNKNOWN
- name: id_verification_product_payment
@ -6385,6 +6369,8 @@ models:
description: |
Indicates whether the payment is refundable or not.
This does NOT mean that the payment is actually refunded.
At the moment, this is not implemented for Guest Products
in the backend.
- name: created_at_utc
data_type: timestamp without time zone