Skip to content

Commit deccc5a

Browse files
authored
IMP-76: Add ContactInfo fields (#91)
* IMP-76: Add ContactInfo fields * Format
1 parent 50a7f09 commit deccc5a

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

apps/hellgate/test/hg_ct_domain.hrl

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,23 @@
8383
?contact_info(EMail, undefined)
8484
).
8585

86-
-define(contact_info(EMail, Phone), #domain_ContactInfo{
87-
email = EMail,
88-
phone_number = Phone
89-
}).
86+
-define(contact_info(EMail, Phone),
87+
?contact_info(EMail, Phone, undefined, undefined, undefined, undefined, undefined, undefined, undefined)
88+
).
89+
90+
-define(contact_info(EMail, Phone, FirstName, LastName, Country, State, City, Address, PostalCode),
91+
#domain_ContactInfo{
92+
email = EMail,
93+
phone_number = Phone,
94+
first_name = FirstName,
95+
last_name = LastName,
96+
country = Country,
97+
state = State,
98+
city = City,
99+
address = Address,
100+
postal_code = PostalCode
101+
}
102+
).
90103

91104
-define(timeout_reason(), <<"Timeout">>).
92105

apps/hellgate/test/hg_invoice_tests_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2721,6 +2721,7 @@ registered_payment_adjustment_success(C) ->
27212721
InvoiceID = start_invoice(<<"rubberduck">>, make_due_date(10), 100000, C),
27222722
{PaymentTool, Session} = hg_dummy_provider:make_payment_tool(no_preauth, ?pmt_sys(<<"visa-ref">>)),
27232723
Route = ?route(?prv(100), ?trm(1)),
2724+
String = <<"STRING">>,
27242725
PaymentParams = #payproc_RegisterInvoicePaymentParams{
27252726
payer_params =
27262727
{payment_resource, #payproc_PaymentResourcePayerParams{
@@ -2729,7 +2730,7 @@ registered_payment_adjustment_success(C) ->
27292730
payment_session_id = Session,
27302731
client_info = #domain_ClientInfo{}
27312732
},
2732-
contact_info = ?contact_info()
2733+
contact_info = ?contact_info(String, String, String, String, String, String, String, String, String)
27332734
}},
27342735
route = Route,
27352736
transaction_info = ?trx_info(<<"1">>, #{})

rebar.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.11.0">>},2},
1818
{<<"damsel">>,
1919
{git,"https://github.com/valitydev/damsel.git",
20-
{ref,"c32f50f875bd1c58957e507420a23f7d2fac3ecb"}},
20+
{ref,"2374f52326fb9b10e79e0ec0a769af35529938e9"}},
2121
0},
2222
{<<"dmt_client">>,
2323
{git,"https://github.com/valitydev/dmt-client.git",

0 commit comments

Comments
 (0)