| index 776ebae0a..fd57d8d8b 100644 |
| --- a/internal/billingstripe/money_test.go |
| +++ b/internal/billingstripe/money_test.go |
| @@ -28,6 +28,7 @@ func TestMoneyMovementsMapsTypes(t *testing.T) { |
| failed := `{"id":"re_2","object":"refund","amount":1000,"charge":"ch_1","currency":"eur","status":"failed"}` |
| // Stripe lists newest first. |
| page := []string{ |
| + txnJSON("txn_7", "stripe_fx_fee", -12, 0, "eur", moneyT0.Add(7*time.Hour), `null`), |
| txnJSON("txn_6", "payout", -5000, 0, "eur", moneyT0.Add(6*time.Hour), `"po_1"`), |
| txnJSON("txn_5", "stripe_fee", -45, 0, "eur", moneyT0.Add(5*time.Hour), `null`), |
| txnJSON("txn_4", "refund_failure", 1000, 0, "eur", moneyT0.Add(4*time.Hour), failed), |
| @@ -61,6 +62,7 @@ func TestMoneyMovementsMapsTypes(t *testing.T) { |
| {ID: "txn_4", Kind: billing.MovementRefundFailure, Type: "refund_failure", Source: "re_2", Charge: "ch_1", Amount: 1000, Currency: "eur", At: moneyT0.Add(4 * time.Hour)}, |
| {ID: "txn_5", Kind: billing.MovementFee, Type: "stripe_fee", Amount: -45, Currency: "eur", At: moneyT0.Add(5 * time.Hour)}, |
| {ID: "txn_6", Kind: billing.MovementOther, Type: "payout", Source: "po_1", Amount: -5000, Currency: "eur", At: moneyT0.Add(6 * time.Hour)}, |
| + {ID: "txn_7", Kind: billing.MovementFee, Type: "stripe_fx_fee", Amount: -12, Currency: "eur", At: moneyT0.Add(7 * time.Hour)}, |
| } |
| if len(ms) != len(want) { |
| t.Fatalf("got %d movements: %+v", len(ms), ms) |
| @@ -137,7 +139,7 @@ func TestMoneyMovementKinds(t *testing.T) { |
| "charge": billing.MovementCharge, "payment": billing.MovementCharge, |
| "refund": billing.MovementRefund, "payment_refund": billing.MovementRefund, |
| "refund_failure": billing.MovementRefundFailure, "payment_failure_refund": billing.MovementRefundFailure, |
| - "stripe_fee": billing.MovementFee, "tax_fee": billing.MovementFee, |
| + "stripe_fee": billing.MovementFee, "tax_fee": billing.MovementFee, "stripe_fx_fee": billing.MovementFee, |
| "payout": billing.MovementOther, "adjustment": billing.MovementOther, "": billing.MovementOther, |
| } { |
| if got := movementKindOf(typ); got != want { |