Commit Graph

70 Commits

Author SHA1 Message Date
Andrew Mayorov
a129b64667 BJ-201: Require suspend timeout to be set explicitly (#102) 2017-08-04 13:34:08 +03:00
Evgeny Levenets
f51c3aa5a5 HG-246: improve support for 54FL (#101)
* add party meta support
* bumped deps
2017-08-03 19:32:38 +03:00
Anton Belyaev
376afd7489 Introduce invoice templates (#99)
* introduce invoice templates
* push image from Jenkins on epic branches
* bump machinegun version
2017-07-26 17:50:32 +03:00
Evgeny Levenets
44cce58ddb HG-244: added PartyID and InvoiceDetails for inspector proxy context (#100)
rbkmoney/damsel@95b03f2
2017-07-26 14:30:36 +03:00
Andrew Mayorov
8fe96f1f4c HG-219: Implement multiclaim facilities (#98)
* HG-173: changed party interface to claims (#79)

* DC-45: implemented dirty version of event batching (#92)

* DC-45: implemented dirty version of event batching

* DC-45: Make invoice machines emit changes within single event

* HG-229: Embrace new events hierarchy (#94)

* HG-229: Bump to rbkmoney/damsel@7bb67fc

* HG-229: Embrace new events hierarchy

* HG-229: Fix long time broken typespecs

* HG-229: Employ session results + further decouple sessions from payment

* HG-229: Better classify payment errors

* HG-229: Implement model splitting

* HG-229: Stuff location with something meaningful

* HG-229: Overcome a couple of rebase related issues

* HG-229: Drop event filtering facilities altogether

* HG-229: Make result more explicit

* HG-229: Lessen verbosity on cleaning up

* HG-192: Handle missing shop properly (#95)

* HG-173: fixed some shop-related asserts (#97)

* HG-219: Bump to upstream rbkmoney/damsel@b665c89
2017-07-17 16:33:57 +03:00
Natalia Pulina
da5889c74e HG-213: Log public events for invoice and invoice payment (#89)
* HG-213: Log public events for invoice and invoice payment (#89)

* HG-213: Postreview refactoring

* HG-213: Clause should be on new line

* HG-213: get_partial_remainders moved to hg_cashflow

* HG-213: appeal to accounter removed

* HG-213: log all events in hg_invoice

* HG-213: spec for get_partial_remainders fixed

* HG-213: existing macros are used

* HG-213: do not handle amounts with different currencies

* HG-213: partial remainders added to invoice_payment_status_changed event

* HG-213: tuple for account type converted to string

* HG-213: code style fixed

* HG-213: spec get_partial_remainders fixed

* HG-213: amount and currency added to all payment events

* HG-213: use separator . for elastic

* HG-213: code formatting

* HG-213: use try_get_payment_session in get_log_params

* HG-213: Code refactoring

* HG-213: Code refactoring

* HG-213: Contract for get_log_params func changed
2017-06-26 13:16:28 +03:00
Evgeny Levenets
4da0814c87 HG-218: added Checkout interface to party management (#90) 2017-06-16 19:51:27 +03:00
Andrew Mayorov
bb0bae22ef HG-196: Introduce naive payment cash flow adjustments (#88)
* HG-196: Lose containerpilot finally

* HG-196: Switch to keynslug/damsel

* HG-196: Shortcut invoice / payment creation interface

* HG-196: Refactor UserInfo reuse, move access control to the call ctx

* HG-196: Implement payment adjustments

* HG-196: Quickly shut linter up

* HG-196: Fix bad clause

* HG-196: Make a couple of cosmetic fixes

* HG-196: Expand adjustment tests coverage

* HG-196: Constrain complex id construction more

* HG-196: Rename exception macro

* HG-196: Revert occasional verbosity boost

* HG-196: Shortcut getting payment

* HG-196: Make id construction more specific

* HG-196: Update to reflect finally negotiated protocol

* HG-196: Bump to rbkmoney/woody_erlang@2d00bda

* HG-196: Heal occasional error traces during tests

* HG-196: Fix a whoopsie

* HG-196: Fix dialyzer complaints

* HG-196: Bump to rbkmoney/damsel@8747590
2017-06-15 19:57:02 +03:00
Andrew Mayorov
43720b2a22 HG-193: Get rid of uninformative misconfiguration errors (#87)
* HG-193: Get rid of uninformative misconfiguration errors

* HG-193: Tolerate missing external account
2017-05-18 20:10:23 +03:00
Artem Ocheredko
ab4ffe8569 HG188-add user identity (#86)
* HG-188 Move to erlang 19 dialyzer and user identity access

* HG-188 Postreview refactoring
2017-05-17 11:50:18 +03:00
Andrew Mayorov
ae2ec46239 Fix selector and condition patterns (#85) 2017-05-11 22:52:50 +03:00
Andrew Mayorov
5824c62847 HG-190: Abuse persistent timers in the invoice machine (#84)
* HG-190: Cut down on extraneous mg calls a little

* HG-190: Switch to rbkmoney/damsel@4018c41

* HG-190: Abuse persistent timers in the invoice machine

* HG-190: Drop merchant proxy logic altogether

* HG-190: Add one more test on invoice timings

* HG-190: Fix confusing timer management

* HG-190: Oops

* HG-190: Switch to damsel upstream, bump to rbkmoney/machinegun@a5a8653

* HG-190: Bump to rbkmoney/machinegun@707c2f8
2017-05-04 17:58:54 +03:00
Evgeny Levenets
7a35a40a33 DC-30: external accounts added to cash flow (#82) 2017-04-25 13:51:37 +03:00
Andrew Mayorov
bf50fbffda HG-155: Export woody server net_opts to the config (#81) 2017-04-03 17:47:58 +03:00
Andrew Mayorov
e4ec2f2677 HG-186: Describe limit violations more throughly (#80)
* HG-186: Describe limit violations more throughly

* HG-186: Make argument order more natural
2017-03-30 16:25:29 +03:00
Andrew Mayorov
5bbee121a5 HG-144: Make state processors msgpack-aware (#78)
* HG-155: Fix invoicing handler quirks

* HG-144: Make state processors msgpack-aware

* HG-155: Bump to rbkmoney/damsel@d0c4a06, rbkmoney/machinegun@e04e529

* HG-155: Bump to rbkmoney/dominant@61320c4
2017-03-29 19:18:52 +03:00
Andrew Mayorov
4a04b06fb9 Raise correct exception on empty invoice history (#77) 2017-03-14 17:23:02 +03:00
Evgeny Levenets
a18a6f9979 HG-168: use any of contract’s categories if category isn’t specified at shop creation (#75) 2017-03-06 19:20:34 +03:00
Andrew Mayorov
6dfb1db961 HG-170: Fix Invoicing exception interface (#76)
* HG-170: Remove obsolete TODOs

* HG-170: Fix Invoicing exception interface

* HG-170: Bump to rbkmoney/damsel@9ec1a2e
2017-03-06 14:49:50 +03:00
Evgeny Levenets
392452f133 HG-160: split party management into 3 modules (#73)
* HG-160: split hg_party into 3 modules
* added TODO about changes applying
2017-03-03 20:08:05 +03:00
Andrew Mayorov
6f8e4998e8 MSPF-191: Fix proxy options merging (#74) 2017-02-27 21:46:27 +03:00
Evgeny Levenets
6dae29bfab HG-154: party management checks validation (#65) 2017-02-17 15:58:04 +03:00
Andrew Mayorov
eee9eceaf8 MSPF-191: Fix inappropriate timeout setup after payment capture (#70)
* MSPF-191: Fix inappropriate timeout setup after payment capture

* MSPF-191: Bump to rbkmoney/machinegun@a0e488b
2017-02-08 19:40:35 +03:00
Evgeny Levenets
240328080b CAPI-59: contract creation now produce event with 2 change sets. (#69) 2017-02-06 14:24:21 +03:00
Andrew Mayorov
8031353726 HG-147: Improve event handler, make up logger prototype (#67)
* HG-147 Event handler / logger prototype

* HG-147 Logging scopes next edition

* HG-147 Add logging scopes to hg_machine/invoice/payment

* HG-147 Add postreview fixes

* HG-147: Try to improve metadata logging a bit
2017-02-04 19:48:29 +03:00
Andrew Mayorov
df62fb92dc MSPF-191: Bump to rbkmoney/woody_erlang@17bd521, fix exception handling (#68)
* MSPF-191: Bump to rbkmoney/woody_erlang@17bd521 and fix exception handling

* MSPF-191: Switch off debug output in tests
2017-02-04 18:52:13 +03:00
Andrew Mayorov
44825a9eec HG-152: Set up a proxy while creating a shop (#66) 2017-02-03 20:00:17 +03:00
Andrew Mayorov
bcd776a418 Implement all the hacks (#63)
* HG-153: Implement setting transport options up for proxies

* HG-153: Reduce inpector selector during payment init

* HG-151: Implement cost range condition

* HG-151: Reimplement inspector tests using selector

* HG-138: Shitcode up a party-related selectors implementation

* HG-153: Use proxy transport options from the app env

* HG-138: Implement const predicate reduction

* HG-138: Bump to rbkmoney/damsel@61701d2

* HG-138: Bump up dominant and build image

* HG-138: Make compose more insistent on health checking

* HG-152: Bump to rbkmoney/image-service-erlang@13454a9

* HG-138: Bump up dominant again

* HG-153: Make cash range check fail upon misconfiguration
2017-02-01 21:44:07 +03:00
Evgeny Levenets
669fdab027 HG-145: party management improvements (#62) 2017-01-31 23:02:03 +03:00
Andrew Mayorov
e4c62bee37 HG-149: Save party contact info upon creation (#61) 2017-01-17 19:30:40 +03:00
Evgeny Levenets
70a3658beb HG-129: primitive access control implemented (#59) 2017-01-17 15:49:57 +03:00
Andrew Mayorov
3af4a8bd0b HG-131: Shitcode a merchant proxy integration (#58)
* HG-130: Adapt to the damsel with breaking changes

* HG-131: Implement merchant proxy binding

* HG-131: Refactor shitty code a bit

* HG-131: Add upsert facility to help filling dmt up in tests

* HG-131: Name children properly to run more than one proxy handler

* HG-131: Fix a spec

* HG-131: Narrow a number of cases w/ asserting nonempty history

* HG-131: Drop unnecessary handling of woody errors

* HG-131: Shitcode a merchant proxy integration

* HG-131: Switch to the damsel upstream

* HG-131: Fix confusing type declarations

* HG-131: Adhere to the callback interface

* HG-131: Ensure proxy setup accepted automatically
2017-01-16 18:22:57 +03:00
Evgeny Levenets
3896310253 HG-127: new woody (#55) 2017-01-12 19:59:04 +03:00
Artem Ocheredko
8e68cda18f HG-110 Add risk score routing initial (and failed) attempt (#51)
* HG-110 Add risk score routing initial attempt. Move to the newest damsel
2017-01-12 18:36:58 +03:00
Andrew Mayorov
1efefe6e20 HG-130: Adapt to the damsel with breaking changes (#52)
* HG-130: Adapt to the damsel with breaking changes

* HG-130: Switch to proper damsel master

* HG-130: Hack around a damsel's whoopsie

* HG-130: Bump dominant and machinegun images
2017-01-11 17:22:41 +03:00
Evgeny Levenets
7a423bdff9 HG-112: implemented party contracts (#53) 2017-01-10 19:53:01 +03:00
Artem Ocheredko
c1b6e02847 HG-74 Integrate with new damsel protocols (#50)
* HG-74 Integrate with new damsel protocols
2016-12-08 19:18:32 +03:00
Evgeny Levenets
8b3fcdbc2e HG-78: allow updates to pending or suspended shop (#49) 2016-11-16 11:27:06 +03:00
Evgeny Levenets
4905525c76 HG-72: save context in gproc instead of carrying around from function to function (#48) 2016-11-15 10:59:17 +03:00
Evgeny Levenets
974a0cbb02 HG-72: separate generic machine logic from business-specific error handling (#43) 2016-10-27 20:07:06 +03:00
Andrew Mayorov
fe3f3ac110 MSPF-91: Fix broken Invoicing.Get (#47) 2016-10-25 22:25:32 +03:00
Andrew Mayorov
ef9864b17f HG-63: Interwine payment processing with accounting (#45)
* HG-63: Interwine payment processing with accounting

* HG-63: Fix linting issues

* HG-63: Fix badmatch

* HG-63: Play with timings in tests

* HG-63: Add a couple of TODOs

* HG-63: Use `partition` instead of deceptive `splitwith`
2016-10-23 17:57:22 +03:00
Artem Ocheredko
08f74399ab HG-64 Move proxy provider to the newest damsel (#44) 2016-10-21 18:35:34 +03:00
Evgeny Levenets
d1d631c791 MSPF-91: crash if checkout_object returned 'object_not_found' (#42) 2016-10-21 12:27:12 +03:00
Andrew Mayorov
235513c472 HG-64: Implement validation and naïve routing (#39)
* HG-62: Implement cashflows, w/o any reasonable safeguards for now

* HG-64: Drop unused piece of code

* HG-64: Export a domain revision type

* HG-64: Validate invoice params upon creation

* HG-64: Create default shop from prototype

* HG-64: Fix badmatch

* HG-64: Implement validation and naive routing

* HG-64: Bump to rbkmoney/damsel@29d6caf

* HG-64: Fix linting issues

* HG-64: Activate shop created from prototype

* HG-64: Refactor everything to use the newest woody_erlang

* HG-64: Add TODO concerning importance of autogenerated reflection
2016-10-20 13:51:35 +03:00
Evgeny Levenets
f0e40b369d HG-71: Added tests for invoices and payments (#32) 2016-10-17 21:43:53 +03:00
Igor Savchuk
f88657ef80 add dmt_client (#21)
* add dmt_client

remove traitorous tab

fix traitorous spec

fixes

rebase fixes

add tiny little fixes

eta wtuka ni k chemu

fix tabs and spaces

* drop some ugly stuff

* use fresh dominant image

* update build_utils
2016-10-16 20:55:55 +02:00
Andrew Mayorov
b8b9ab8407 HG-64: Fix dependency tree (#36) 2016-10-14 21:06:37 +03:00
Andrew Mayorov
0e7f75bd9f HG-61: Implement renewed invoicing service protocol (#35)
* HG-64: Implement renewed invoicing protocol

 * Bump damsel to rbkmoney/damsel@5e264e0

* HG-64: Relax the linter and fix a spec error

* Hg-64: Fix incorrect specs

* HG-64: Bump machinegun w/ bugfix
2016-10-14 20:27:22 +03:00
Artem Ocheredko
e529a15e74 HG-67 Fix get account state operation which never worked (#34) 2016-10-14 16:45:23 +03:00