mollie-api-py 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl

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.
Files changed (41) hide show
  1. mollie/_hooks/mollie_hooks.py +16 -0
  2. mollie/_version.py +2 -2
  3. mollie/balance_transfers.py +8 -8
  4. mollie/balances.py +8 -8
  5. mollie/clients.py +8 -8
  6. mollie/invoices.py +8 -8
  7. mollie/methods.py +9 -9
  8. mollie/models/__init__.py +11 -2
  9. mollie/models/delete_profileop.py +7 -5
  10. mollie/models/delete_sales_invoiceop.py +7 -5
  11. mollie/models/delete_webhookop.py +7 -5
  12. mollie/models/entity_balance_transaction.py +3 -3
  13. mollie/models/get_balanceop.py +7 -5
  14. mollie/models/get_clientop.py +7 -5
  15. mollie/models/get_connect_balance_transferop.py +7 -5
  16. mollie/models/get_invoiceop.py +7 -5
  17. mollie/models/get_methodop.py +11 -6
  18. mollie/models/get_organizationop.py +7 -5
  19. mollie/models/get_profileop.py +7 -5
  20. mollie/models/get_sales_invoiceop.py +7 -5
  21. mollie/models/get_settlementop.py +7 -5
  22. mollie/models/get_webhook_eventop.py +7 -5
  23. mollie/models/get_webhookop.py +7 -5
  24. mollie/models/{method.py → method_enum.py} +1 -1
  25. mollie/models/method_id.py +50 -0
  26. mollie/models/payment_request.py +12 -20
  27. mollie/models/test_webhookop.py +7 -5
  28. mollie/models/update_paymentop.py +3 -3
  29. mollie/models/update_profileop.py +7 -5
  30. mollie/models/update_sales_invoiceop.py +7 -5
  31. mollie/models/update_webhookop.py +7 -5
  32. mollie/organizations.py +8 -8
  33. mollie/profiles.py +24 -24
  34. mollie/sales_invoices.py +24 -24
  35. mollie/settlements.py +8 -8
  36. mollie/webhook_events.py +8 -8
  37. mollie/webhooks.py +32 -32
  38. {mollie_api_py-1.0.0.dist-info → mollie_api_py-1.0.2.dist-info}/METADATA +1 -1
  39. {mollie_api_py-1.0.0.dist-info → mollie_api_py-1.0.2.dist-info}/RECORD +41 -40
  40. {mollie_api_py-1.0.0.dist-info → mollie_api_py-1.0.2.dist-info}/WHEEL +0 -0
  41. {mollie_api_py-1.0.0.dist-info → mollie_api_py-1.0.2.dist-info}/licenses/LICENSE.md +0 -0
