@@ -124,6 +124,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
124
124
125
125
``` python
126
126
# Synchronous Example
127
+ from datetime import date
127
128
import mollie
128
129
from mollie import ClientSDK
129
130
import os
@@ -357,6 +358,18 @@ with ClientSDK(
357
358
" profile_id" : " pfl_5B8cwPMGnU" ,
358
359
" due_date" : " 2025-01-01" ,
359
360
" testmode" : False ,
361
+ " apple_pay_payment_token" : " {\" paymentData\" : {\" version\" : \" EC_v1\" , \" data\" : \" vK3BbrCbI/....\" }}" ,
362
+ " company" : {
363
+ " registration_number" : " 12345678" ,
364
+ " vat_number" : " NL123456789B01" ,
365
+ },
366
+ " card_token" : " tkn_12345" ,
367
+ " voucher_number" : " 1234567890" ,
368
+ " voucher_pin" : " 1234" ,
369
+ " consumer_date_of_birth" : date.fromisoformat(" 2000-01-01" ),
370
+ " digital_goods" : True ,
371
+ " customer_reference" : " 1234567890" ,
372
+ " terminal_id" : " term_1234567890" ,
360
373
})
361
374
362
375
# Handle response
@@ -369,6 +382,7 @@ The same SDK client can also be used to make asynchronous requests by importing
369
382
``` python
370
383
# Asynchronous Example
371
384
import asyncio
385
+ from datetime import date
372
386
import mollie
373
387
from mollie import ClientSDK
374
388
import os
@@ -603,6 +617,18 @@ async def main():
603
617
" profile_id" : " pfl_5B8cwPMGnU" ,
604
618
" due_date" : " 2025-01-01" ,
605
619
" testmode" : False ,
620
+ " apple_pay_payment_token" : " {\" paymentData\" : {\" version\" : \" EC_v1\" , \" data\" : \" vK3BbrCbI/....\" }}" ,
621
+ " company" : {
622
+ " registration_number" : " 12345678" ,
623
+ " vat_number" : " NL123456789B01" ,
624
+ },
625
+ " card_token" : " tkn_12345" ,
626
+ " voucher_number" : " 1234567890" ,
627
+ " voucher_pin" : " 1234" ,
628
+ " consumer_date_of_birth" : date.fromisoformat(" 2000-01-01" ),
629
+ " digital_goods" : True ,
630
+ " customer_reference" : " 1234567890" ,
631
+ " terminal_id" : " term_1234567890" ,
606
632
})
607
633
608
634
# Handle response
@@ -626,6 +652,7 @@ This SDK supports the following security schemes globally:
626
652
627
653
You can set the security parameters through the ` security ` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
628
654
``` python
655
+ from datetime import date
629
656
import mollie
630
657
from mollie import ClientSDK
631
658
import os
@@ -859,6 +886,18 @@ with ClientSDK(
859
886
" profile_id" : " pfl_5B8cwPMGnU" ,
860
887
" due_date" : " 2025-01-01" ,
861
888
" testmode" : False ,
889
+ " apple_pay_payment_token" : " {\" paymentData\" : {\" version\" : \" EC_v1\" , \" data\" : \" vK3BbrCbI/....\" }}" ,
890
+ " company" : {
891
+ " registration_number" : " 12345678" ,
892
+ " vat_number" : " NL123456789B01" ,
893
+ },
894
+ " card_token" : " tkn_12345" ,
895
+ " voucher_number" : " 1234567890" ,
896
+ " voucher_pin" : " 1234" ,
897
+ " consumer_date_of_birth" : date.fromisoformat(" 2000-01-01" ),
898
+ " digital_goods" : True ,
899
+ " customer_reference" : " 1234567890" ,
900
+ " terminal_id" : " term_1234567890" ,
862
901
})
863
902
864
903
# Handle response
@@ -1052,6 +1091,7 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
1052
1091
1053
1092
To change the default retry strategy for a single API call, simply provide a ` RetryConfig ` object to the call:
1054
1093
``` python
1094
+ from datetime import date
1055
1095
import mollie
1056
1096
from mollie import ClientSDK
1057
1097
from mollie.utils import BackoffStrategy, RetryConfig
@@ -1286,6 +1326,18 @@ with ClientSDK(
1286
1326
" profile_id" : " pfl_5B8cwPMGnU" ,
1287
1327
" due_date" : " 2025-01-01" ,
1288
1328
" testmode" : False ,
1329
+ " apple_pay_payment_token" : " {\" paymentData\" : {\" version\" : \" EC_v1\" , \" data\" : \" vK3BbrCbI/....\" }}" ,
1330
+ " company" : {
1331
+ " registration_number" : " 12345678" ,
1332
+ " vat_number" : " NL123456789B01" ,
1333
+ },
1334
+ " card_token" : " tkn_12345" ,
1335
+ " voucher_number" : " 1234567890" ,
1336
+ " voucher_pin" : " 1234" ,
1337
+ " consumer_date_of_birth" : date.fromisoformat(" 2000-01-01" ),
1338
+ " digital_goods" : True ,
1339
+ " customer_reference" : " 1234567890" ,
1340
+ " terminal_id" : " term_1234567890" ,
1289
1341
},
1290
1342
RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ))
1291
1343
@@ -1296,6 +1348,7 @@ with ClientSDK(
1296
1348
1297
1349
If you'd like to override the default retry strategy for all operations that support retries, you can use the ` retry_config ` optional parameter when initializing the SDK:
1298
1350
``` python
1351
+ from datetime import date
1299
1352
import mollie
1300
1353
from mollie import ClientSDK
1301
1354
from mollie.utils import BackoffStrategy, RetryConfig
@@ -1531,6 +1584,18 @@ with ClientSDK(
1531
1584
" profile_id" : " pfl_5B8cwPMGnU" ,
1532
1585
" due_date" : " 2025-01-01" ,
1533
1586
" testmode" : False ,
1587
+ " apple_pay_payment_token" : " {\" paymentData\" : {\" version\" : \" EC_v1\" , \" data\" : \" vK3BbrCbI/....\" }}" ,
1588
+ " company" : {
1589
+ " registration_number" : " 12345678" ,
1590
+ " vat_number" : " NL123456789B01" ,
1591
+ },
1592
+ " card_token" : " tkn_12345" ,
1593
+ " voucher_number" : " 1234567890" ,
1594
+ " voucher_pin" : " 1234" ,
1595
+ " consumer_date_of_birth" : date.fromisoformat(" 2000-01-01" ),
1596
+ " digital_goods" : True ,
1597
+ " customer_reference" : " 1234567890" ,
1598
+ " terminal_id" : " term_1234567890" ,
1534
1599
})
1535
1600
1536
1601
# Handle response
@@ -1555,6 +1620,7 @@ with ClientSDK(
1555
1620
1556
1621
### Example
1557
1622
``` python
1623
+ from datetime import date
1558
1624
import mollie
1559
1625
from mollie import ClientSDK, models
1560
1626
import os
@@ -1790,6 +1856,18 @@ with ClientSDK(
1790
1856
" profile_id" : " pfl_5B8cwPMGnU" ,
1791
1857
" due_date" : " 2025-01-01" ,
1792
1858
" testmode" : False ,
1859
+ " apple_pay_payment_token" : " {\" paymentData\" : {\" version\" : \" EC_v1\" , \" data\" : \" vK3BbrCbI/....\" }}" ,
1860
+ " company" : {
1861
+ " registration_number" : " 12345678" ,
1862
+ " vat_number" : " NL123456789B01" ,
1863
+ },
1864
+ " card_token" : " tkn_12345" ,
1865
+ " voucher_number" : " 1234567890" ,
1866
+ " voucher_pin" : " 1234" ,
1867
+ " consumer_date_of_birth" : date.fromisoformat(" 2000-01-01" ),
1868
+ " digital_goods" : True ,
1869
+ " customer_reference" : " 1234567890" ,
1870
+ " terminal_id" : " term_1234567890" ,
1793
1871
})
1794
1872
1795
1873
# Handle response
@@ -1968,6 +2046,7 @@ with ClientSDK(
1968
2046
1969
2047
The default server can be overridden globally by passing a URL to the ` server_url: str ` optional parameter when initializing the SDK client instance. For example:
1970
2048
``` python
2049
+ from datetime import date
1971
2050
import mollie
1972
2051
from mollie import ClientSDK
1973
2052
import os
@@ -2202,6 +2281,18 @@ with ClientSDK(
2202
2281
" profile_id" : " pfl_5B8cwPMGnU" ,
2203
2282
" due_date" : " 2025-01-01" ,
2204
2283
" testmode" : False ,
2284
+ " apple_pay_payment_token" : " {\" paymentData\" : {\" version\" : \" EC_v1\" , \" data\" : \" vK3BbrCbI/....\" }}" ,
2285
+ " company" : {
2286
+ " registration_number" : " 12345678" ,
2287
+ " vat_number" : " NL123456789B01" ,
2288
+ },
2289
+ " card_token" : " tkn_12345" ,
2290
+ " voucher_number" : " 1234567890" ,
2291
+ " voucher_pin" : " 1234" ,
2292
+ " consumer_date_of_birth" : date.fromisoformat(" 2000-01-01" ),
2293
+ " digital_goods" : True ,
2294
+ " customer_reference" : " 1234567890" ,
2295
+ " terminal_id" : " term_1234567890" ,
2205
2296
})
2206
2297
2207
2298
# Handle response
0 commit comments