IMP-76: Add ContactInfo fields (#91)

* IMP-76: Add ContactInfo fields

* Format
This commit is contained in:
ndiezel0 2023-09-14 14:44:40 +05:00 committed by GitHub
parent 50a7f09c24
commit deccc5a0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 6 deletions

View File

@ -83,10 +83,23 @@
?contact_info(EMail, undefined)
).
-define(contact_info(EMail, Phone), #domain_ContactInfo{
-define(contact_info(EMail, Phone),
?contact_info(EMail, Phone, undefined, undefined, undefined, undefined, undefined, undefined, undefined)
).
-define(contact_info(EMail, Phone, FirstName, LastName, Country, State, City, Address, PostalCode),
#domain_ContactInfo{
email = EMail,
phone_number = Phone
}).
phone_number = Phone,
first_name = FirstName,
last_name = LastName,
country = Country,
state = State,
city = City,
address = Address,
postal_code = PostalCode
}
).
-define(timeout_reason(), <<"Timeout">>).

View File

@ -2721,6 +2721,7 @@ registered_payment_adjustment_success(C) ->
InvoiceID = start_invoice(<<"rubberduck">>, make_due_date(10), 100000, C),
{PaymentTool, Session} = hg_dummy_provider:make_payment_tool(no_preauth, ?pmt_sys(<<"visa-ref">>)),
Route = ?route(?prv(100), ?trm(1)),
String = <<"STRING">>,
PaymentParams = #payproc_RegisterInvoicePaymentParams{
payer_params =
{payment_resource, #payproc_PaymentResourcePayerParams{
@ -2729,7 +2730,7 @@ registered_payment_adjustment_success(C) ->
payment_session_id = Session,
client_info = #domain_ClientInfo{}
},
contact_info = ?contact_info()
contact_info = ?contact_info(String, String, String, String, String, String, String, String, String)
}},
route = Route,
transaction_info = ?trx_info(<<"1">>, #{})

View File

@ -17,7 +17,7 @@
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.11.0">>},2},
{<<"damsel">>,
{git,"https://github.com/valitydev/damsel.git",
{ref,"c32f50f875bd1c58957e507420a23f7d2fac3ecb"}},
{ref,"2374f52326fb9b10e79e0ec0a769af35529938e9"}},
0},
{<<"dmt_client">>,
{git,"https://github.com/valitydev/dmt-client.git",