Skip to content

Commit 2c925fd

Browse files
Merge pull request stripe-ruby-mock#695 from gbp/fix-auto-paging-each
Add `has_more` attribute to all ListObject instances
2 parents eb3b09e + 585a326 commit 2c925fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/stripe_mock/data.rb

+4
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,14 @@ def self.mock_customer(sources, params)
152152
sources: {
153153
object: "list",
154154
total_count: sources.size,
155+
has_more: false,
155156
url: "/v1/customers/#{cus_id}/sources",
156157
data: sources
157158
},
158159
subscriptions: {
159160
object: "list",
160161
total_count: 0,
162+
has_more: false,
161163
url: "/v1/customers/#{cus_id}/subscriptions",
162164
data: []
163165
},
@@ -384,6 +386,7 @@ def self.mock_invoice(lines, params={})
384386
lines: {
385387
object: "list",
386388
total_count: lines.count,
389+
has_more: false,
387390
url: "/v1/invoices/#{in_id}/lines",
388391
data: lines
389392
},
@@ -614,6 +617,7 @@ def self.mock_recipient(cards, params={})
614617
object: "list",
615618
url: "/v1/recipients/#{rp_id}/cards",
616619
data: cards,
620+
has_more: false,
617621
total_count: cards.count
618622
},
619623
default_card: nil

0 commit comments

Comments
 (0)