@@ -12,29 +12,26 @@ def finances_v0(...)
1212 module APIs
1313 # Selling Partner API for Finances
1414 #
15- # The Selling Partner API for Finances provides financial information that is relevant to a seller's business. You
15+ # The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You
1616 # can obtain financial events for a given order, financial event group, or date range without having to wait until a
1717 # statement period closes. You can also obtain financial event groups for a given date range.
1818 class FinancesV0 < API
19- # Returns financial event groups for a given date range. Orders from the last 48 hours might not be included in
19+ # Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your
2020 # financial events.
2121 #
2222 # @note This operation can make a static sandbox call.
23- # @param max_results_per_page [Integer] The maximum number of results per page. If the response exceeds the
24- # maximum number of transactions or 10 MB, the response is ` InvalidInput` .
25- # @param financial_event_group_started_before [String] A date that selects financial event groups that opened
26- # before (but not at) a specified date and time, in [ISO
27- # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format. The date-time must be after
28- # ` FinancialEventGroupStartedAfter` and more than two minutes before the time of request . If
29- # ` FinancialEventGroupStartedAfter` and ` FinancialEventGroupStartedBefore` are more than 180 days apart, no
23+ # @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
24+ # the maximum number of transactions or 10 MB, the API responds with ' InvalidInput' .
25+ # @param financial_event_group_started_before [String] A date used for selecting financial event groups that
26+ # opened before (but not at) a specified date and time, in [ISO
27+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format. The date-time must be later than
28+ # FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted . If
29+ # FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no
3030 # financial event groups are returned.
31- # @param financial_event_group_started_after [String] A date that selects financial event groups that opened after
32- # (or at) a specified date and time, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601)
33- # format. The date-time must be more than two minutes before you submit the request.
34- # @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
35- # `pageSize` value. To get the next page of results, call the operation with this token and include the same
36- # arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
37- # is null. Note that this operation can return empty pages.
31+ # @param financial_event_group_started_after [String] A date used for selecting financial event groups that opened
32+ # after (or at) a specified date and time, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601)
33+ # format. The date-time must be no later than two minutes before the request was submitted.
34+ # @param next_token [String] A string token returned in the response of your previous request.
3835 # @param rate_limit [Float] Requests per second
3936 # @return [Peddler::Response] The API response
4037 def list_financial_event_groups ( max_results_per_page : 10 , financial_event_group_started_before : nil ,
@@ -50,27 +47,24 @@ def list_financial_event_groups(max_results_per_page: 10, financial_event_group_
5047 meter ( rate_limit ) . get ( path , params :)
5148 end
5249
53- # Returns all financial events for the specified financial event group. Orders from the last 48 hours might not be
54- # included in financial events. **Note:** This operation only retrieves a group's data for the past two years. A
55- # request for data spanning more than two years produces an empty response.
50+ # Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to
51+ # appear in your financial events. **Note:** This operation will only retrieve group's data for the past two
52+ # years. If a request is submitted for data spanning more than two years, an empty response is returned .
5653 #
5754 # @note This operation can make a static sandbox call.
5855 # @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
59- # the maximum number of transactions or 10 MB, the response is ` InvalidInput` .
60- # @param posted_after [String] The response includes financial events posted after (or on) this date. This date
61- # must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date- time
62- # must be more than two minutes before the time of the request .
63- # @param posted_before [String] The response includes financial events posted before (but not on) this date. This
64- # date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The
65- # date-time must be later than `PostedAfter` and more than two minutes before the requestd was submitted . If
66- # `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. If you include the
67- # `PostedBefore ` parameter in your request, you must also specify the `PostedAfter ` parameter. ** Default:** Two
68- # minutes before the time of the request .
56+ # the maximum number of transactions or 10 MB, the API responds with ' InvalidInput' .
57+ # @param posted_after [String] A date used for selecting financial events posted after (or at) a specified time.
58+ # The date-time ** must** be more than two minutes before the time of the request, in [ISO
59+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format .
60+ # @param posted_before [String] A date used for selecting financial events posted before (but not at) a specified
61+ # time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was
62+ # submitted, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format . If
63+ # `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must
64+ # specify the `PostedAfter ` parameter if you specify the `PostedBefore ` parameter. Default: Now minus two
65+ # minutes.
6966 # @param event_group_id [String] The identifier of the financial event group to which the events belong.
70- # @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
71- # `pageSize` value. To get the next page of results, call the operation with this token and include the same
72- # arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
73- # is null. Note that this operation can return empty pages.
67+ # @param next_token [String] A string token returned in the response of your previous request.
7468 # @param rate_limit [Float] Requests per second
7569 # @return [Peddler::Response] The API response
7670 def list_financial_events_by_group_id ( event_group_id , max_results_per_page : 100 , posted_after : nil ,
@@ -86,17 +80,14 @@ def list_financial_events_by_group_id(event_group_id, max_results_per_page: 100,
8680 meter ( rate_limit ) . get ( path , params :)
8781 end
8882
89- # Returns all financial events for the specified order. Orders from the last 48 hours might not be included in
83+ # Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your
9084 # financial events.
9185 #
9286 # @note This operation can make a static sandbox call.
9387 # @param order_id [String] An Amazon-defined order identifier, in 3-7-7 format.
9488 # @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
95- # the maximum number of transactions or 10 MB, the response is `InvalidInput`.
96- # @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
97- # `pageSize` value. To get the next page of results, call the operation with this token and include the same
98- # arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
99- # is null. Note that this operation can return empty pages.
89+ # the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.
90+ # @param next_token [String] A string token returned in the response of your previous request.
10091 # @param rate_limit [Float] Requests per second
10192 # @return [Peddler::Response] The API response
10293 def list_financial_events_by_order_id ( order_id , max_results_per_page : 100 , next_token : nil , rate_limit : 0.5 )
@@ -109,26 +100,22 @@ def list_financial_events_by_order_id(order_id, max_results_per_page: 100, next_
109100 meter ( rate_limit ) . get ( path , params :)
110101 end
111102
112- # Returns financial events for the specified data range. Orders from the last 48 hours might not be included in
103+ # Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your
113104 # financial events. **Note:** in `ListFinancialEvents`, deferred events don't show up in responses until in they
114105 # are released.
115106 #
116107 # @note This operation can make a static sandbox call.
117108 # @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
118- # the maximum number of transactions or 10 MB, the response is `InvalidInput`.
119- # @param posted_after [String] The response includes financial events posted after (or on) this date. This date
120- # must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time
121- # must be more than two minutes before the time of the request.
122- # @param posted_before [String] The response includes financial events posted before (but not on) this date. This
123- # date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The
124- # date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If
125- # `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. If you include the
126- # `PostedBefore` parameter in your request, you must also specify the `PostedAfter` parameter. **Default:** Two
127- # minutes before the time of the request.
128- # @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
129- # `pageSize` value. To get the next page of results, call the operation with this token and include the same
130- # arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
131- # is null. Note that this operation can return empty pages.
109+ # the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.
110+ # @param posted_after [String] A date used for selecting financial events posted after (or at) a specified time.
111+ # The date-time must be no later than two minutes before the request was submitted, in [ISO
112+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.
113+ # @param posted_before [String] A date used for selecting financial events posted before (but not at) a specified
114+ # time. The date-time must be later than PostedAfter and no later than two minutes before the request was
115+ # submitted, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format. If
116+ # PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify
117+ # the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
118+ # @param next_token [String] A string token returned in the response of your previous request.
132119 # @param rate_limit [Float] Requests per second
133120 # @return [Peddler::Response] The API response
134121 def list_financial_events ( max_results_per_page : 100 , posted_after : nil , posted_before : nil , next_token : nil ,
0 commit comments