Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions proto/domain.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,14 @@ struct InvoicePayment {
15: optional string external_id
16: optional base.Timestamp processing_deadline
17: optional InvoicePaymentRegistrationOrigin registration_origin
/**
* Customer ID associated with this payment.
* Set when the payment is created with a customer context (via InvoicePaymentParams.customer_id).
* Used by hellgate for recurrent cascade: looking up BankCard tokens and persisting
* new recurrent tokens after make_recurrent payments.
* Type matches customer.CustomerID (typedef base.ID).
*/
19: optional base.ID customer_id
}

struct InvoicePaymentPending {}
Expand Down
15 changes: 15 additions & 0 deletions proto/payment_processing.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ include "user_interaction.thrift"
include "timeout_behaviour.thrift"
include "repairing.thrift"
include "msgpack.thrift"
include "customer.thrift"

namespace java dev.vality.damsel.payment_processing
namespace erlang dmsl.payproc
Expand Down Expand Up @@ -147,6 +148,7 @@ union InvoicePaymentChangePayload {
16: InvoicePaymentCashChanged invoice_payment_cash_changed
17: InvoicePaymentShopLimitInitiated invoice_payment_shop_limit_initiated
18: InvoicePaymentShopLimitApplied invoice_payment_shop_limit_applied
19: InvoicePaymentCascadeTokensLoaded invoice_payment_cascade_tokens_loaded
}

/**
Expand Down Expand Up @@ -468,6 +470,13 @@ struct InvoicePaymentRecTokenAcquired {
1: required domain.Token token
}

/**
* Событие о загрузке каскадных рекуррентных токенов из хранилища.
*/
struct InvoicePaymentCascadeTokensLoaded {
1: required list<customer.RecurrentToken> tokens
}

struct InvoicePaymentCaptureStarted {
1: required InvoicePaymentCaptureData data
}
Expand Down Expand Up @@ -558,6 +567,12 @@ struct InvoicePaymentParams {
5: optional string external_id
6: optional domain.InvoicePaymentContext context
7: optional base.Timestamp processing_deadline
/**
* Customer to associate this payment with.
* When set alongside make_recurrent=true, hellgate persists the resulting recurrent token
* to BankCardStorage under this customer after a successful payment.
*/
9: optional customer.CustomerID customer_id
}

struct RegisterInvoicePaymentParams {
Expand Down
Loading