@@ -90,7 +90,7 @@ func TestFixedSubscription_Create(t *testing.T) {
90
90
91
91
actual , err := subject .FixedSubscriptions .Create (
92
92
context .TODO (),
93
- fixedSubscriptions.FixedSubscription {
93
+ fixedSubscriptions.FixedSubscriptionRequest {
94
94
Name : redis .String ("My test fixed subscription" ),
95
95
PlanId : redis .Int (34858 ),
96
96
PaymentMethodID : redis .Int (30949 ),
@@ -179,7 +179,7 @@ func TestFixedSubscription_Create_Marketplace(t *testing.T) {
179
179
180
180
actual , err := subject .FixedSubscriptions .Create (
181
181
context .TODO (),
182
- fixedSubscriptions.FixedSubscription {
182
+ fixedSubscriptions.FixedSubscriptionRequest {
183
183
Name : redis .String ("My test fixed subscription with marketplace payments" ),
184
184
PlanId : redis .Int (34811 ),
185
185
PaymentMethod : redis .String ("marketplace" ),
@@ -274,13 +274,14 @@ func TestFixedSubscription_List(t *testing.T) {
274
274
actual , err := subject .FixedSubscriptions .List (context .TODO ())
275
275
require .NoError (t , err )
276
276
277
- assert .ElementsMatch (t , []* fixedSubscriptions.FixedSubscription {
277
+ assert .ElementsMatch (t , []* fixedSubscriptions.FixedSubscriptionResponse {
278
278
{
279
279
ID : redis .Int (111614 ),
280
280
Name : redis .String ("My test fixed subscription" ),
281
281
Status : redis .String ("active" ),
282
282
PlanId : redis .Int (34858 ),
283
283
PaymentMethodID : redis .Int (30949 ),
284
+ PaymentMethod : redis .String ("credit-card" ),
284
285
CreationDate : redis .Time (time .Date (2024 , 5 , 9 , 9 , 36 , 18 , 0 , time .UTC )),
285
286
},
286
287
{
@@ -289,6 +290,7 @@ func TestFixedSubscription_List(t *testing.T) {
289
290
Status : redis .String ("active" ),
290
291
PlanId : redis .Int (34858 ),
291
292
PaymentMethodID : redis .Int (30949 ),
293
+ PaymentMethod : redis .String ("credit-card" ),
292
294
CreationDate : redis .Time (time .Date (2024 , 5 , 9 , 10 , 49 , 52 , 0 , time .UTC )),
293
295
},
294
296
}, actual )
@@ -345,11 +347,12 @@ func TestFixedSubscription_Get(t *testing.T) {
345
347
actual , err := subject .FixedSubscriptions .Get (context .TODO (), 111614 )
346
348
require .NoError (t , err )
347
349
348
- assert .Equal (t , & fixedSubscriptions.FixedSubscription {
350
+ assert .Equal (t , & fixedSubscriptions.FixedSubscriptionResponse {
349
351
ID : redis .Int (111614 ),
350
352
Name : redis .String ("My test fixed subscription" ),
351
353
Status : redis .String ("active" ),
352
354
PlanId : redis .Int (34858 ),
355
+ PaymentMethod : redis .String ("credit-card" ),
353
356
PaymentMethodID : redis .Int (30949 ),
354
357
CreationDate : redis .Time (time .Date (2024 , 5 , 9 , 9 , 36 , 18 , 0 , time .UTC )),
355
358
}, actual )
@@ -439,7 +442,7 @@ func TestFixedSubscription_Update(t *testing.T) {
439
442
err = subject .FixedSubscriptions .Update (
440
443
context .TODO (),
441
444
111614 ,
442
- fixedSubscriptions.FixedSubscription {
445
+ fixedSubscriptions.FixedSubscriptionRequest {
443
446
Name : redis .String ("My renamed fixed subscription" ),
444
447
PlanId : redis .Int (34853 ),
445
448
},
0 commit comments