Stripe API - 按给定顺序列出元素 (asc/desc)
Stripe API - listing elements in a given order (asc/desc)
在我的 Ruby 应用程序中,我正在尝试从 Stripe API 检索付款。
关注文档https://stripe.com/docs/api/payouts/list#list_payouts-created
Stripe::Payout.list({limit: 3})
问题是我没有看到任何更改排序顺序的选项 (asc/desc)。
我希望是这样的:
Stripe::Payout.list({limit: 3, order: 'asc'})
我在 Stripe API 文档中找不到类似的内容。
不仅用于支出,而且实际上用于任何类型的元素。
有什么想法吗?
这是不可能的 - API returns 项目按最新排序,通常按 created
时间戳。
例如:https://stripe.com/docs/api/payouts/list
The payouts are returned in sorted order, with the most recently created payouts appearing first.
在我的 Ruby 应用程序中,我正在尝试从 Stripe API 检索付款。
关注文档https://stripe.com/docs/api/payouts/list#list_payouts-created
Stripe::Payout.list({limit: 3})
问题是我没有看到任何更改排序顺序的选项 (asc/desc)。
我希望是这样的:
Stripe::Payout.list({limit: 3, order: 'asc'})
我在 Stripe API 文档中找不到类似的内容。 不仅用于支出,而且实际上用于任何类型的元素。
有什么想法吗?
这是不可能的 - API returns 项目按最新排序,通常按 created
时间戳。
例如:https://stripe.com/docs/api/payouts/list
The payouts are returned in sorted order, with the most recently created payouts appearing first.