mollie/profiles.py CHANGED
@@ -415,7 +415,7 @@ class Profiles(BaseSDK):
415
415
  def get(
416
416
  self,
417
417
  *,
418
- id: str,
418
+ profile_id: str,
419
419
  testmode: Optional[bool] = None,
420
420
  idempotency_key: Optional[str] = None,
421
421
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -427,7 +427,7 @@ class Profiles(BaseSDK):
427
427
 
428
428
  Retrieve a single profile by its ID.
429
429
 
430
- :param id: Provide the ID of the item you want to perform this operation on.
430
+ :param profile_id: Provide the ID of the related profile.
431
431
  :param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
432
432
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
433
433
  :param retries: Override the default retry configuration for this method
@@ -446,14 +446,14 @@ class Profiles(BaseSDK):
446
446
  base_url = self._get_url(base_url, url_variables)
447
447
 
448
448
  request = models.GetProfileRequest(
449
- id=id,
449
+ profile_id=profile_id,
450
450
  testmode=testmode,
451
451
  idempotency_key=idempotency_key,
452
452
  )
453
453
 
454
454
  req = self._build_request(
455
455
  method="GET",
456
- path="/profiles/{id}",
456
+ path="/profiles/{profileId}",
457
457
  base_url=base_url,
458
458
  url_variables=url_variables,
459
459
  request=request,
@@ -515,7 +515,7 @@ class Profiles(BaseSDK):
515
515
  async def get_async(
516
516
  self,
517
517
  *,
518
- id: str,
518
+ profile_id: str,
519
519
  testmode: Optional[bool] = None,
520
520
  idempotency_key: Optional[str] = None,
521
521
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -527,7 +527,7 @@ class Profiles(BaseSDK):
527
527
 
528
528
  Retrieve a single profile by its ID.
529
529
 
530
- :param id: Provide the ID of the item you want to perform this operation on.
530
+ :param profile_id: Provide the ID of the related profile.
531
531
  :param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
532
532
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
533
533
  :param retries: Override the default retry configuration for this method
@@ -546,14 +546,14 @@ class Profiles(BaseSDK):
546
546
  base_url = self._get_url(base_url, url_variables)
547
547
 
548
548
  request = models.GetProfileRequest(
549
- id=id,
549
+ profile_id=profile_id,
550
550
  testmode=testmode,
551
551
  idempotency_key=idempotency_key,
552
552
  )
553
553
 
554
554
  req = self._build_request_async(
555
555
  method="GET",
556
- path="/profiles/{id}",
556
+ path="/profiles/{profileId}",
557
557
  base_url=base_url,
558
558
  url_variables=url_variables,
559
559
  request=request,
@@ -615,7 +615,7 @@ class Profiles(BaseSDK):
615
615
  def update(
616
616
  self,
617
617
  *,
618
- id: str,
618
+ profile_id: str,
619
619
  request_body: Union[
620
620
  models.UpdateProfileRequestBody, models.UpdateProfileRequestBodyTypedDict
621
621
  ],
@@ -632,7 +632,7 @@ class Profiles(BaseSDK):
632
632
  Profiles are required for payment processing. Normally they are created and updated via the Mollie dashboard.
633
633
  Alternatively, you can use this endpoint to automate profile management.
634
634
 
635
- :param id: Provide the ID of the item you want to perform this operation on.
635
+ :param profile_id: Provide the ID of the related profile.
636
636
  :param request_body:
637
637
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
638
638
  :param retries: Override the default retry configuration for this method
@@ -651,7 +651,7 @@ class Profiles(BaseSDK):
651
651
  base_url = self._get_url(base_url, url_variables)
652
652
 
653
653
  request = models.UpdateProfileRequest(
654
- id=id,
654
+ profile_id=profile_id,
655
655
  idempotency_key=idempotency_key,
656
656
  request_body=utils.get_pydantic_model(
657
657
  request_body, models.UpdateProfileRequestBody
@@ -660,7 +660,7 @@ class Profiles(BaseSDK):
660
660
 
661
661
  req = self._build_request(
662
662
  method="PATCH",
663
- path="/profiles/{id}",
663
+ path="/profiles/{profileId}",
664
664
  base_url=base_url,
665
665
  url_variables=url_variables,
666
666
  request=request,
@@ -728,7 +728,7 @@ class Profiles(BaseSDK):
728
728
  async def update_async(
729
729
  self,
730
730
  *,
731
- id: str,
731
+ profile_id: str,
732
732
  request_body: Union[
733
733
  models.UpdateProfileRequestBody, models.UpdateProfileRequestBodyTypedDict
734
734
  ],
@@ -745,7 +745,7 @@ class Profiles(BaseSDK):
745
745
  Profiles are required for payment processing. Normally they are created and updated via the Mollie dashboard.
746
746
  Alternatively, you can use this endpoint to automate profile management.
747
747
 
748
- :param id: Provide the ID of the item you want to perform this operation on.
748
+ :param profile_id: Provide the ID of the related profile.
749
749
  :param request_body:
750
750
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
751
751
  :param retries: Override the default retry configuration for this method
@@ -764,7 +764,7 @@ class Profiles(BaseSDK):
764
764
  base_url = self._get_url(base_url, url_variables)
765
765
 
766
766
  request = models.UpdateProfileRequest(
767
- id=id,
767
+ profile_id=profile_id,
768
768
  idempotency_key=idempotency_key,
769
769
  request_body=utils.get_pydantic_model(
770
770
  request_body, models.UpdateProfileRequestBody
@@ -773,7 +773,7 @@ class Profiles(BaseSDK):
773
773
 
774
774
  req = self._build_request_async(
775
775
  method="PATCH",
776
- path="/profiles/{id}",
776
+ path="/profiles/{profileId}",
777
777
  base_url=base_url,
778
778
  url_variables=url_variables,
779
779
  request=request,
@@ -841,7 +841,7 @@ class Profiles(BaseSDK):
841
841
  def delete(
842
842
  self,
843
843
  *,
844
- id: str,
844
+ profile_id: str,
845
845
  idempotency_key: Optional[str] = None,
846
846
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
847
847
  server_url: Optional[str] = None,
@@ -852,7 +852,7 @@ class Profiles(BaseSDK):
852
852
 
853
853
  Delete a profile. A deleted profile and its related credentials can no longer be used for accepting payments.
854
854
 
855
- :param id: Provide the ID of the item you want to perform this operation on.
855
+ :param profile_id: Provide the ID of the related profile.
856
856
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
857
857
  :param retries: Override the default retry configuration for this method
858
858
  :param server_url: Override the default server URL for this method
@@ -870,13 +870,13 @@ class Profiles(BaseSDK):
870
870
  base_url = self._get_url(base_url, url_variables)
871
871
 
872
872
  request = models.DeleteProfileRequest(
873
- id=id,
873
+ profile_id=profile_id,
874
874
  idempotency_key=idempotency_key,
875
875
  )
876
876
 
877
877
  req = self._build_request(
878
878
  method="DELETE",
879
- path="/profiles/{id}",
879
+ path="/profiles/{profileId}",
880
880
  base_url=base_url,
881
881
  url_variables=url_variables,
882
882
  request=request,
@@ -935,7 +935,7 @@ class Profiles(BaseSDK):
935
935
  async def delete_async(
936
936
  self,
937
937
  *,
938
- id: str,
938
+ profile_id: str,
939
939
  idempotency_key: Optional[str] = None,
940
940
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
941
941
  server_url: Optional[str] = None,
@@ -946,7 +946,7 @@ class Profiles(BaseSDK):
946
946
 
947
947
  Delete a profile. A deleted profile and its related credentials can no longer be used for accepting payments.
948
948
 
949
- :param id: Provide the ID of the item you want to perform this operation on.
949
+ :param profile_id: Provide the ID of the related profile.
950
950
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
951
951
  :param retries: Override the default retry configuration for this method
952
952
  :param server_url: Override the default server URL for this method
@@ -964,13 +964,13 @@ class Profiles(BaseSDK):
964
964
  base_url = self._get_url(base_url, url_variables)
965
965
 
966
966
  request = models.DeleteProfileRequest(
967
- id=id,
967
+ profile_id=profile_id,
968
968
  idempotency_key=idempotency_key,
969
969
  )
970
970
 
971
971
  req = self._build_request_async(
972
972
  method="DELETE",
973
- path="/profiles/{id}",
973
+ path="/profiles/{profileId}",
974
974
  base_url=base_url,
975
975
  url_variables=url_variables,
976
976
  request=request,
mollie/sales_invoices.py CHANGED
@@ -449,7 +449,7 @@ class SalesInvoices(BaseSDK):
449
449
  def get(
450
450
  self,
451
451
  *,
452
- id: str,
452
+ sales_invoice_id: str,
453
453
  testmode: Optional[bool] = None,
454
454
  idempotency_key: Optional[str] = None,
455
455
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -465,7 +465,7 @@ class SalesInvoices(BaseSDK):
465
465
 
466
466
  Retrieve a single sales invoice by its ID.
467
467
 
468
- :param id: Provide the ID of the item you want to perform this operation on.
468
+ :param sales_invoice_id: Provide the ID of the related sales invoice.
469
469
  :param testmode: Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
470
470
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
471
471
  :param retries: Override the default retry configuration for this method
@@ -484,14 +484,14 @@ class SalesInvoices(BaseSDK):
484
484
  base_url = self._get_url(base_url, url_variables)
485
485
 
486
486
  request = models.GetSalesInvoiceRequest(
487
- id=id,
487
+ sales_invoice_id=sales_invoice_id,
488
488
  testmode=testmode,
489
489
  idempotency_key=idempotency_key,
490
490
  )
491
491
 
492
492
  req = self._build_request(
493
493
  method="GET",
494
- path="/sales-invoices/{id}",
494
+ path="/sales-invoices/{salesInvoiceId}",
495
495
  base_url=base_url,
496
496
  url_variables=url_variables,
497
497
  request=request,
@@ -553,7 +553,7 @@ class SalesInvoices(BaseSDK):
553
553
  async def get_async(
554
554
  self,
555
555
  *,
556
- id: str,
556
+ sales_invoice_id: str,
557
557
  testmode: Optional[bool] = None,
558
558
  idempotency_key: Optional[str] = None,
559
559
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -569,7 +569,7 @@ class SalesInvoices(BaseSDK):
569
569
 
570
570
  Retrieve a single sales invoice by its ID.
571
571
 
572
- :param id: Provide the ID of the item you want to perform this operation on.
572
+ :param sales_invoice_id: Provide the ID of the related sales invoice.
573
573
  :param testmode: Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
574
574
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
575
575
  :param retries: Override the default retry configuration for this method
@@ -588,14 +588,14 @@ class SalesInvoices(BaseSDK):
588
588
  base_url = self._get_url(base_url, url_variables)
589
589
 
590
590
  request = models.GetSalesInvoiceRequest(
591
- id=id,
591
+ sales_invoice_id=sales_invoice_id,
592
592
  testmode=testmode,
593
593
  idempotency_key=idempotency_key,
594
594
  )
595
595
 
596
596
  req = self._build_request_async(
597
597
  method="GET",
598
- path="/sales-invoices/{id}",
598
+ path="/sales-invoices/{salesInvoiceId}",
599
599
  base_url=base_url,
600
600
  url_variables=url_variables,
601
601
  request=request,
@@ -657,7 +657,7 @@ class SalesInvoices(BaseSDK):
657
657
  def update(
658
658
  self,
659
659
  *,
660
- id: str,
660
+ sales_invoice_id: str,
661
661
  idempotency_key: Optional[str] = None,
662
662
  update_values_sales_invoice: Optional[
663
663
  Union[
@@ -680,7 +680,7 @@ class SalesInvoices(BaseSDK):
680
680
  statuses `paid` and `issued` there are certain additional requirements (`paymentDetails` and `emailDetails`,
681
681
  respectively).
682
682
 
683
- :param id: Provide the ID of the item you want to perform this operation on.
683
+ :param sales_invoice_id: Provide the ID of the related sales invoice.
684
684
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
685
685
  :param update_values_sales_invoice:
686
686
  :param retries: Override the default retry configuration for this method
@@ -699,7 +699,7 @@ class SalesInvoices(BaseSDK):
699
699
  base_url = self._get_url(base_url, url_variables)
700
700
 
701
701
  request = models.UpdateSalesInvoiceRequest(
702
- id=id,
702
+ sales_invoice_id=sales_invoice_id,
703
703
  idempotency_key=idempotency_key,
704
704
  update_values_sales_invoice=utils.get_pydantic_model(
705
705
  update_values_sales_invoice, Optional[models.UpdateValuesSalesInvoice]
@@ -708,7 +708,7 @@ class SalesInvoices(BaseSDK):
708
708
 
709
709
  req = self._build_request(
710
710
  method="PATCH",
711
- path="/sales-invoices/{id}",
711
+ path="/sales-invoices/{salesInvoiceId}",
712
712
  base_url=base_url,
713
713
  url_variables=url_variables,
714
714
  request=request,
@@ -774,7 +774,7 @@ class SalesInvoices(BaseSDK):
774
774
  async def update_async(
775
775
  self,
776
776
  *,
777
- id: str,
777
+ sales_invoice_id: str,
778
778
  idempotency_key: Optional[str] = None,
779
779
  update_values_sales_invoice: Optional[
780
780
  Union[
@@ -797,7 +797,7 @@ class SalesInvoices(BaseSDK):
797
797
  statuses `paid` and `issued` there are certain additional requirements (`paymentDetails` and `emailDetails`,
798
798
  respectively).
799
799
 
800
- :param id: Provide the ID of the item you want to perform this operation on.
800
+ :param sales_invoice_id: Provide the ID of the related sales invoice.
801
801
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
802
802
  :param update_values_sales_invoice:
803
803
  :param retries: Override the default retry configuration for this method
@@ -816,7 +816,7 @@ class SalesInvoices(BaseSDK):
816
816
  base_url = self._get_url(base_url, url_variables)
817
817
 
818
818
  request = models.UpdateSalesInvoiceRequest(
819
- id=id,
819
+ sales_invoice_id=sales_invoice_id,
820
820
  idempotency_key=idempotency_key,
821
821
  update_values_sales_invoice=utils.get_pydantic_model(
822
822
  update_values_sales_invoice, Optional[models.UpdateValuesSalesInvoice]
@@ -825,7 +825,7 @@ class SalesInvoices(BaseSDK):
825
825
 
826
826
  req = self._build_request_async(
827
827
  method="PATCH",
828
- path="/sales-invoices/{id}",
828
+ path="/sales-invoices/{salesInvoiceId}",
829
829
  base_url=base_url,
830
830
  url_variables=url_variables,
831
831
  request=request,
@@ -891,7 +891,7 @@ class SalesInvoices(BaseSDK):
891
891
  def delete(
892
892
  self,
893
893
  *,
894
- id: str,
894
+ sales_invoice_id: str,
895
895
  idempotency_key: Optional[str] = None,
896
896
  delete_values_sales_invoice: Optional[
897
897
  Union[
@@ -913,7 +913,7 @@ class SalesInvoices(BaseSDK):
913
913
  Sales invoices which are in status `draft` can be deleted. For all other statuses, please use the
914
914
  [Update sales invoice](update-sales-invoice) endpoint instead.
915
915
 
916
- :param id: Provide the ID of the item you want to perform this operation on.
916
+ :param sales_invoice_id: Provide the ID of the related sales invoice.
917
917
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
918
918
  :param delete_values_sales_invoice:
919
919
  :param retries: Override the default retry configuration for this method
@@ -932,7 +932,7 @@ class SalesInvoices(BaseSDK):
932
932
  base_url = self._get_url(base_url, url_variables)
933
933
 
934
934
  request = models.DeleteSalesInvoiceRequest(
935
- id=id,
935
+ sales_invoice_id=sales_invoice_id,
936
936
  idempotency_key=idempotency_key,
937
937
  delete_values_sales_invoice=utils.get_pydantic_model(
938
938
  delete_values_sales_invoice, Optional[models.DeleteValuesSalesInvoice]
@@ -941,7 +941,7 @@ class SalesInvoices(BaseSDK):
941
941
 
942
942
  req = self._build_request(
943
943
  method="DELETE",
944
- path="/sales-invoices/{id}",
944
+ path="/sales-invoices/{salesInvoiceId}",
945
945
  base_url=base_url,
946
946
  url_variables=url_variables,
947
947
  request=request,
@@ -1007,7 +1007,7 @@ class SalesInvoices(BaseSDK):
1007
1007
  async def delete_async(
1008
1008
  self,
1009
1009
  *,
1010
- id: str,
1010
+ sales_invoice_id: str,
1011
1011
  idempotency_key: Optional[str] = None,
1012
1012
  delete_values_sales_invoice: Optional[
1013
1013
  Union[
@@ -1029,7 +1029,7 @@ class SalesInvoices(BaseSDK):
1029
1029
  Sales invoices which are in status `draft` can be deleted. For all other statuses, please use the
1030
1030
  [Update sales invoice](update-sales-invoice) endpoint instead.
1031
1031
 
1032
- :param id: Provide the ID of the item you want to perform this operation on.
1032
+ :param sales_invoice_id: Provide the ID of the related sales invoice.
1033
1033
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
1034
1034
  :param delete_values_sales_invoice:
1035
1035
  :param retries: Override the default retry configuration for this method
@@ -1048,7 +1048,7 @@ class SalesInvoices(BaseSDK):
1048
1048
  base_url = self._get_url(base_url, url_variables)
1049
1049
 
1050
1050
  request = models.DeleteSalesInvoiceRequest(
1051
- id=id,
1051
+ sales_invoice_id=sales_invoice_id,
1052
1052
  idempotency_key=idempotency_key,
1053
1053
  delete_values_sales_invoice=utils.get_pydantic_model(
1054
1054
  delete_values_sales_invoice, Optional[models.DeleteValuesSalesInvoice]
@@ -1057,7 +1057,7 @@ class SalesInvoices(BaseSDK):
1057
1057
 
1058
1058
  req = self._build_request_async(
1059
1059
  method="DELETE",
1060
- path="/sales-invoices/{id}",
1060
+ path="/sales-invoices/{salesInvoiceId}",
1061
1061
  base_url=base_url,
1062
1062
  url_variables=url_variables,
1063
1063
  request=request,
mollie/settlements.py CHANGED
@@ -235,7 +235,7 @@ class Settlements(BaseSDK):
235
235
  def get(
236
236
  self,
237
237
  *,
238
- id: str,
238
+ settlement_id: str,
239
239
  idempotency_key: Optional[str] = None,
240
240
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
241
241
  server_url: Optional[str] = None,
@@ -257,7 +257,7 @@ class Settlements(BaseSDK):
257
257
  For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
258
258
  [balance transactions](list-balance-transactions) endpoint.
259
259
 
260
- :param id: Provide the ID of the item you want to perform this operation on.
260
+ :param settlement_id: Provide the ID of the related settlement.
261
261
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
262
262
  :param retries: Override the default retry configuration for this method
263
263
  :param server_url: Override the default server URL for this method
@@ -275,13 +275,13 @@ class Settlements(BaseSDK):
275
275
  base_url = self._get_url(base_url, url_variables)
276
276
 
277
277
  request = models.GetSettlementRequest(
278
- id=id,
278
+ settlement_id=settlement_id,
279
279
  idempotency_key=idempotency_key,
280
280
  )
281
281
 
282
282
  req = self._build_request(
283
283
  method="GET",
284
- path="/settlements/{id}",
284
+ path="/settlements/{settlementId}",
285
285
  base_url=base_url,
286
286
  url_variables=url_variables,
287
287
  request=request,
@@ -340,7 +340,7 @@ class Settlements(BaseSDK):
340
340
  async def get_async(
341
341
  self,
342
342
  *,
343
- id: str,
343
+ settlement_id: str,
344
344
  idempotency_key: Optional[str] = None,
345
345
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
346
346
  server_url: Optional[str] = None,
@@ -362,7 +362,7 @@ class Settlements(BaseSDK):
362
362
  For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
363
363
  [balance transactions](list-balance-transactions) endpoint.
364
364
 
365
- :param id: Provide the ID of the item you want to perform this operation on.
365
+ :param settlement_id: Provide the ID of the related settlement.
366
366
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
367
367
  :param retries: Override the default retry configuration for this method
368
368
  :param server_url: Override the default server URL for this method
@@ -380,13 +380,13 @@ class Settlements(BaseSDK):
380
380
  base_url = self._get_url(base_url, url_variables)
381
381
 
382
382
  request = models.GetSettlementRequest(
383
- id=id,
383
+ settlement_id=settlement_id,
384
384
  idempotency_key=idempotency_key,
385
385
  )
386
386
 
387
387
  req = self._build_request_async(
388
388
  method="GET",
389
- path="/settlements/{id}",
389
+ path="/settlements/{settlementId}",
390
390
  base_url=base_url,
391
391
  url_variables=url_variables,
392
392
  request=request,
mollie/webhook_events.py CHANGED
@@ -13,7 +13,7 @@ class WebhookEvents(BaseSDK):
13
13
  def get(
14
14
  self,
15
15
  *,
16
- id: str,
16
+ webhook_event_id: str,
17
17
  testmode: Optional[bool] = None,
18
18
  idempotency_key: Optional[str] = None,
19
19
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -25,7 +25,7 @@ class WebhookEvents(BaseSDK):
25
25
 
26
26
  Retrieve a single webhook event object by its event ID.
27
27
 
28
- :param id: Provide the ID of the item you want to perform this operation on.
28
+ :param webhook_event_id: Provide the ID of the related webhook event.
29
29
  :param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
30
30
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
31
31
  :param retries: Override the default retry configuration for this method
@@ -44,14 +44,14 @@ class WebhookEvents(BaseSDK):
44
44
  base_url = self._get_url(base_url, url_variables)
45
45
 
46
46
  request = models.GetWebhookEventRequest(
47
- id=id,
47
+ webhook_event_id=webhook_event_id,
48
48
  testmode=testmode,
49
49
  idempotency_key=idempotency_key,
50
50
  )
51
51
 
52
52
  req = self._build_request(
53
53
  method="GET",
54
- path="/events/{id}",
54
+ path="/events/{webhookEventId}",
55
55
  base_url=base_url,
56
56
  url_variables=url_variables,
57
57
  request=request,
@@ -113,7 +113,7 @@ class WebhookEvents(BaseSDK):
113
113
  async def get_async(
114
114
  self,
115
115
  *,
116
- id: str,
116
+ webhook_event_id: str,
117
117
  testmode: Optional[bool] = None,
118
118
  idempotency_key: Optional[str] = None,
119
119
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -125,7 +125,7 @@ class WebhookEvents(BaseSDK):
125
125
 
126
126
  Retrieve a single webhook event object by its event ID.
127
127
 
128
- :param id: Provide the ID of the item you want to perform this operation on.
128
+ :param webhook_event_id: Provide the ID of the related webhook event.
129
129
  :param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
130
130
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
131
131
  :param retries: Override the default retry configuration for this method
@@ -144,14 +144,14 @@ class WebhookEvents(BaseSDK):
144
144
  base_url = self._get_url(base_url, url_variables)
145
145
 
146
146
  request = models.GetWebhookEventRequest(
147
- id=id,
147
+ webhook_event_id=webhook_event_id,
148
148
  testmode=testmode,
149
149
  idempotency_key=idempotency_key,
150
150
  )
151
151
 
152
152
  req = self._build_request_async(
153
153
  method="GET",
154
- path="/events/{id}",
154
+ path="/events/{webhookEventId}",
155
155
  base_url=base_url,
156
156
  url_variables=url_variables,
157
157
  request=request,