moov_ruby 0.2.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/moov/fee_plans.rb +360 -0
- data/lib/moov/models/components/residual.rb +79 -0
- data/lib/moov/models/components/residual.rbi +35 -0
- data/lib/moov/models/components.rb +1 -0
- data/lib/moov/models/operations/getresidual_request.rb +49 -0
- data/lib/moov/models/operations/getresidual_request.rbi +17 -0
- data/lib/moov/models/operations/getresidual_response.rb +49 -0
- data/lib/moov/models/operations/getresidual_response.rbi +21 -0
- data/lib/moov/models/operations/listresidualfees_request.rb +65 -0
- data/lib/moov/models/operations/listresidualfees_request.rbi +25 -0
- data/lib/moov/models/operations/listresidualfees_response.rb +49 -0
- data/lib/moov/models/operations/listresidualfees_response.rbi +21 -0
- data/lib/moov/models/operations/listresiduals_request.rb +61 -0
- data/lib/moov/models/operations/listresiduals_request.rbi +23 -0
- data/lib/moov/models/operations/listresiduals_response.rb +49 -0
- data/lib/moov/models/operations/listresiduals_response.rbi +21 -0
- data/lib/moov/models/operations.rb +6 -0
- data/lib/moov/sdkconfiguration.rb +3 -3
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1ae20e590d12cbcc790b87bc9ebd887258645ae9398af70ac46f473b2eda448
|
|
4
|
+
data.tar.gz: 71c641cae7b6e5828dfdb247259dfe3dcc3c1bc56b41edcc1ed201261c719f62
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91fc67db6ef374dd4bcf2b2043f3b6fb8384c87ce2ce863a2eff9bfee9e2a5d1c02f5b2d5d73e2f73ebdaf9c39fc089b583e3ed5cd9e390b6d825c24da4b18a5
|
|
7
|
+
data.tar.gz: 4ea7a3c3fe24878fbee884efd25f24579700fcb21dcfbcaa136ecf9d0f50a64d3dfb54f773f97d6bd5e103ac6ae48f8392f92ef819f83e9391e79d1352c2707a
|
data/lib/moov/fee_plans.rb
CHANGED
|
@@ -940,5 +940,365 @@ module Moov
|
|
|
940
940
|
|
|
941
941
|
end
|
|
942
942
|
end
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
sig { params(request: Models::Operations::ListResidualsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListResidualsResponse) }
|
|
946
|
+
def list_residuals(request:, timeout_ms: nil)
|
|
947
|
+
# list_residuals - List all residuals associated with an account.
|
|
948
|
+
#
|
|
949
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
950
|
+
# you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
951
|
+
url, params = @sdk_configuration.get_server_details
|
|
952
|
+
base_url = Utils.template_url(url, params)
|
|
953
|
+
url = Utils.generate_url(
|
|
954
|
+
Models::Operations::ListResidualsRequest,
|
|
955
|
+
base_url,
|
|
956
|
+
'/accounts/{accountID}/residuals',
|
|
957
|
+
request,
|
|
958
|
+
@sdk_configuration.globals
|
|
959
|
+
)
|
|
960
|
+
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
|
961
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
962
|
+
query_params = Utils.get_query_params(Models::Operations::ListResidualsRequest, request, nil, @sdk_configuration.globals)
|
|
963
|
+
headers['Accept'] = 'application/json'
|
|
964
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
965
|
+
|
|
966
|
+
security = @sdk_configuration.security_source&.call
|
|
967
|
+
|
|
968
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
969
|
+
timeout ||= @sdk_configuration.timeout
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
connection = @sdk_configuration.client
|
|
973
|
+
|
|
974
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
975
|
+
config: @sdk_configuration,
|
|
976
|
+
base_url: base_url,
|
|
977
|
+
oauth2_scopes: nil,
|
|
978
|
+
operation_id: 'listResiduals',
|
|
979
|
+
security_source: @sdk_configuration.security_source
|
|
980
|
+
)
|
|
981
|
+
|
|
982
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
983
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
begin
|
|
987
|
+
http_response = T.must(connection).get(url) do |req|
|
|
988
|
+
req.headers.merge!(headers)
|
|
989
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
990
|
+
req.params = query_params
|
|
991
|
+
Utils.configure_request_security(req, security)
|
|
992
|
+
|
|
993
|
+
@sdk_configuration.hooks.before_request(
|
|
994
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
995
|
+
hook_ctx: hook_ctx
|
|
996
|
+
),
|
|
997
|
+
request: req
|
|
998
|
+
)
|
|
999
|
+
end
|
|
1000
|
+
rescue StandardError => e
|
|
1001
|
+
error = e
|
|
1002
|
+
ensure
|
|
1003
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
1004
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
1005
|
+
error: error,
|
|
1006
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
1007
|
+
hook_ctx: hook_ctx
|
|
1008
|
+
),
|
|
1009
|
+
response: http_response
|
|
1010
|
+
)
|
|
1011
|
+
else
|
|
1012
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1013
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1014
|
+
hook_ctx: hook_ctx
|
|
1015
|
+
),
|
|
1016
|
+
response: http_response
|
|
1017
|
+
)
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
if http_response.nil?
|
|
1021
|
+
raise error if !error.nil?
|
|
1022
|
+
raise 'no response'
|
|
1023
|
+
end
|
|
1024
|
+
end
|
|
1025
|
+
|
|
1026
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1027
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
1028
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
1029
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1030
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1031
|
+
hook_ctx: hook_ctx
|
|
1032
|
+
),
|
|
1033
|
+
response: http_response
|
|
1034
|
+
)
|
|
1035
|
+
response_data = http_response.env.response_body
|
|
1036
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Residual))
|
|
1037
|
+
response = Models::Operations::ListResidualsResponse.new(
|
|
1038
|
+
status_code: http_response.status,
|
|
1039
|
+
content_type: content_type,
|
|
1040
|
+
raw_response: http_response,
|
|
1041
|
+
headers: http_response.headers,
|
|
1042
|
+
residuals: T.unsafe(obj)
|
|
1043
|
+
)
|
|
1044
|
+
|
|
1045
|
+
return response
|
|
1046
|
+
else
|
|
1047
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1048
|
+
end
|
|
1049
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
|
|
1050
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1051
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
1052
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1053
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
1054
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1055
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
1056
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1057
|
+
else
|
|
1058
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
1059
|
+
|
|
1060
|
+
end
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
sig { params(account_id: ::String, residual_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetResidualResponse) }
|
|
1065
|
+
def get_residual(account_id:, residual_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1066
|
+
# get_residual - Get a residual associated with an account.
|
|
1067
|
+
#
|
|
1068
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1069
|
+
# you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
1070
|
+
request = Models::Operations::GetResidualRequest.new(
|
|
1071
|
+
account_id: account_id,
|
|
1072
|
+
residual_id: residual_id,
|
|
1073
|
+
x_moov_version: x_moov_version
|
|
1074
|
+
)
|
|
1075
|
+
url, params = @sdk_configuration.get_server_details
|
|
1076
|
+
base_url = Utils.template_url(url, params)
|
|
1077
|
+
url = Utils.generate_url(
|
|
1078
|
+
Models::Operations::GetResidualRequest,
|
|
1079
|
+
base_url,
|
|
1080
|
+
'/accounts/{accountID}/residuals/{residualID}',
|
|
1081
|
+
request,
|
|
1082
|
+
@sdk_configuration.globals
|
|
1083
|
+
)
|
|
1084
|
+
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
|
1085
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
1086
|
+
headers['Accept'] = 'application/json'
|
|
1087
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1088
|
+
|
|
1089
|
+
security = @sdk_configuration.security_source&.call
|
|
1090
|
+
|
|
1091
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1092
|
+
timeout ||= @sdk_configuration.timeout
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
connection = @sdk_configuration.client
|
|
1096
|
+
|
|
1097
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
1098
|
+
config: @sdk_configuration,
|
|
1099
|
+
base_url: base_url,
|
|
1100
|
+
oauth2_scopes: nil,
|
|
1101
|
+
operation_id: 'getResidual',
|
|
1102
|
+
security_source: @sdk_configuration.security_source
|
|
1103
|
+
)
|
|
1104
|
+
|
|
1105
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
1106
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
begin
|
|
1110
|
+
http_response = T.must(connection).get(url) do |req|
|
|
1111
|
+
req.headers.merge!(headers)
|
|
1112
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
1113
|
+
Utils.configure_request_security(req, security)
|
|
1114
|
+
|
|
1115
|
+
@sdk_configuration.hooks.before_request(
|
|
1116
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
1117
|
+
hook_ctx: hook_ctx
|
|
1118
|
+
),
|
|
1119
|
+
request: req
|
|
1120
|
+
)
|
|
1121
|
+
end
|
|
1122
|
+
rescue StandardError => e
|
|
1123
|
+
error = e
|
|
1124
|
+
ensure
|
|
1125
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
1126
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
1127
|
+
error: error,
|
|
1128
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
1129
|
+
hook_ctx: hook_ctx
|
|
1130
|
+
),
|
|
1131
|
+
response: http_response
|
|
1132
|
+
)
|
|
1133
|
+
else
|
|
1134
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1135
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1136
|
+
hook_ctx: hook_ctx
|
|
1137
|
+
),
|
|
1138
|
+
response: http_response
|
|
1139
|
+
)
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
if http_response.nil?
|
|
1143
|
+
raise error if !error.nil?
|
|
1144
|
+
raise 'no response'
|
|
1145
|
+
end
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1149
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
1150
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
1151
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1152
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1153
|
+
hook_ctx: hook_ctx
|
|
1154
|
+
),
|
|
1155
|
+
response: http_response
|
|
1156
|
+
)
|
|
1157
|
+
response_data = http_response.env.response_body
|
|
1158
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Residual)
|
|
1159
|
+
response = Models::Operations::GetResidualResponse.new(
|
|
1160
|
+
status_code: http_response.status,
|
|
1161
|
+
content_type: content_type,
|
|
1162
|
+
raw_response: http_response,
|
|
1163
|
+
headers: http_response.headers,
|
|
1164
|
+
residual: T.unsafe(obj)
|
|
1165
|
+
)
|
|
1166
|
+
|
|
1167
|
+
return response
|
|
1168
|
+
else
|
|
1169
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1170
|
+
end
|
|
1171
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
|
1172
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1173
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
1174
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1175
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
1176
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1177
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
1178
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1179
|
+
else
|
|
1180
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
1181
|
+
|
|
1182
|
+
end
|
|
1183
|
+
end
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
sig { params(request: Models::Operations::ListResidualFeesRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListResidualFeesResponse) }
|
|
1187
|
+
def list_residual_fees(request:, timeout_ms: nil)
|
|
1188
|
+
# list_residual_fees - List all fees associated with a residual.
|
|
1189
|
+
#
|
|
1190
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1191
|
+
# you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
1192
|
+
url, params = @sdk_configuration.get_server_details
|
|
1193
|
+
base_url = Utils.template_url(url, params)
|
|
1194
|
+
url = Utils.generate_url(
|
|
1195
|
+
Models::Operations::ListResidualFeesRequest,
|
|
1196
|
+
base_url,
|
|
1197
|
+
'/accounts/{accountID}/residuals/{residualID}/fees',
|
|
1198
|
+
request,
|
|
1199
|
+
@sdk_configuration.globals
|
|
1200
|
+
)
|
|
1201
|
+
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
|
1202
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
1203
|
+
query_params = Utils.get_query_params(Models::Operations::ListResidualFeesRequest, request, nil, @sdk_configuration.globals)
|
|
1204
|
+
headers['Accept'] = 'application/json'
|
|
1205
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1206
|
+
|
|
1207
|
+
security = @sdk_configuration.security_source&.call
|
|
1208
|
+
|
|
1209
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1210
|
+
timeout ||= @sdk_configuration.timeout
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
connection = @sdk_configuration.client
|
|
1214
|
+
|
|
1215
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
1216
|
+
config: @sdk_configuration,
|
|
1217
|
+
base_url: base_url,
|
|
1218
|
+
oauth2_scopes: nil,
|
|
1219
|
+
operation_id: 'listResidualFees',
|
|
1220
|
+
security_source: @sdk_configuration.security_source
|
|
1221
|
+
)
|
|
1222
|
+
|
|
1223
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
1224
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
begin
|
|
1228
|
+
http_response = T.must(connection).get(url) do |req|
|
|
1229
|
+
req.headers.merge!(headers)
|
|
1230
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
1231
|
+
req.params = query_params
|
|
1232
|
+
Utils.configure_request_security(req, security)
|
|
1233
|
+
|
|
1234
|
+
@sdk_configuration.hooks.before_request(
|
|
1235
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
1236
|
+
hook_ctx: hook_ctx
|
|
1237
|
+
),
|
|
1238
|
+
request: req
|
|
1239
|
+
)
|
|
1240
|
+
end
|
|
1241
|
+
rescue StandardError => e
|
|
1242
|
+
error = e
|
|
1243
|
+
ensure
|
|
1244
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
1245
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
1246
|
+
error: error,
|
|
1247
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
1248
|
+
hook_ctx: hook_ctx
|
|
1249
|
+
),
|
|
1250
|
+
response: http_response
|
|
1251
|
+
)
|
|
1252
|
+
else
|
|
1253
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1254
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1255
|
+
hook_ctx: hook_ctx
|
|
1256
|
+
),
|
|
1257
|
+
response: http_response
|
|
1258
|
+
)
|
|
1259
|
+
end
|
|
1260
|
+
|
|
1261
|
+
if http_response.nil?
|
|
1262
|
+
raise error if !error.nil?
|
|
1263
|
+
raise 'no response'
|
|
1264
|
+
end
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1267
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1268
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
1269
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
1270
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1271
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1272
|
+
hook_ctx: hook_ctx
|
|
1273
|
+
),
|
|
1274
|
+
response: http_response
|
|
1275
|
+
)
|
|
1276
|
+
response_data = http_response.env.response_body
|
|
1277
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::IncurredFee))
|
|
1278
|
+
response = Models::Operations::ListResidualFeesResponse.new(
|
|
1279
|
+
status_code: http_response.status,
|
|
1280
|
+
content_type: content_type,
|
|
1281
|
+
raw_response: http_response,
|
|
1282
|
+
headers: http_response.headers,
|
|
1283
|
+
incurred_fees: T.unsafe(obj)
|
|
1284
|
+
)
|
|
1285
|
+
|
|
1286
|
+
return response
|
|
1287
|
+
else
|
|
1288
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1289
|
+
end
|
|
1290
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
|
|
1291
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1292
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
1293
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1294
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
1295
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1296
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
1297
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1298
|
+
else
|
|
1299
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
1300
|
+
|
|
1301
|
+
end
|
|
1302
|
+
end
|
|
943
1303
|
end
|
|
944
1304
|
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Residual
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :residual_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('residualID'), required: true } }
|
|
18
|
+
|
|
19
|
+
field :partner_account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerAccountID'), required: true } }
|
|
20
|
+
|
|
21
|
+
field :period_start, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('periodStart'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
22
|
+
|
|
23
|
+
field :period_end, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('periodEnd'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
24
|
+
|
|
25
|
+
field :merchant_fees, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantFees'), required: true } }
|
|
26
|
+
|
|
27
|
+
field :partner_cost, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerCost'), required: true } }
|
|
28
|
+
|
|
29
|
+
field :net_income, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('netIncome'), required: true } }
|
|
30
|
+
# The decimal-formatted numerical string of the revenue split for partner.
|
|
31
|
+
#
|
|
32
|
+
# For example, 2.25% is '2.25'.
|
|
33
|
+
field :revenue_share, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
|
|
34
|
+
|
|
35
|
+
field :residual_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('residualAmount'), required: true } }
|
|
36
|
+
|
|
37
|
+
field :moov_share, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('moovShare'), required: true } }
|
|
38
|
+
|
|
39
|
+
field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
40
|
+
|
|
41
|
+
field :updated_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updatedOn'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
42
|
+
|
|
43
|
+
sig { params(residual_id: ::String, partner_account_id: ::String, period_start: ::DateTime, period_end: ::DateTime, merchant_fees: Models::Components::AmountDecimal, partner_cost: Models::Components::AmountDecimal, net_income: Models::Components::AmountDecimal, revenue_share: ::String, residual_amount: Models::Components::AmountDecimal, moov_share: Models::Components::AmountDecimal, created_on: ::DateTime, updated_on: ::DateTime).void }
|
|
44
|
+
def initialize(residual_id:, partner_account_id:, period_start:, period_end:, merchant_fees:, partner_cost:, net_income:, revenue_share:, residual_amount:, moov_share:, created_on:, updated_on:)
|
|
45
|
+
@residual_id = residual_id
|
|
46
|
+
@partner_account_id = partner_account_id
|
|
47
|
+
@period_start = period_start
|
|
48
|
+
@period_end = period_end
|
|
49
|
+
@merchant_fees = merchant_fees
|
|
50
|
+
@partner_cost = partner_cost
|
|
51
|
+
@net_income = net_income
|
|
52
|
+
@revenue_share = revenue_share
|
|
53
|
+
@residual_amount = residual_amount
|
|
54
|
+
@moov_share = moov_share
|
|
55
|
+
@created_on = created_on
|
|
56
|
+
@updated_on = updated_on
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
60
|
+
def ==(other)
|
|
61
|
+
return false unless other.is_a? self.class
|
|
62
|
+
return false unless @residual_id == other.residual_id
|
|
63
|
+
return false unless @partner_account_id == other.partner_account_id
|
|
64
|
+
return false unless @period_start == other.period_start
|
|
65
|
+
return false unless @period_end == other.period_end
|
|
66
|
+
return false unless @merchant_fees == other.merchant_fees
|
|
67
|
+
return false unless @partner_cost == other.partner_cost
|
|
68
|
+
return false unless @net_income == other.net_income
|
|
69
|
+
return false unless @revenue_share == other.revenue_share
|
|
70
|
+
return false unless @residual_amount == other.residual_amount
|
|
71
|
+
return false unless @moov_share == other.moov_share
|
|
72
|
+
return false unless @created_on == other.created_on
|
|
73
|
+
return false unless @updated_on == other.updated_on
|
|
74
|
+
true
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::Residual
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::Residual
|
|
11
|
+
def residual_id(); end
|
|
12
|
+
def residual_id=(str_); end
|
|
13
|
+
def partner_account_id(); end
|
|
14
|
+
def partner_account_id=(str_); end
|
|
15
|
+
def period_start(); end
|
|
16
|
+
def period_start=(str_); end
|
|
17
|
+
def period_end(); end
|
|
18
|
+
def period_end=(str_); end
|
|
19
|
+
def merchant_fees(); end
|
|
20
|
+
def merchant_fees=(str_); end
|
|
21
|
+
def partner_cost(); end
|
|
22
|
+
def partner_cost=(str_); end
|
|
23
|
+
def net_income(); end
|
|
24
|
+
def net_income=(str_); end
|
|
25
|
+
def revenue_share(); end
|
|
26
|
+
def revenue_share=(str_); end
|
|
27
|
+
def residual_amount(); end
|
|
28
|
+
def residual_amount=(str_); end
|
|
29
|
+
def moov_share(); end
|
|
30
|
+
def moov_share=(str_); end
|
|
31
|
+
def created_on(); end
|
|
32
|
+
def created_on=(str_); end
|
|
33
|
+
def updated_on(); end
|
|
34
|
+
def updated_on=(str_); end
|
|
35
|
+
end
|
|
@@ -388,6 +388,7 @@ module Moov
|
|
|
388
388
|
autoload :RequirementError, 'moov/models/components/requirementerror.rb'
|
|
389
389
|
autoload :RequirementErrorCode, 'moov/models/components/requirementerrorcode.rb'
|
|
390
390
|
autoload :RequirementID, 'moov/models/components/requirementid.rb'
|
|
391
|
+
autoload :Residual, 'moov/models/components/residual.rb'
|
|
391
392
|
autoload :ReturnPolicyType, 'moov/models/components/returnpolicytype.rb'
|
|
392
393
|
autoload :Reversal, 'moov/models/components/reversal.rb'
|
|
393
394
|
autoload :ReversedWithCancellation, 'moov/models/components/reversedwithcancellation.rb'
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetResidualRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
field :residual_id, ::String, { 'path_param': { 'field_name': 'residualID', 'style': 'simple', 'explode': false } }
|
|
20
|
+
# Specify an API version.
|
|
21
|
+
#
|
|
22
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
23
|
+
# - `YYYY` is the year
|
|
24
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
25
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
26
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
27
|
+
#
|
|
28
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
29
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
30
|
+
|
|
31
|
+
sig { params(account_id: ::String, residual_id: ::String, x_moov_version: T.nilable(::String)).void }
|
|
32
|
+
def initialize(account_id:, residual_id:, x_moov_version: 'v2024.01.00')
|
|
33
|
+
@account_id = account_id
|
|
34
|
+
@residual_id = residual_id
|
|
35
|
+
@x_moov_version = x_moov_version
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
39
|
+
def ==(other)
|
|
40
|
+
return false unless other.is_a? self.class
|
|
41
|
+
return false unless @account_id == other.account_id
|
|
42
|
+
return false unless @residual_id == other.residual_id
|
|
43
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::GetResidualRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::GetResidualRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def residual_id(); end
|
|
14
|
+
def residual_id=(str_); end
|
|
15
|
+
def x_moov_version(); end
|
|
16
|
+
def x_moov_version=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetResidualResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :residual, Crystalline::Nilable.new(Models::Components::Residual)
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], residual: T.nilable(Models::Components::Residual)).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, residual: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@residual = residual
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @residual == other.residual
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::GetResidualResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::GetResidualResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def residual(); end
|
|
20
|
+
def residual=(str_); end
|
|
21
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListResidualFeesRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
field :residual_id, ::String, { 'path_param': { 'field_name': 'residualID', 'style': 'simple', 'explode': false } }
|
|
20
|
+
|
|
21
|
+
field :skip, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'skip', 'style': 'form', 'explode': false } }
|
|
22
|
+
|
|
23
|
+
field :count, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count', 'style': 'form', 'explode': false } }
|
|
24
|
+
# Optional date-time to inclusively filter all fees created after this date-time.
|
|
25
|
+
field :start_date_time, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'startDateTime', 'style': 'form', 'explode': false } }
|
|
26
|
+
# Optional date-time to exclusively filter all fees created before this date-time.
|
|
27
|
+
field :end_date_time, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'endDateTime', 'style': 'form', 'explode': false } }
|
|
28
|
+
# Specify an API version.
|
|
29
|
+
#
|
|
30
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
31
|
+
# - `YYYY` is the year
|
|
32
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
33
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
34
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
35
|
+
#
|
|
36
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
37
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
38
|
+
|
|
39
|
+
sig { params(account_id: ::String, residual_id: ::String, skip: T.nilable(::Integer), count: T.nilable(::Integer), start_date_time: T.nilable(::String), end_date_time: T.nilable(::String), x_moov_version: T.nilable(::String)).void }
|
|
40
|
+
def initialize(account_id:, residual_id:, skip: nil, count: nil, start_date_time: nil, end_date_time: nil, x_moov_version: 'v2024.01.00')
|
|
41
|
+
@account_id = account_id
|
|
42
|
+
@residual_id = residual_id
|
|
43
|
+
@skip = skip
|
|
44
|
+
@count = count
|
|
45
|
+
@start_date_time = start_date_time
|
|
46
|
+
@end_date_time = end_date_time
|
|
47
|
+
@x_moov_version = x_moov_version
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
51
|
+
def ==(other)
|
|
52
|
+
return false unless other.is_a? self.class
|
|
53
|
+
return false unless @account_id == other.account_id
|
|
54
|
+
return false unless @residual_id == other.residual_id
|
|
55
|
+
return false unless @skip == other.skip
|
|
56
|
+
return false unless @count == other.count
|
|
57
|
+
return false unless @start_date_time == other.start_date_time
|
|
58
|
+
return false unless @end_date_time == other.end_date_time
|
|
59
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
60
|
+
true
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListResidualFeesRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListResidualFeesRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def residual_id(); end
|
|
14
|
+
def residual_id=(str_); end
|
|
15
|
+
def skip(); end
|
|
16
|
+
def skip=(str_); end
|
|
17
|
+
def count(); end
|
|
18
|
+
def count=(str_); end
|
|
19
|
+
def start_date_time(); end
|
|
20
|
+
def start_date_time=(str_); end
|
|
21
|
+
def end_date_time(); end
|
|
22
|
+
def end_date_time=(str_); end
|
|
23
|
+
def x_moov_version(); end
|
|
24
|
+
def x_moov_version=(str_); end
|
|
25
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListResidualFeesResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :incurred_fees, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::IncurredFee))
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], incurred_fees: T.nilable(T::Array[Models::Components::IncurredFee])).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, incurred_fees: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@incurred_fees = incurred_fees
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @incurred_fees == other.incurred_fees
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListResidualFeesResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListResidualFeesResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def incurred_fees(); end
|
|
20
|
+
def incurred_fees=(str_); end
|
|
21
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListResidualsRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
field :skip, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'skip', 'style': 'form', 'explode': false } }
|
|
20
|
+
|
|
21
|
+
field :count, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count', 'style': 'form', 'explode': false } }
|
|
22
|
+
# Optional date-time to inclusively filter all residuals with a period start after this date-time.
|
|
23
|
+
field :start_date_time, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'startDateTime', 'style': 'form', 'explode': false } }
|
|
24
|
+
# Optional date-time to exclusively filter all residuals with a period end before this date-time.
|
|
25
|
+
field :end_date_time, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'endDateTime', 'style': 'form', 'explode': false } }
|
|
26
|
+
# Specify an API version.
|
|
27
|
+
#
|
|
28
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
29
|
+
# - `YYYY` is the year
|
|
30
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
31
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
32
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
33
|
+
#
|
|
34
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
35
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
36
|
+
|
|
37
|
+
sig { params(account_id: ::String, skip: T.nilable(::Integer), count: T.nilable(::Integer), start_date_time: T.nilable(::String), end_date_time: T.nilable(::String), x_moov_version: T.nilable(::String)).void }
|
|
38
|
+
def initialize(account_id:, skip: nil, count: nil, start_date_time: nil, end_date_time: nil, x_moov_version: 'v2024.01.00')
|
|
39
|
+
@account_id = account_id
|
|
40
|
+
@skip = skip
|
|
41
|
+
@count = count
|
|
42
|
+
@start_date_time = start_date_time
|
|
43
|
+
@end_date_time = end_date_time
|
|
44
|
+
@x_moov_version = x_moov_version
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
48
|
+
def ==(other)
|
|
49
|
+
return false unless other.is_a? self.class
|
|
50
|
+
return false unless @account_id == other.account_id
|
|
51
|
+
return false unless @skip == other.skip
|
|
52
|
+
return false unless @count == other.count
|
|
53
|
+
return false unless @start_date_time == other.start_date_time
|
|
54
|
+
return false unless @end_date_time == other.end_date_time
|
|
55
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
56
|
+
true
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListResidualsRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListResidualsRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def skip(); end
|
|
14
|
+
def skip=(str_); end
|
|
15
|
+
def count(); end
|
|
16
|
+
def count=(str_); end
|
|
17
|
+
def start_date_time(); end
|
|
18
|
+
def start_date_time=(str_); end
|
|
19
|
+
def end_date_time(); end
|
|
20
|
+
def end_date_time=(str_); end
|
|
21
|
+
def x_moov_version(); end
|
|
22
|
+
def x_moov_version=(str_); end
|
|
23
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListResidualsResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :residuals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::Residual))
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], residuals: T.nilable(T::Array[Models::Components::Residual])).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, residuals: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@residuals = residuals
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @residuals == other.residuals
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListResidualsResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListResidualsResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def residuals(); end
|
|
20
|
+
def residuals=(str_); end
|
|
21
|
+
end
|
|
@@ -142,6 +142,8 @@ module Moov
|
|
|
142
142
|
autoload :GetRefundResponse, 'moov/models/operations/getrefund_response.rb'
|
|
143
143
|
autoload :GetRepresentativeRequest, 'moov/models/operations/getrepresentative_request.rb'
|
|
144
144
|
autoload :GetRepresentativeResponse, 'moov/models/operations/getrepresentative_response.rb'
|
|
145
|
+
autoload :GetResidualRequest, 'moov/models/operations/getresidual_request.rb'
|
|
146
|
+
autoload :GetResidualResponse, 'moov/models/operations/getresidual_response.rb'
|
|
145
147
|
autoload :GetScheduledOccurrenceRequest, 'moov/models/operations/getscheduledoccurrence_request.rb'
|
|
146
148
|
autoload :GetScheduledOccurrenceResponse, 'moov/models/operations/getscheduledoccurrence_response.rb'
|
|
147
149
|
autoload :GetSchedulesRequest, 'moov/models/operations/getschedules_request.rb'
|
|
@@ -239,6 +241,10 @@ module Moov
|
|
|
239
241
|
autoload :ListRefundsResponse, 'moov/models/operations/listrefunds_response.rb'
|
|
240
242
|
autoload :ListRepresentativesRequest, 'moov/models/operations/listrepresentatives_request.rb'
|
|
241
243
|
autoload :ListRepresentativesResponse, 'moov/models/operations/listrepresentatives_response.rb'
|
|
244
|
+
autoload :ListResidualFeesRequest, 'moov/models/operations/listresidualfees_request.rb'
|
|
245
|
+
autoload :ListResidualFeesResponse, 'moov/models/operations/listresidualfees_response.rb'
|
|
246
|
+
autoload :ListResidualsRequest, 'moov/models/operations/listresiduals_request.rb'
|
|
247
|
+
autoload :ListResidualsResponse, 'moov/models/operations/listresiduals_response.rb'
|
|
242
248
|
autoload :ListSchedulesRequest, 'moov/models/operations/listschedules_request.rb'
|
|
243
249
|
autoload :ListSchedulesResponse, 'moov/models/operations/listschedules_response.rb'
|
|
244
250
|
autoload :ListStatementsRequest, 'moov/models/operations/liststatements_request.rb'
|
|
@@ -95,9 +95,9 @@ module Moov
|
|
|
95
95
|
@globals = globals.nil? ? {} : globals
|
|
96
96
|
@language = 'ruby'
|
|
97
97
|
@openapi_doc_version = 'latest'
|
|
98
|
-
@sdk_version = '0.
|
|
99
|
-
@gen_version = '2.
|
|
100
|
-
@user_agent = 'speakeasy-sdk/ruby 0.
|
|
98
|
+
@sdk_version = '0.3.0'
|
|
99
|
+
@gen_version = '2.735.1'
|
|
100
|
+
@user_agent = 'speakeasy-sdk/ruby 0.3.0 2.735.1 latest moov_ruby'
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moov_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Speakeasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -1003,6 +1003,8 @@ files:
|
|
|
1003
1003
|
- lib/moov/models/components/requirementerrorcode.rbi
|
|
1004
1004
|
- lib/moov/models/components/requirementid.rb
|
|
1005
1005
|
- lib/moov/models/components/requirementid.rbi
|
|
1006
|
+
- lib/moov/models/components/residual.rb
|
|
1007
|
+
- lib/moov/models/components/residual.rbi
|
|
1006
1008
|
- lib/moov/models/components/responsibilities.rb
|
|
1007
1009
|
- lib/moov/models/components/responsibilities.rbi
|
|
1008
1010
|
- lib/moov/models/components/returnpolicytype.rb
|
|
@@ -1685,6 +1687,10 @@ files:
|
|
|
1685
1687
|
- lib/moov/models/operations/getrepresentative_request.rbi
|
|
1686
1688
|
- lib/moov/models/operations/getrepresentative_response.rb
|
|
1687
1689
|
- lib/moov/models/operations/getrepresentative_response.rbi
|
|
1690
|
+
- lib/moov/models/operations/getresidual_request.rb
|
|
1691
|
+
- lib/moov/models/operations/getresidual_request.rbi
|
|
1692
|
+
- lib/moov/models/operations/getresidual_response.rb
|
|
1693
|
+
- lib/moov/models/operations/getresidual_response.rbi
|
|
1688
1694
|
- lib/moov/models/operations/getscheduledoccurrence_request.rb
|
|
1689
1695
|
- lib/moov/models/operations/getscheduledoccurrence_request.rbi
|
|
1690
1696
|
- lib/moov/models/operations/getscheduledoccurrence_response.rb
|
|
@@ -1879,6 +1885,14 @@ files:
|
|
|
1879
1885
|
- lib/moov/models/operations/listrepresentatives_request.rbi
|
|
1880
1886
|
- lib/moov/models/operations/listrepresentatives_response.rb
|
|
1881
1887
|
- lib/moov/models/operations/listrepresentatives_response.rbi
|
|
1888
|
+
- lib/moov/models/operations/listresidualfees_request.rb
|
|
1889
|
+
- lib/moov/models/operations/listresidualfees_request.rbi
|
|
1890
|
+
- lib/moov/models/operations/listresidualfees_response.rb
|
|
1891
|
+
- lib/moov/models/operations/listresidualfees_response.rbi
|
|
1892
|
+
- lib/moov/models/operations/listresiduals_request.rb
|
|
1893
|
+
- lib/moov/models/operations/listresiduals_request.rbi
|
|
1894
|
+
- lib/moov/models/operations/listresiduals_response.rb
|
|
1895
|
+
- lib/moov/models/operations/listresiduals_response.rbi
|
|
1882
1896
|
- lib/moov/models/operations/listschedules_request.rb
|
|
1883
1897
|
- lib/moov/models/operations/listschedules_request.rbi
|
|
1884
1898
|
- lib/moov/models/operations/listschedules_response.rb
|