@mojaloop/api-snippets 17.0.2 → 17.0.3-snapshot.1

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.
@@ -2054,48 +2054,65 @@ components:
2054
2054
  maxLength: 128
2055
2055
  description: Memo assigned to transaction.
2056
2056
  example: Note sent to Payee.
2057
- IlpFulfilment:
2058
- title: IlpFulfilment
2057
+ Money:
2058
+ title: Money
2059
+ type: object
2060
+ description: Data model for the complex type Money.
2061
+ properties:
2062
+ currency:
2063
+ $ref: '#/components/schemas/Currency'
2064
+ amount:
2065
+ $ref: '#/components/schemas/Amount'
2066
+ required:
2067
+ - currency
2068
+ - amount
2069
+ Latitude:
2070
+ title: Latitude
2059
2071
  type: string
2060
- pattern: ^[A-Za-z0-9-_]{43}$
2061
- maxLength: 48
2062
- description: Fulfilment that must be attached to the transfer by the Payee.
2063
- example: WLctttbu2HvTsa1XWvUoGRcQozHsqeu9Ahl2JW9Bsu8
2064
- TransferState:
2065
- title: TransferState
2072
+ pattern: >-
2073
+ ^(\+|-)?(?:90(?:(?:\.0{1,6})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,6})?))$
2074
+ description: >-
2075
+ The API data type Latitude is a JSON String in a lexical format that is
2076
+ restricted by a regular expression for interoperability reasons.
2077
+ example: '+45.4215'
2078
+ Longitude:
2079
+ title: Longitude
2066
2080
  type: string
2067
- enum:
2068
- - RECEIVED
2069
- - RESERVED
2070
- - COMMITTED
2071
- - ABORTED
2081
+ pattern: >-
2082
+ ^(\+|-)?(?:180(?:(?:\.0{1,6})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\.[0-9]{1,6})?))$
2072
2083
  description: >-
2073
- Below are the allowed values for the enumeration.
2074
-
2075
- - RECEIVED - Next ledger has received the transfer.
2076
-
2077
- - RESERVED - Next ledger has reserved the transfer.
2078
-
2079
- - COMMITTED - Next ledger has successfully performed the transfer.
2080
-
2081
- - ABORTED - Next ledger has aborted the transfer due to a rejection or
2082
- failure to perform the transfer.
2083
- example: RESERVED
2084
- TransfersIDPutResponse:
2085
- title: TransfersIDPutResponse
2084
+ The API data type Longitude is a JSON String in a lexical format that is
2085
+ restricted by a regular expression for interoperability reasons.
2086
+ example: '+75.6972'
2087
+ GeoCode:
2088
+ title: GeoCode
2086
2089
  type: object
2087
- description: The object sent in the PUT /transfers/{ID} callback.
2090
+ description: >-
2091
+ Data model for the complex type GeoCode. Indicates the geographic
2092
+ location from where the transaction was initiated.
2088
2093
  properties:
2089
- fulfilment:
2090
- $ref: '#/components/schemas/IlpFulfilment'
2091
- completedTimestamp:
2092
- $ref: '#/components/schemas/DateTime'
2093
- transferState:
2094
- $ref: '#/components/schemas/TransferState'
2095
- extensionList:
2096
- $ref: '#/components/schemas/ExtensionList'
2094
+ latitude:
2095
+ $ref: '#/components/schemas/Latitude'
2096
+ longitude:
2097
+ $ref: '#/components/schemas/Longitude'
2097
2098
  required:
2098
- - transferState
2099
+ - latitude
2100
+ - longitude
2101
+ IlpPacket:
2102
+ title: IlpPacket
2103
+ type: string
2104
+ pattern: ^[A-Za-z0-9-_]+[=]{0,2}$
2105
+ minLength: 1
2106
+ maxLength: 32768
2107
+ description: Information for recipient (transport layer information).
2108
+ example: >-
2109
+ AYIBgQAAAAAAAASwNGxldmVsb25lLmRmc3AxLm1lci45T2RTOF81MDdqUUZERmZlakgyOVc4bXFmNEpLMHlGTFGCAUBQU0svMS4wCk5vbmNlOiB1SXlweUYzY3pYSXBFdzVVc05TYWh3CkVuY3J5cHRpb246IG5vbmUKUGF5bWVudC1JZDogMTMyMzZhM2ItOGZhOC00MTYzLTg0NDctNGMzZWQzZGE5OGE3CgpDb250ZW50LUxlbmd0aDogMTM1CkNvbnRlbnQtVHlwZTogYXBwbGljYXRpb24vanNvbgpTZW5kZXItSWRlbnRpZmllcjogOTI4MDYzOTEKCiJ7XCJmZWVcIjowLFwidHJhbnNmZXJDb2RlXCI6XCJpbnZvaWNlXCIsXCJkZWJpdE5hbWVcIjpcImFsaWNlIGNvb3BlclwiLFwiY3JlZGl0TmFtZVwiOlwibWVyIGNoYW50XCIsXCJkZWJpdElkZW50aWZpZXJcIjpcIjkyODA2MzkxXCJ9IgA
2110
+ IlpCondition:
2111
+ title: IlpCondition
2112
+ type: string
2113
+ pattern: ^[A-Za-z0-9-_]{43}$
2114
+ maxLength: 48
2115
+ description: Condition that must be attached to the transfer by the Payer.
2099
2116
  ErrorCode:
