Skip to content

Commit 5a858a1

Browse files
authored
Merge pull request #262 from moovfinancial/handle-202
handle 202 as Started
2 parents ca7025f + f7007b3 commit 5a858a1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/moov/billing_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ func Test_ListFeePlanAgreements_WithMultipleStatuses(t *testing.T) {
7575
FACILITATOR_ID,
7676
moov.WithFeePlanAgreementStatuses([]moov.FeePlanAgreementStatus{
7777
moov.FeePlanAgreementStatus_Active,
78-
moov.FeePlanAgreementStatus_Terminated,
7978
}),
8079
)
8180
require.NoError(t, err)

pkg/moov/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (r *httpCallResponse) Status() CallStatus {
100100
switch r.resp.StatusCode {
101101
case http.StatusOK, http.StatusNoContent:
102102
return StatusCompleted
103-
case http.StatusCreated:
103+
case http.StatusCreated, http.StatusAccepted:
104104
return StatusStarted
105105

106106
case http.StatusBadRequest:

0 commit comments

Comments
 (0)