|
12108 | 12108 | }
|
12109 | 12109 | }
|
12110 | 12110 | },
|
| 12111 | + "DynamicRoutingAlgorithm": { |
| 12112 | + "oneOf": [ |
| 12113 | + { |
| 12114 | + "$ref": "#/components/schemas/EliminationRoutingConfig" |
| 12115 | + }, |
| 12116 | + { |
| 12117 | + "$ref": "#/components/schemas/SuccessBasedRoutingConfig" |
| 12118 | + }, |
| 12119 | + { |
| 12120 | + "$ref": "#/components/schemas/ContractBasedRoutingConfig" |
| 12121 | + } |
| 12122 | + ] |
| 12123 | + }, |
12111 | 12124 | "DynamicRoutingConfigParams": {
|
12112 | 12125 | "type": "string",
|
12113 | 12126 | "enum": [
|
|
12183 | 12196 | }
|
12184 | 12197 | ]
|
12185 | 12198 | },
|
| 12199 | + "EliminationAnalyserConfig": { |
| 12200 | + "type": "object", |
| 12201 | + "properties": { |
| 12202 | + "bucket_size": { |
| 12203 | + "type": "integer", |
| 12204 | + "format": "int64", |
| 12205 | + "nullable": true, |
| 12206 | + "minimum": 0 |
| 12207 | + }, |
| 12208 | + "bucket_leak_interval_in_secs": { |
| 12209 | + "type": "integer", |
| 12210 | + "format": "int64", |
| 12211 | + "nullable": true, |
| 12212 | + "minimum": 0 |
| 12213 | + } |
| 12214 | + }, |
| 12215 | + "additionalProperties": false |
| 12216 | + }, |
| 12217 | + "EliminationRoutingConfig": { |
| 12218 | + "type": "object", |
| 12219 | + "required": [ |
| 12220 | + "decision_engine_configs" |
| 12221 | + ], |
| 12222 | + "properties": { |
| 12223 | + "params": { |
| 12224 | + "type": "array", |
| 12225 | + "items": { |
| 12226 | + "$ref": "#/components/schemas/DynamicRoutingConfigParams" |
| 12227 | + }, |
| 12228 | + "nullable": true |
| 12229 | + }, |
| 12230 | + "elimination_analyser_config": { |
| 12231 | + "allOf": [ |
| 12232 | + { |
| 12233 | + "$ref": "#/components/schemas/EliminationAnalyserConfig" |
| 12234 | + } |
| 12235 | + ], |
| 12236 | + "nullable": true |
| 12237 | + }, |
| 12238 | + "decision_engine_configs": { |
| 12239 | + "$ref": "#/components/schemas/DecisionEngineEliminationData" |
| 12240 | + } |
| 12241 | + }, |
| 12242 | + "additionalProperties": false |
| 12243 | + }, |
12186 | 12244 | "EnabledPaymentMethod": {
|
12187 | 12245 | "type": "object",
|
12188 | 12246 | "description": "Object for EnabledPaymentMethod",
|
|
14621 | 14679 | "payout_routing_algorithm": {
|
14622 | 14680 | "allOf": [
|
14623 | 14681 | {
|
14624 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 14682 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
14625 | 14683 | }
|
14626 | 14684 | ],
|
14627 | 14685 | "nullable": true
|
|
14867 | 14925 | "payout_routing_algorithm": {
|
14868 | 14926 | "allOf": [
|
14869 | 14927 | {
|
14870 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 14928 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
14871 | 14929 | }
|
14872 | 14930 | ],
|
14873 | 14931 | "nullable": true
|
|
14913 | 14971 | "frm_routing_algorithm": {
|
14914 | 14972 | "allOf": [
|
14915 | 14973 | {
|
14916 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 14974 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
14917 | 14975 | }
|
14918 | 14976 | ],
|
14919 | 14977 | "nullable": true
|
|
15000 | 15058 | "payout_routing_algorithm": {
|
15001 | 15059 | "allOf": [
|
15002 | 15060 | {
|
15003 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 15061 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
15004 | 15062 | }
|
15005 | 15063 | ],
|
15006 | 15064 | "nullable": true
|
|
15941 | 15999 | "type": "string"
|
15942 | 16000 | },
|
15943 | 16001 | "algorithm": {
|
15944 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 16002 | + "$ref": "#/components/schemas/RoutingAlgorithmWrapper" |
15945 | 16003 | },
|
15946 | 16004 | "created_at": {
|
15947 | 16005 | "type": "integer",
|
|
22619 | 22677 | "routing": {
|
22620 | 22678 | "allOf": [
|
22621 | 22679 | {
|
22622 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 22680 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
22623 | 22681 | }
|
22624 | 22682 | ],
|
22625 | 22683 | "nullable": true
|
|
23565 | 23623 | "routing": {
|
23566 | 23624 | "allOf": [
|
23567 | 23625 | {
|
23568 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 23626 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
23569 | 23627 | }
|
23570 | 23628 | ],
|
23571 | 23629 | "nullable": true
|
|
23788 | 23846 | "routing": {
|
23789 | 23847 | "allOf": [
|
23790 | 23848 | {
|
23791 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 23849 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
23792 | 23850 | }
|
23793 | 23851 | ],
|
23794 | 23852 | "nullable": true
|
|
24368 | 24426 | "payout_routing_algorithm": {
|
24369 | 24427 | "allOf": [
|
24370 | 24428 | {
|
24371 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 24429 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
24372 | 24430 | }
|
24373 | 24431 | ],
|
24374 | 24432 | "nullable": true
|
|
24648 | 24706 | "payout_routing_algorithm": {
|
24649 | 24707 | "allOf": [
|
24650 | 24708 | {
|
24651 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 24709 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
24652 | 24710 | }
|
24653 | 24711 | ],
|
24654 | 24712 | "nullable": true
|
|
26053 | 26111 | "zsl"
|
26054 | 26112 | ]
|
26055 | 26113 | },
|
26056 |
| - "RoutingAlgorithm": { |
26057 |
| - "oneOf": [ |
26058 |
| - { |
26059 |
| - "type": "object", |
26060 |
| - "required": [ |
26061 |
| - "type", |
26062 |
| - "data" |
26063 |
| - ], |
26064 |
| - "properties": { |
26065 |
| - "type": { |
26066 |
| - "type": "string", |
26067 |
| - "enum": [ |
26068 |
| - "single" |
26069 |
| - ] |
26070 |
| - }, |
26071 |
| - "data": { |
26072 |
| - "$ref": "#/components/schemas/RoutableConnectorChoice" |
26073 |
| - } |
26074 |
| - } |
26075 |
| - }, |
26076 |
| - { |
26077 |
| - "type": "object", |
26078 |
| - "required": [ |
26079 |
| - "type", |
26080 |
| - "data" |
26081 |
| - ], |
26082 |
| - "properties": { |
26083 |
| - "type": { |
26084 |
| - "type": "string", |
26085 |
| - "enum": [ |
26086 |
| - "priority" |
26087 |
| - ] |
26088 |
| - }, |
26089 |
| - "data": { |
26090 |
| - "type": "array", |
26091 |
| - "items": { |
26092 |
| - "$ref": "#/components/schemas/RoutableConnectorChoice" |
26093 |
| - } |
26094 |
| - } |
26095 |
| - } |
26096 |
| - }, |
26097 |
| - { |
26098 |
| - "type": "object", |
26099 |
| - "required": [ |
26100 |
| - "type", |
26101 |
| - "data" |
26102 |
| - ], |
26103 |
| - "properties": { |
26104 |
| - "type": { |
26105 |
| - "type": "string", |
26106 |
| - "enum": [ |
26107 |
| - "volume_split" |
26108 |
| - ] |
26109 |
| - }, |
26110 |
| - "data": { |
26111 |
| - "type": "array", |
26112 |
| - "items": { |
26113 |
| - "$ref": "#/components/schemas/ConnectorVolumeSplit" |
26114 |
| - } |
26115 |
| - } |
26116 |
| - } |
26117 |
| - }, |
26118 |
| - { |
26119 |
| - "type": "object", |
26120 |
| - "required": [ |
26121 |
| - "type", |
26122 |
| - "data" |
26123 |
| - ], |
26124 |
| - "properties": { |
26125 |
| - "type": { |
26126 |
| - "type": "string", |
26127 |
| - "enum": [ |
26128 |
| - "advanced" |
26129 |
| - ] |
26130 |
| - }, |
26131 |
| - "data": { |
26132 |
| - "$ref": "#/components/schemas/ProgramConnectorSelection" |
26133 |
| - } |
26134 |
| - } |
26135 |
| - } |
26136 |
| - ], |
26137 |
| - "description": "Routing Algorithm kind", |
26138 |
| - "discriminator": { |
26139 |
| - "propertyName": "type" |
26140 |
| - } |
26141 |
| - }, |
26142 | 26114 | "RoutingAlgorithmKind": {
|
26143 | 26115 | "type": "string",
|
26144 | 26116 | "enum": [
|
|
26149 | 26121 | "dynamic"
|
26150 | 26122 | ]
|
26151 | 26123 | },
|
| 26124 | + "RoutingAlgorithmWrapper": { |
| 26125 | + "oneOf": [ |
| 26126 | + { |
| 26127 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
| 26128 | + }, |
| 26129 | + { |
| 26130 | + "$ref": "#/components/schemas/DynamicRoutingAlgorithm" |
| 26131 | + } |
| 26132 | + ] |
| 26133 | + }, |
26152 | 26134 | "RoutingConfigRequest": {
|
26153 | 26135 | "type": "object",
|
26154 | 26136 | "properties": {
|
|
26163 | 26145 | "algorithm": {
|
26164 | 26146 | "allOf": [
|
26165 | 26147 | {
|
26166 |
| - "$ref": "#/components/schemas/RoutingAlgorithm" |
| 26148 | + "$ref": "#/components/schemas/StaticRoutingAlgorithm" |
26167 | 26149 | }
|
26168 | 26150 | ],
|
26169 | 26151 | "nullable": true
|
|
27110 | 27092 | ],
|
27111 | 27093 | "description": "Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details."
|
27112 | 27094 | },
|
| 27095 | + "StaticRoutingAlgorithm": { |
| 27096 | + "oneOf": [ |
| 27097 | + { |
| 27098 | + "type": "object", |
| 27099 | + "required": [ |
| 27100 | + "type", |
| 27101 | + "data" |
| 27102 | + ], |
| 27103 | + "properties": { |
| 27104 | + "type": { |
| 27105 | + "type": "string", |
| 27106 | + "enum": [ |
| 27107 | + "single" |
| 27108 | + ] |
| 27109 | + }, |
| 27110 | + "data": { |
| 27111 | + "$ref": "#/components/schemas/RoutableConnectorChoice" |
| 27112 | + } |
| 27113 | + } |
| 27114 | + }, |
| 27115 | + { |
| 27116 | + "type": "object", |
| 27117 | + "required": [ |
| 27118 | + "type", |
| 27119 | + "data" |
| 27120 | + ], |
| 27121 | + "properties": { |
| 27122 | + "type": { |
| 27123 | + "type": "string", |
| 27124 | + "enum": [ |
| 27125 | + "priority" |
| 27126 | + ] |
| 27127 | + }, |
| 27128 | + "data": { |
| 27129 | + "type": "array", |
| 27130 | + "items": { |
| 27131 | + "$ref": "#/components/schemas/RoutableConnectorChoice" |
| 27132 | + } |
| 27133 | + } |
| 27134 | + } |
| 27135 | + }, |
| 27136 | + { |
| 27137 | + "type": "object", |
| 27138 | + "required": [ |
| 27139 | + "type", |
| 27140 | + "data" |
| 27141 | + ], |
| 27142 | + "properties": { |
| 27143 | + "type": { |
| 27144 | + "type": "string", |
| 27145 | + "enum": [ |
| 27146 | + "volume_split" |
| 27147 | + ] |
| 27148 | + }, |
| 27149 | + "data": { |
| 27150 | + "type": "array", |
| 27151 | + "items": { |
| 27152 | + "$ref": "#/components/schemas/ConnectorVolumeSplit" |
| 27153 | + } |
| 27154 | + } |
| 27155 | + } |
| 27156 | + }, |
| 27157 | + { |
| 27158 | + "type": "object", |
| 27159 | + "required": [ |
| 27160 | + "type", |
| 27161 | + "data" |
| 27162 | + ], |
| 27163 | + "properties": { |
| 27164 | + "type": { |
| 27165 | + "type": "string", |
| 27166 | + "enum": [ |
| 27167 | + "advanced" |
| 27168 | + ] |
| 27169 | + }, |
| 27170 | + "data": { |
| 27171 | + "$ref": "#/components/schemas/ProgramConnectorSelection" |
| 27172 | + } |
| 27173 | + } |
| 27174 | + } |
| 27175 | + ], |
| 27176 | + "discriminator": { |
| 27177 | + "propertyName": "type" |
| 27178 | + } |
| 27179 | + }, |
27113 | 27180 | "StraightThroughAlgorithm": {
|
27114 | 27181 | "oneOf": [
|
27115 | 27182 | {
|
|
27283 | 27350 | "decision_engine_configs": {
|
27284 | 27351 | "$ref": "#/components/schemas/DecisionEngineSuccessRateData"
|
27285 | 27352 | }
|
27286 |
| - } |
| 27353 | + }, |
| 27354 | + "additionalProperties": false |
27287 | 27355 | },
|
27288 | 27356 | "SuccessBasedRoutingConfigBody": {
|
27289 | 27357 | "type": "object",
|
|
27316 | 27384 | "specificity_level": {
|
27317 | 27385 | "$ref": "#/components/schemas/SuccessRateSpecificityLevel"
|
27318 | 27386 | }
|
27319 |
| - } |
| 27387 | + }, |
| 27388 | + "additionalProperties": false |
27320 | 27389 | },
|
27321 | 27390 | "SuccessRateSpecificityLevel": {
|
27322 | 27391 | "type": "string",
|
|
0 commit comments