2100
2117
  title: ErrorCode
2101
2118
  type: string
@@ -2134,6 +2151,64 @@ components:
2134
2151
  properties:
2135
2152
  errorInformation:
2136
2153
  $ref: '#/components/schemas/ErrorInformation'
2154
+ quoteError:
2155
+ type: object
2156
+ description: >-
2157
+ This object represents a Mojaloop API error received at any time during
2158
+ the quote process
2159
+ properties:
2160
+ httpStatusCode:
2161
+ type: integer
2162
+ description: >-
2163
+ The HTTP status code returned to the caller. This is the same as the
2164
+ actual HTTP status code returned with the response.
2165
+ mojaloopError:
2166
+ description: >-
2167
+ If a quote process results in an error callback during the
2168
+ asynchronous Mojaloop API exchange, this property will contain the
2169
+ underlying Mojaloop API error object.
2170
+ $ref: '#/components/schemas/mojaloopError'
2171
+ individualQuoteResult:
2172
+ type: object
2173
+ properties:
2174
+ quoteId:
2175
+ $ref: '#/components/schemas/CorrelationId'
2176
+ transferAmount:
2177
+ $ref: '#/components/schemas/Money'
2178
+ payeeReceiveAmount:
2179
+ $ref: '#/components/schemas/Money'
2180
+ payeeFspFee:
2181
+ $ref: '#/components/schemas/Money'
2182
+ payeeFspCommission:
2183
+ $ref: '#/components/schemas/Money'
2184
+ geoCode:
2185
+ $ref: '#/components/schemas/GeoCode'
2186
+ ilpPacket:
2187
+ $ref: '#/components/schemas/IlpPacket'
2188
+ condition:
2189
+ $ref: '#/components/schemas/IlpCondition'
2190
+ extensionList:
2191
+ $ref: '#/components/schemas/ExtensionList'
2192
+ description: Optional extension, specific to deployment.
2193
+ lastError:
2194
+ description: >
2195
+ Object representing the last error to occur during a quote process.
2196
+ This may be a Mojaloop API error returned from another entity in the
2197
+ scheme or an object representing other types of error e.g.
2198
+ exceptions that may occur inside the scheme adapter.
2199
+ $ref: '#/components/schemas/quoteError'
2200
+ required:
2201
+ - quoteId
2202
+ - transferAmount
2203
+ - ilpPacket
2204
+ - condition
2205
+ IlpFulfilment:
2206
+ title: IlpFulfilment
2207
+ type: string
2208
+ pattern: ^[A-Za-z0-9-_]{43}$
2209
+ maxLength: 48
2210
+ description: Fulfilment that must be attached to the transfer by the Payee.
2211
+ example: WLctttbu2HvTsa1XWvUoGRcQozHsqeu9Ahl2JW9Bsu8
2137
2212
  transferError:
2138
2213
  type: object
2139
2214
  description: >-
@@ -2151,6 +2226,23 @@ components:
2151
2226
  asynchronous Mojaloop API exchange, this property will contain the
2152
2227
  underlying Mojaloop API error object.
2153
2228
  $ref: '#/components/schemas/mojaloopError'
2229
+ individualTransferResult:
2230
+ type: object
2231
+ required:
2232
+ - transferId
2233
+ properties:
2234
+ transferId:
2235
+ $ref: '#/components/schemas/CorrelationId'
2236
+ fulfilment:
2237
+ $ref: '#/components/schemas/IlpFulfilment'
2238
+ description: >
2239
+ Fulfilment of the condition specified with the transaction.
2240
+ Mandatory if transfer has completed successfully.
2241
+ extensionList:
2242
+ $ref: '#/components/schemas/ExtensionList'
2243
+ description: Optional extension, specific to deployment.
2244
+ lastError:
2245
+ $ref: '#/components/schemas/transferError'
2154
2246
  bulkTransactionIndividualTransferResult:
2155
2247
  type: object
2156
2248
  required:
@@ -2181,9 +2273,9 @@ components:
2181
2273
  quoteId:
2182
2274
  $ref: '#/components/schemas/CorrelationId'
2183
2275
  quoteResponse:
2184
- type: object
2276
+ $ref: '#/components/schemas/individualQuoteResult'
2185
2277
  fulfil:
2186
- $ref: '#/components/schemas/TransfersIDPutResponse'
2278
+ $ref: '#/components/schemas/individualTransferResult'
2187
2279
  quoteExtensions:
2188
2280
  $ref: '#/components/schemas/ExtensionList'
2189
2281
  transferExtensions: