Skip to content

Commit d165ee8

Browse files
committed
use one quote id only
1 parent ee0dfbf commit d165ee8

File tree

1 file changed

+104
-1
lines changed

1 file changed

+104
-1
lines changed

wise_banking_api_client/test/responses/readme-iban-transfer.yaml

+104-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ responses:
6161
fee","value":{"amount":26.09,"currency":"GBP","label":"26.09 GBP"}}],"priceDecisionReferenceId":"50c27bfe-7ce7-40bd-6411-fdb9e1aa841f"},"fee":{"transferwise":3.8,"payIn":22.29,"discount":0,"total":26.09,"priceSetId":384,"partner":0.0}},{"formattedEstimatedDelivery":"by
6262
Monday","estimatedDeliveryDelays":[],"allowedProfileTypes":["PERSONAL","BUSINESS"],"payInProduct":"BALANCE","feePercentage":0.0037,"estimatedDelivery":"2025-01-06T12:15:00Z","sourceAmount":1000.00,"targetAmount":1200.67,"disabled":false,"sourceCurrency":"GBP","targetCurrency":"EUR","payOut":"BANK_TRANSFER","payIn":"BALANCE","price":{"priceSetId":381,"total":{"type":"TOTAL","label":"Total
6363
fees","value":{"amount":3.69,"currency":"GBP","label":"3.69 GBP"}},"items":[{"type":"TRANSFERWISE","label":"Our
64-
fee","value":{"amount":3.69,"currency":"GBP","label":"3.69 GBP"}}],"priceDecisionReferenceId":"50c27bfe-7ce7-40bd-6411-fdb9e1aa841f"},"fee":{"transferwise":3.69,"payIn":0.0,"discount":0,"total":3.69,"priceSetId":381,"partner":0.0}}],"notices":[],"transferFlowConfig":{"highAmount":{"showFeePercentage":false,"trackAsHighAmountSender":false,"showEducationStep":false,"offerPrefundingOption":false,"overLimitThroughCs":false,"overLimitThroughWiseAccount":false}},"rateTimestamp":"2025-01-04T09:20:44Z","clientId":"transferwise-personal-tokens","expirationTime":"2025-01-04T09:51:54Z","id":"866e7a5e-68b2-48ca-9474-ab1db56d654f","type":"REGULAR","status":"PENDING","profile":28577319,"rate":1.20512,"sourceCurrency":"GBP","targetCurrency":"EUR","createdTime":"2025-01-04T09:21:54Z","user":12970746,"rateType":"FIXED","rateExpirationTime":"2025-01-06T23:59:59Z","payOut":"BANK_TRANSFER","guaranteedTargetAmount":false,"providedAmountType":"SOURCE","payInCountry":"ES","funding":"POST"}'
64+
fee","value":{"amount":3.69,"currency":"GBP","label":"3.69 GBP"}}],"priceDecisionReferenceId":"50c27bfe-7ce7-40bd-6411-fdb9e1aa841f"},"fee":{"transferwise":3.69,"payIn":0.0,"discount":0,"total":3.69,"priceSetId":381,"partner":0.0}}],"notices":[],"transferFlowConfig":{"highAmount":{"showFeePercentage":false,"trackAsHighAmountSender":false,"showEducationStep":false,"offerPrefundingOption":false,"overLimitThroughCs":false,"overLimitThroughWiseAccount":false}},"rateTimestamp":"2025-01-04T09:20:44Z","clientId":"transferwise-personal-tokens","expirationTime":"2025-01-04T09:51:54Z","id":"f8301dde-cdb4-46c0-b944-3a07c7807d47","type":"REGULAR","status":"PENDING","profile":28577319,"rate":1.20512,"sourceCurrency":"GBP","targetCurrency":"EUR","createdTime":"2025-01-04T09:21:54Z","user":12970746,"rateType":"FIXED","rateExpirationTime":"2025-01-06T23:59:59Z","payOut":"BANK_TRANSFER","guaranteedTargetAmount":false,"providedAmountType":"SOURCE","payInCountry":"ES","funding":"POST"}'
6565
content_type: text/plain
6666
headers:
6767
CF-Cache-Status: DYNAMIC
@@ -85,3 +85,106 @@ responses:
8585
method: POST
8686
status: 200
8787
url: https://api.sandbox.transferwise.tech/v3/profiles/28577319/quotes
88+
- response:
89+
auto_calculate_content_length: false
90+
body: "[{\"type\":\"iban\",\"title\":\"Inside Europe\",\"usageInfo\":null,\"fields\"\
91+
:[{\"name\":\"Recipient type\",\"group\":[{\"key\":\"legalType\",\"name\":\"\
92+
Recipient type\",\"type\":\"select\",\"refreshRequirementsOnChange\":true,\"\
93+
required\":true,\"displayFormat\":null,\"example\":\"\",\"minLength\":null,\"\
94+
maxLength\":null,\"validationRegexp\":null,\"validationAsync\":null,\"valuesAllowed\"\
95+
:[{\"key\":\"PRIVATE\",\"name\":\"Person\"},{\"key\":\"BUSINESS\",\"name\":\"\
96+
Business\"}]}]},{\"name\":\"Email (Optional)\",\"group\":[{\"key\":\"email\"\
97+
,\"name\":\"Email (Optional)\",\"type\":\"text\",\"refreshRequirementsOnChange\"\
98+
:false,\"required\":false,\"displayFormat\":null,\"example\":\"example@example.ex\"\
99+
,\"minLength\":null,\"maxLength\":255,\"validationRegexp\":\"\\\\s*[a-zA-Z0-9.!#$%&'*+\\\
100+
\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\\
101+
\\s*\",\"validationAsync\":null,\"valuesAllowed\":null}]},{\"name\":\"Full name\
102+
\ of the account holder\",\"group\":[{\"key\":\"accountHolderName\",\"name\"\
103+
:\"Full name of the account holder\",\"type\":\"text\",\"refreshRequirementsOnChange\"\
104+
:false,\"required\":true,\"displayFormat\":null,\"example\":\"\",\"minLength\"\
105+
:2,\"maxLength\":140,\"validationRegexp\":\"^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8\
106+
-\xFF-_()'*,.%#^@&{}~<>+$\\\"\\\\[\\\\]\\\\\\\\ ]+$\",\"validationAsync\":null,\"\
107+
valuesAllowed\":null}]},{\"name\":\"Bank code (BIC/SWIFT)\",\"group\":[{\"key\"\
108+
:\"BIC\",\"name\":\"Bank code (BIC/SWIFT)\",\"type\":\"text\",\"refreshRequirementsOnChange\"\
109+
:false,\"required\":false,\"displayFormat\":null,\"example\":\"BARCGB22XXX\"\
110+
,\"minLength\":8,\"maxLength\":11,\"validationRegexp\":\"^[A-Za-z]{6}[A-Za-z\\\
111+
\\d]{2}([A-Za-z\\\\d]{3})?$\",\"validationAsync\":null,\"valuesAllowed\":null}]},{\"\
112+
name\":\"IBAN\",\"group\":[{\"key\":\"IBAN\",\"name\":\"IBAN\",\"type\":\"text\"\
113+
,\"refreshRequirementsOnChange\":true,\"required\":true,\"displayFormat\":\"\
114+
**** **** **** **** **** **** **** ****\",\"example\":\"DE12345678901234567890\"\
115+
,\"minLength\":14,\"maxLength\":42,\"validationRegexp\":\"^[a-zA-Z]{2}[a-zA-Z0-9\
116+
\ ]{12,40}$\",\"validationAsync\":null,\"valuesAllowed\":null}]}]},{\"type\"\
117+
:\"swift_code\",\"title\":\"Outside Europe\",\"usageInfo\":null,\"fields\":[{\"\
118+
name\":\"Recipient type\",\"group\":[{\"key\":\"legalType\",\"name\":\"Recipient\
119+
\ type\",\"type\":\"select\",\"refreshRequirementsOnChange\":true,\"required\"\
120+
:true,\"displayFormat\":null,\"example\":\"\",\"minLength\":null,\"maxLength\"\
121+
:null,\"validationRegexp\":null,\"validationAsync\":null,\"valuesAllowed\":[{\"\
122+
key\":\"PRIVATE\",\"name\":\"Person\"},{\"key\":\"BUSINESS\",\"name\":\"Business\"\
123+
}]}]},{\"name\":\"Email (Optional)\",\"group\":[{\"key\":\"email\",\"name\"\
124+
:\"Email (Optional)\",\"type\":\"text\",\"refreshRequirementsOnChange\":false,\"\
125+
required\":false,\"displayFormat\":null,\"example\":\"example@example.ex\",\"\
126+
minLength\":null,\"maxLength\":255,\"validationRegexp\":\"\\\\s*[a-zA-Z0-9.!#$%&'*+\\\
127+
\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\\
128+
\\s*\",\"validationAsync\":null,\"valuesAllowed\":null}]},{\"name\":\"Full name\
129+
\ of the account holder\",\"group\":[{\"key\":\"accountHolderName\",\"name\"\
130+
:\"Full name of the account holder\",\"type\":\"text\",\"refreshRequirementsOnChange\"\
131+
:false,\"required\":true,\"displayFormat\":null,\"example\":\"\",\"minLength\"\
132+
:2,\"maxLength\":140,\"validationRegexp\":\"^[0-9A-Za-z\xC0-\xD6\xD8-\xF6\xF8\
133+
-\xFF-_()'*,.%#^@&{}~<>+$\\\"\\\\[\\\\]\\\\\\\\ ]+$\",\"validationAsync\":null,\"\
134+
valuesAllowed\":null}]},{\"name\":\"SWIFT / BIC code\",\"group\":[{\"key\":\"\
135+
swiftCode\",\"name\":\"SWIFT / BIC code\",\"type\":\"text\",\"refreshRequirementsOnChange\"\
136+
:true,\"required\":true,\"displayFormat\":null,\"example\":\"BUKBGB22\",\"minLength\"\
137+
:8,\"maxLength\":11,\"validationRegexp\":\"^[a-zA-Z]{6}(([a-zA-Z0-9]{2})|([a-zA-Z0-9]{5}))$\"\
138+
,\"validationAsync\":null,\"valuesAllowed\":null}]},{\"name\":\"IBAN / Account\
139+
\ number\",\"group\":[{\"key\":\"accountNumber\",\"name\":\"IBAN / Account number\"\
140+
,\"type\":\"text\",\"refreshRequirementsOnChange\":false,\"required\":true,\"\
141+
displayFormat\":null,\"example\":\"\",\"minLength\":4,\"maxLength\":34,\"validationRegexp\"\
142+
:\"^[a-zA-Z0-9\\\\s]{4,34}$\",\"validationAsync\":null,\"valuesAllowed\":null}]}]},{\"\
143+
type\":\"email\",\"title\":\"Email\",\"usageInfo\":null,\"fields\":[{\"name\"\
144+
:\"Email (Optional)\",\"group\":[{\"key\":\"email\",\"name\":\"Email (Optional)\"\
145+
,\"type\":\"text\",\"refreshRequirementsOnChange\":false,\"required\":true,\"\
146+
displayFormat\":null,\"example\":\"example@example.ex\",\"minLength\":null,\"\
147+
maxLength\":255,\"validationRegexp\":\"\\\\s*[a-zA-Z0-9.!#$%&'*+\\\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\
148+
\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\\\s*\",\"validationAsync\"\
149+
:null,\"valuesAllowed\":null}]},{\"name\":\"Full name of the account holder\"\
150+
,\"group\":[{\"key\":\"accountHolderName\",\"name\":\"Full name of the account\
151+
\ holder\",\"type\":\"text\",\"refreshRequirementsOnChange\":false,\"required\"\
152+
:true,\"displayFormat\":null,\"example\":\"\",\"minLength\":2,\"maxLength\"\
153+
:255,\"validationRegexp\":null,\"validationAsync\":null,\"valuesAllowed\":null}]},{\"\
154+
name\":\"Recipient's preferred language\",\"group\":[{\"key\":\"language\",\"\
155+
name\":\"Recipient's preferred language\",\"type\":\"select\",\"refreshRequirementsOnChange\"\
156+
:false,\"required\":false,\"displayFormat\":null,\"example\":\"\",\"minLength\"\
157+
:null,\"maxLength\":null,\"validationRegexp\":null,\"validationAsync\":null,\"\
158+
valuesAllowed\":[{\"key\":\"cs\",\"name\":\"Czech\"},{\"key\":\"de\",\"name\"\
159+
:\"German\"},{\"key\":\"en\",\"name\":\"English\"},{\"key\":\"es\",\"name\"\
160+
:\"Spanish\"},{\"key\":\"fr\",\"name\":\"French\"},{\"key\":\"hu\",\"name\"\
161+
:\"Hungarian\"},{\"key\":\"id\",\"name\":\"Indonesian\"},{\"key\":\"it\",\"\
162+
name\":\"Italian\"},{\"key\":\"ja\",\"name\":\"Japanese\"},{\"key\":\"nl\",\"\
163+
name\":\"Dutch\"},{\"key\":\"pt\",\"name\":\"Portuguese\"},{\"key\":\"pl\",\"\
164+
name\":\"Polish\"},{\"key\":\"ru\",\"name\":\"Russian\"},{\"key\":\"ro\",\"\
165+
name\":\"Romanian\"},{\"key\":\"tr\",\"name\":\"Turkish\"},{\"key\":\"zh\",\"\
166+
name\":\"Chinese\"}]}]}]}]"
167+
content_type: text/plain; charset=utf-8
168+
headers:
169+
CF-Cache-Status: DYNAMIC
170+
CF-RAY: 8fca29e1983eecfb-LHR
171+
Set-Cookie: __cf_bm=dP9924IJWhdXLGmR8EfZznOjzy8M56ipittkvtpPYOQ-1735982541-1.0.1.1-0JItpbPqbch1DPK1wzEyvTdg4KnwwtOIULFk0Ofxe8P8jRMGhX6so2lXAg8RpEclvBwUiomC6mVbHm2s8eAmtw;
172+
path=/; expires=Sat, 04-Jan-25 09:52:21 GMT; domain=.transferwise.tech; HttpOnly;
173+
Secure; SameSite=None
174+
Transfer-Encoding: chunked
175+
access-control-allow-origin: '*'
176+
alt-svc: h3=":443"; ma=86400
177+
cache-control: no-cache, no-store, max-age=0, must-revalidate
178+
179+
expires: '0'
180+
pragma: no-cache
181+
vary: origin,access-control-request-method,access-control-request-headers,accept-encoding
182+
x-content-type-options: nosniff
183+
x-envoy-attempt-count: '1'
184+
x-envoy-upstream-service-time: '303'
185+
x-frame-options: DENY
186+
x-trace-id: bacfe2b2b143fa34
187+
x-xss-protection: '0'
188+
method: GET
189+
status: 200
190+
url: https://api.sandbox.transferwise.tech/v1/quotes/f8301dde-cdb4-46c0-b944-3a07c7807d47/account-requirements

0 commit comments

Comments
 (0)