File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,15 @@ def self.mock_charge(params={})
57
57
livemode : false ,
58
58
paid : true ,
59
59
amount : 0 ,
60
+ application_fee : nil ,
60
61
currency : "usd" ,
62
+ destination : nil ,
63
+ fraud_details : { } ,
64
+ receipt_email : nil ,
65
+ receipt_number : nil ,
61
66
refunded : false ,
67
+ shipping : { } ,
68
+ statement_descriptor : "Charge #{ charge_id } " ,
62
69
status : 'succeeded' ,
63
70
source : {
64
71
object : "card" ,
@@ -89,6 +96,7 @@ def self.mock_charge(params={})
89
96
url : "/v1/charges/#{ charge_id } /refunds" ,
90
97
data : [ ]
91
98
} ,
99
+ transfer : nil ,
92
100
balance_transaction : "txn_2dyYXXP90MN26R" ,
93
101
failure_message : nil ,
94
102
failure_code : nil ,
@@ -256,12 +264,14 @@ def self.mock_line_item(params = {})
256
264
livemode : false ,
257
265
amount : 1000 ,
258
266
currency : "usd" ,
267
+ discountable : false ,
259
268
proration : false ,
260
269
period : {
261
270
start : 1349738920 ,
262
271
end : 1349738920
263
272
} ,
264
273
quantity : nil ,
274
+ subscription : nil ,
265
275
plan : nil ,
266
276
description : "Test invoice item" ,
267
277
metadata : { }
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ def get_mock_subscription_line_item(subscription)
85
85
type : "subscription" ,
86
86
plan : subscription [ :plan ] ,
87
87
amount : subscription [ :plan ] [ :amount ] ,
88
+ discountable : true ,
88
89
quantity : 1 ,
89
90
period : {
90
91
start : subscription [ :current_period_end ] ,
You can’t perform that action at this time.
0 commit comments