Conversation
58a3a14 to
f01ed55
Compare
f01ed55 to
32a1772
Compare
32a1772 to
632a60d
Compare
632a60d to
28a1c2c
Compare
2484e8b to
62759f4
Compare
62759f4 to
8b31eef
Compare
8b31eef to
411cde5
Compare
411cde5 to
614b744
Compare
4541299 to
feceeae
Compare
feceeae to
7d6f42b
Compare
|
Automated pre-review (advisory, not a required check) — verdict: HOLD · CI green HOLD — structured payment-term support is incomplete across sibling APIs and still has invalid-input failure paths.
|
7d6f42b to
2fbfb0f
Compare
2fbfb0f to
fca7bfe
Compare
|
Automated pre-review (advisory, not a required check) — verdict: HOLD · CI green HOLD —
|
fca7bfe to
969586f
Compare
969586f to
35b8a0c
Compare
35b8a0c to
203f29f
Compare
|
Automated pre-review (advisory, not a required check) — verdict: PASS · CI green PASS — Structured payment terms and the legacy alias are handled consistently across REST parameter parsing, service validation/assignment, and serializers. Coverage exercises valid, invalid, null, and precedence cases; focused specs could not be executed locally because the prescribed |
203f29f to
f232b45
Compare
|
Automated pre-review (advisory, not a required check) — verdict: HOLD · CI green HOLD — malformed
|
Context
Earlier steps in this stack added the structured
payment_termto customers and billing entities, with thenet_payment_terminteger as a compatibility alias. This PR exposes it via the REST API. Before this change, clients could only send the integer.Description
Write path
payment_termis accepted on customer and billing entity create/update.PaymentTerms::ValidateServiceruns in all five write services before any persistence. Invalid input returns a validation error.net_payment_termcolumn writes are removed.PaymentTerms::AssignServiceis now the only term write path.RawPaymentTermParamscontroller concern copies the rawpayment_termandnet_payment_termvalues into the permitted params. Without this concern, invalid input would be dropped silently instead of returning a validation error.PaymentTerms::ValidateServicenormalizes its input, so ActionController::Parameters and plain hashes give the same result.Read path
payment_termto customer and billing entity serializers.payment_term. For invoices from before this feature, it builds{term_type: "net", days: N}from the invoice's own integer.Stack created with GitHub Stacks CLI • Give Feedback 💬