@@ -187,7 +187,7 @@ func TestV3VoidCreditGrant(t *testing.T) {
187187
188188 // when:
189189 // - the first grant is voided
190- status , voided , problem := c .VoidCreditGrant (customerID , grant .Id , nil )
190+ status , voided , problem := c .VoidCreditGrant (customerID , grant .Id , apiv3. VoidCreditGrantRequest {} )
191191 require .Equal (t , http .StatusOK , status , "problem: %+v" , problem )
192192 require .NotNil (t , voided )
193193
@@ -212,7 +212,7 @@ func TestV3VoidCreditGrant(t *testing.T) {
212212 })
213213
214214 t .Run ("retrying the void is an idempotent success" , func (t * testing.T ) {
215- status , again , problem := c .VoidCreditGrant (customerID , grant .Id , nil )
215+ status , again , problem := c .VoidCreditGrant (customerID , grant .Id , apiv3. VoidCreditGrantRequest {} )
216216 require .Equal (t , http .StatusOK , status , "problem: %+v" , problem )
217217 require .NotNil (t , again )
218218 require .Equal (t , apiv3 .BillingCreditGrantStatusVoided , again .Status )
@@ -265,7 +265,7 @@ func TestV3VoidCreditGrant(t *testing.T) {
265265 })
266266
267267 t .Run ("voiding an unknown grant is a 404" , func (t * testing.T ) {
268- status , _ , problem := c .VoidCreditGrant (customerID , ulid .Make ().String (), nil )
268+ status , _ , problem := c .VoidCreditGrant (customerID , ulid .Make ().String (), apiv3. VoidCreditGrantRequest {} )
269269 require .Equal (t , http .StatusNotFound , status , "problem: %+v" , problem )
270270 })
271271}
@@ -293,7 +293,7 @@ func TestV3VoidCreditGrantPaymentAdjustmentNone(t *testing.T) {
293293
294294 paymentAdjustment := apiv3 .BillingCreditGrantVoidPaymentAdjustmentNone
295295
296- status , voided , problem := c .VoidCreditGrant (customer .Id , grant .Id , & apiv3.VoidCreditGrantRequest {
296+ status , voided , problem := c .VoidCreditGrant (customer .Id , grant .Id , apiv3.VoidCreditGrantRequest {
297297 PaymentAdjustment : & paymentAdjustment ,
298298 })
299299 require .Equal (t , http .StatusOK , status , "problem: %+v" , problem )
0 commit comments