budgea_client 5.3.8 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +11 -10
  3. data/README.md +14 -4
  4. data/budgea_openapi.json +329 -27
  5. data/config.json +1 -1
  6. data/docs/AuthenticationApi.md +62 -0
  7. data/docs/Connector.md +1 -0
  8. data/docs/ConnectorSource.md +7 -0
  9. data/docs/Field.md +2 -1
  10. data/docs/InlineResponse2005.md +1 -3
  11. data/docs/PFMApi.md +9 -12
  12. data/docs/Payment.md +15 -0
  13. data/docs/PaymentBeneficiary.md +13 -0
  14. data/docs/PaymentBeneficiaryRequest.md +12 -0
  15. data/docs/PaymentData.md +13 -0
  16. data/docs/PaymentErrorCode.md +7 -0
  17. data/docs/PaymentInstruction.md +12 -0
  18. data/docs/PaymentInstructionRequest.md +13 -0
  19. data/docs/PaymentRequest.md +13 -0
  20. data/docs/PaymentState.md +7 -0
  21. data/docs/PaymentsApi.md +61 -0
  22. data/lib/budgea_client.rb +9 -0
  23. data/lib/budgea_client/api/authentication_api.rb +60 -0
  24. data/lib/budgea_client/api/payments_api.rb +75 -0
  25. data/lib/budgea_client/api/pfm_api.rb +14 -26
  26. data/lib/budgea_client/models/connection.rb +2 -4
  27. data/lib/budgea_client/models/connector.rb +15 -4
  28. data/lib/budgea_client/models/connector_source.rb +79 -4
  29. data/lib/budgea_client/models/field.rb +18 -5
  30. data/lib/budgea_client/models/inline_response_200_5.rb +7 -37
  31. data/lib/budgea_client/models/payment.rb +255 -0
  32. data/lib/budgea_client/models/payment_beneficiary.rb +235 -0
  33. data/lib/budgea_client/models/payment_beneficiary_request.rb +240 -0
  34. data/lib/budgea_client/models/payment_data.rb +246 -0
  35. data/lib/budgea_client/models/payment_error_code.rb +44 -0
  36. data/lib/budgea_client/models/payment_instruction.rb +224 -0
  37. data/lib/budgea_client/models/payment_instruction_request.rb +254 -0
  38. data/lib/budgea_client/models/payment_request.rb +246 -0
  39. data/lib/budgea_client/models/payment_state.rb +35 -0
  40. data/lib/budgea_client/version.rb +1 -1
  41. data/spec/api/payments_api_spec.rb +46 -0
  42. data/spec/models/payment_beneficiary_request_spec.rb +65 -0
  43. data/spec/models/payment_beneficiary_spec.rb +35 -0
  44. data/spec/models/payment_data_spec.rb +71 -0
  45. data/spec/models/payment_error_code_spec.rb +35 -0
  46. data/spec/models/payment_instruction_request_spec.rb +35 -0
  47. data/spec/models/payment_instruction_spec.rb +35 -0
  48. data/spec/models/payment_request_spec.rb +71 -0
  49. data/spec/models/payment_spec.rb +35 -0
  50. data/spec/models/payment_state_spec.rb +35 -0
  51. metadata +42 -3
  52. data/pkg/budgea_client-5.3.7.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14e4d4d0529c3621c27fb540cd7a33a8ceb967ce9aa6b278daa97b823c245bf6
4
- data.tar.gz: c8d1f711e4a9d1efb482c585feedbe2842898c4ecbdc88d765b14f6989b3f822
3
+ metadata.gz: 874a87d4a79089c432c3689939fbb7ff18881c07254d4e10401253e81c128c44
4
+ data.tar.gz: 378533147fef2b30299b37fd8ce533ce766f0ce3972ec9903edd1be040f419f5
5
5
  SHA512:
6
- metadata.gz: 4db13ef9ec5e38b4d65f14a04cfc880c3cf66ba3fdd69a931ccd8eb8fe1005202b46a378b9abcacf49e8b33a48b34cff19703149a90964a04cbd042c22c38ca3
7
- data.tar.gz: 6b1cb5370f222fb2c3e8c0103be00368c96022e99573bf62f89466e9de6166b9c9c8336d525fc8eb82d6fa4c8ddc07caedf03ec1dc37e53e864427af2684866a
6
+ metadata.gz: ff20e03e3d7471054caafd2b7d107a7821ecccef14a30e357186646f4175fcd9469b795745323e8790c0d6306437a906ad53caa9d70134585f77ad7be78be242
7
+ data.tar.gz: fdaef52c788e666a1b1e3f3a4415f49d52ce9d62e54cce4a3660324f30d74f08dc221fe48343d3c81d1edc403686a9a4b81a4e6dcf4ef483f468d98d28403b25
data/Gemfile.lock CHANGED
@@ -1,30 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- budgea_client (5.3.4)
4
+ budgea_client (5.4.0)
5
+ addressable (~> 2.3, >= 2.3.0)
5
6
  json (~> 2.1, >= 2.1.0)
6
7
  typhoeus (~> 1.0, >= 1.0.1)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- ZenTest (4.11.1)
12
+ ZenTest (4.12.0)
12
13
  addressable (2.5.2)
13
14
  public_suffix (>= 2.0.2, < 4.0)
14
15
  autotest (4.4.6)
15
16
  ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.14)
17
+ autotest-fsevent (0.2.18)
17
18
  sys-uname
18
19
  autotest-growl (0.2.16)
19
20
  autotest-rails-pure (4.1.2)
20
21
  crack (0.4.3)
21
22
  safe_yaml (~> 1.0.0)
22
23
  diff-lcs (1.3)
23
- ethon (0.12.0)
24
- ffi (>= 1.3.0)
25
- ffi (1.9.25)
24
+ ethon (0.14.0)
25
+ ffi (>= 1.15.0)
26
+ ffi (1.15.3)
26
27
  hashdiff (0.3.7)
27
- json (2.3.1)
28
+ json (2.5.1)
28
29
  public_suffix (3.0.3)
29
30
  rake (12.3.3)
30
31
  rspec (3.8.0)
@@ -41,8 +42,8 @@ GEM
41
42
  rspec-support (~> 3.8.0)
42
43
  rspec-support (3.8.0)
43
44
  safe_yaml (1.0.4)
44
- sys-uname (1.0.3)
45
- ffi (>= 1.0.0)
45
+ sys-uname (1.2.2)
46
+ ffi (~> 1.1)
46
47
  typhoeus (1.4.0)
47
48
  ethon (>= 0.9.0)
48
49
  vcr (3.0.3)
@@ -66,4 +67,4 @@ DEPENDENCIES
66
67
  webmock (~> 1.24, >= 1.24.3)
67
68
 
68
69
  BUNDLED WITH
69
- 1.16.6
70
+ 1.17.3
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0
10
- - Package version: 5.3.8
10
+ - Package version: 5.4.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build budgea_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./budgea_client-5.3.8.gem
26
+ gem install ./budgea_client-5.4.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./budgea_client-5.3.8.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./budgea_client-5.4.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'budgea_client', '~> 5.3.8'
34
+ gem 'budgea_client', '~> 5.4.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -126,6 +126,7 @@ Class | Method | HTTP request | Description
126
126
  *BudgeaClient::AuthenticationApi* | [**auth_token_access_post**](docs/AuthenticationApi.md#auth_token_access_post) | **POST** /auth/token/access | Transform a temporary code to a access_token
127
127
  *BudgeaClient::AuthenticationApi* | [**auth_token_code_get**](docs/AuthenticationApi.md#auth_token_code_get) | **GET** /auth/token/code | Generate a user temporary token
128
128
  *BudgeaClient::AuthenticationApi* | [**auth_token_delete**](docs/AuthenticationApi.md#auth_token_delete) | **DELETE** /auth/token | Remove user access
129
+ *BudgeaClient::AuthenticationApi* | [**auth_token_post**](docs/AuthenticationApi.md#auth_token_post) | **POST** /auth/token | Login to API with credentials
129
130
  *BudgeaClient::AuthenticationApi* | [**certificate_type_get**](docs/AuthenticationApi.md#certificate_type_get) | **GET** /certificate/{type} | Get the latest certificate of a type
130
131
  *BudgeaClient::AuthenticationApi* | [**hash_delete**](docs/AuthenticationApi.md#hash_delete) | **DELETE** /hash | Delete the user's connections
131
132
  *BudgeaClient::AuthenticationApi* | [**users_id_user_delete**](docs/AuthenticationApi.md#users_id_user_delete) | **DELETE** /users/{id_user} | Delete the user
@@ -421,6 +422,7 @@ Class | Method | HTTP request | Description
421
422
  *BudgeaClient::PFMApi* | [**users_id_user_profiles_me_put**](docs/PFMApi.md#users_id_user_profiles_me_put) | **PUT** /users/{id_user}/profiles/me | Change settings of the profile.
422
423
  *BudgeaClient::PFMApi* | [**users_id_user_resume_get**](docs/PFMApi.md#users_id_user_resume_get) | **GET** /users/{id_user}/resume | Get synthesis configuration of a specific user
423
424
  *BudgeaClient::PFMApi* | [**users_id_user_resume_post**](docs/PFMApi.md#users_id_user_resume_post) | **POST** /users/{id_user}/resume | Update synthesis configuration
425
+ *BudgeaClient::PaymentsApi* | [**payments_post**](docs/PaymentsApi.md#payments_post) | **POST** /payments | Create and validate a payment request
424
426
  *BudgeaClient::ProvidersApi* | [**banks_get**](docs/ProvidersApi.md#banks_get) | **GET** /banks | Get list of connectors
425
427
  *BudgeaClient::ProvidersApi* | [**banks_id_connector_logos_get**](docs/ProvidersApi.md#banks_id_connector_logos_get) | **GET** /banks/{id_connector}/logos | Get all links to the files associated with this connector.
426
428
  *BudgeaClient::ProvidersApi* | [**banks_id_connector_logos_main_get**](docs/ProvidersApi.md#banks_id_connector_logos_main_get) | **GET** /banks/{id_connector}/logos/main | Get all links to the files associated with this connector.
@@ -710,6 +712,14 @@ Class | Method | HTTP request | Description
710
712
  - [BudgeaClient::LockedUser](docs/LockedUser.md)
711
713
  - [BudgeaClient::OidcWhitelist](docs/OidcWhitelist.md)
712
714
  - [BudgeaClient::Order](docs/Order.md)
715
+ - [BudgeaClient::Payment](docs/Payment.md)
716
+ - [BudgeaClient::PaymentBeneficiary](docs/PaymentBeneficiary.md)
717
+ - [BudgeaClient::PaymentBeneficiaryRequest](docs/PaymentBeneficiaryRequest.md)
718
+ - [BudgeaClient::PaymentErrorCode](docs/PaymentErrorCode.md)
719
+ - [BudgeaClient::PaymentInstruction](docs/PaymentInstruction.md)
720
+ - [BudgeaClient::PaymentInstructionRequest](docs/PaymentInstructionRequest.md)
721
+ - [BudgeaClient::PaymentRequest](docs/PaymentRequest.md)
722
+ - [BudgeaClient::PaymentState](docs/PaymentState.md)
713
723
  - [BudgeaClient::Pocket](docs/Pocket.md)
714
724
  - [BudgeaClient::Profile](docs/Profile.md)
715
725
  - [BudgeaClient::Project](docs/Project.md)
data/budgea_openapi.json CHANGED
@@ -493,16 +493,10 @@
493
493
  "schema": {
494
494
  "required": [
495
495
  "token",
496
- "scope",
497
- "user",
498
- "profile"
496
+ "scope"
499
497
  ],
500
498
  "type": "object",
501
499
  "properties": {
502
- "profile": {
503
- "type": "object",
504
- "description": "the user profile data object"
505
- },
506
500
  "scope": {
507
501
  "type": "string",
508
502
  "description": "the token scope"
@@ -511,53 +505,42 @@
511
505
  "type": "string",
512
506
  "description": "the requested token"
513
507
  },
514
- "expires_in": {
508
+ "expire_in": {
515
509
  "type": "integer",
516
510
  "description": "duration in seconds of the token validity"
517
- },
518
- "user": {
519
- "type": "object",
520
- "description": "the user data object"
521
511
  }
522
512
  }
523
513
  },
524
514
  "description": "",
525
515
  "examples": {
526
- "profile": {},
527
516
  "scope": "",
528
- "token": "A37mwXNCblbWX0LrvpRq60sZ6NBft/t5tsHhADie56/TJscwSi8NSjVmUIf6iLqpDwPe6lyFXM3z7E/zKf9eRHUWzx4QryEgmCtwZ0XgQb9SE+HwaenwqwTuv1gHZD+n",
529
- "user": {}
517
+ "token": "A37mwXNCblbWX0LrvpRq60sZ6NBft/t5tsHhADie56/TJscwSi8NSjVmUIf6iLqpDwPe6lyFXM3z7E/zKf9eRHUWzx4QryEgmCtwZ0XgQb9SE+HwaenwqwTuv1gHZD+n"
530
518
  }
531
519
  }
532
520
  },
533
521
  "tags": [
522
+ "Authentication",
534
523
  "PFM"
535
524
  ],
536
- "description": "Request a new user token by giving an username and a password.<br><br><br><br>",
525
+ "description": "Request a new token by giving the client_id and client_secret",
537
526
  "parameters": [
538
527
  {
539
- "required": true,
540
528
  "in": "formData",
541
529
  "type": "string",
542
- "name": "username",
543
- "description": "username"
530
+ "name": "client_id"
544
531
  },
545
532
  {
546
- "required": true,
547
533
  "in": "formData",
548
534
  "type": "string",
549
- "name": "password",
550
- "description": "password"
535
+ "name": "client_secret"
551
536
  },
552
537
  {
553
- "required": true,
554
538
  "in": "formData",
555
539
  "type": "string",
556
- "name": "application",
557
- "description": "application name"
540
+ "name": "grant_type",
541
+ "description": "grant type"
558
542
  },
559
543
  {
560
- "required": false,
561
544
  "in": "formData",
562
545
  "type": "string",
563
546
  "name": "scope",
@@ -3458,6 +3441,35 @@
3458
3441
  "summary": "Delete the supplied authorized redirect uri"
3459
3442
  }
3460
3443
  },
3444
+ "/payments": {
3445
+ "post": {
3446
+ "responses": {
3447
+ "200": {
3448
+ "description": "Successful POST on Payment resource",
3449
+ "schema": {
3450
+ "$ref": "#/definitions/Payment"
3451
+ }
3452
+ }
3453
+ },
3454
+ "parameters": [
3455
+ {
3456
+ "in": "body",
3457
+ "name": "payment_data",
3458
+ "required": true,
3459
+ "schema": {
3460
+ "$ref": "#/definitions/PaymentRequest"
3461
+ }
3462
+ }
3463
+ ],
3464
+ "tags": [
3465
+ "Payments"
3466
+ ],
3467
+ "summary": "Create and validate a payment request",
3468
+ "consumes": [
3469
+ "application/json"
3470
+ ]
3471
+ }
3472
+ },
3461
3473
  "/providers": {
3462
3474
  "get": {
3463
3475
  "responses": {
@@ -23487,6 +23499,12 @@
23487
23499
  "items": {
23488
23500
  "type": "string"
23489
23501
  }
23502
+ },
23503
+ "sources": {
23504
+ "type": "array",
23505
+ "items": {
23506
+ "$ref": "#/definitions/ConnectorSource"
23507
+ }
23490
23508
  }
23491
23509
  },
23492
23510
  "example": {
@@ -23577,6 +23595,45 @@
23577
23595
  "priority": {
23578
23596
  "type": "integer",
23579
23597
  "description": "The source priority order for the synchronization"
23598
+ },
23599
+ "capabilities": {
23600
+ "type": "array",
23601
+ "items": {
23602
+ "type": "string"
23603
+ }
23604
+ },
23605
+ "available_auth_mechanisms": {
23606
+ "type": "array",
23607
+ "items": {
23608
+ "type": "string"
23609
+ }
23610
+ },
23611
+ "urls": {
23612
+ "type": "array",
23613
+ "items": {
23614
+ "type": "string"
23615
+ }
23616
+ },
23617
+ "available_transfer_mechanisms": {
23618
+ "type": "array",
23619
+ "items": {
23620
+ "type": "string"
23621
+ }
23622
+ },
23623
+ "transfer_validate_mechanism": {
23624
+ "type": "string"
23625
+ },
23626
+ "transfer_execution_date_types": {
23627
+ "type": "array",
23628
+ "items": {
23629
+ "type": "string"
23630
+ }
23631
+ },
23632
+ "transfer_execution_frequencies": {
23633
+ "type": "array",
23634
+ "items": {
23635
+ "type": "string"
23636
+ }
23580
23637
  }
23581
23638
  },
23582
23639
  "example": {
@@ -23645,8 +23702,17 @@
23645
23702
  "description": "If true, field has to be set to synchronize the connection"
23646
23703
  },
23647
23704
  "auth_mechanisms": {
23648
- "type": "string",
23705
+ "type": "array",
23706
+ "items": {
23707
+ "type": "string"
23708
+ },
23649
23709
  "description": "Authentication mechanisms this field is used for"
23710
+ },
23711
+ "connector_sources": {
23712
+ "type": "array",
23713
+ "items": {
23714
+ "type": "string"
23715
+ }
23650
23716
  }
23651
23717
  },
23652
23718
  "example": {
@@ -26584,6 +26650,242 @@
26584
26650
  "name": "",
26585
26651
  "attacheable": true
26586
26652
  }
26653
+ },
26654
+ "PaymentRequest": {
26655
+ "type": "object",
26656
+ "required": ["client_redirect_uri", "instructions"],
26657
+ "properties": {
26658
+ "id_connector": {
26659
+ "type": "integer",
26660
+ "description": "ID of the bank connector to use to initiate the payment. The bank connector must be eligible to payments creation. The id_connector can be submitted later on if validated is false when you initiate the payment request."
26661
+ },
26662
+ "client_redirect_uri": {
26663
+ "type": "string",
26664
+ "description": "The redirect URL to use when building the validation URL. The provided URL must not contain any query parameter, rely on the client_state parameter for state management."
26665
+ },
26666
+ "client_state": {
26667
+ "type": "string",
26668
+ "description": "Optional value that will be added as a state query parameter to the redirect URL after validation."
26669
+ },
26670
+ "beneficiary": {
26671
+ "$ref": "#/definitions/PaymentBeneficiaryRequest"
26672
+ },
26673
+ "instructions": {
26674
+ "type": "array",
26675
+ "items": {
26676
+ "$ref": "#/definitions/PaymentInstructionRequest"
26677
+ },
26678
+ "description": "The payment information."
26679
+ },
26680
+ "validated": {
26681
+ "type": "boolean",
26682
+ "description": "Provide true to acknowledge payment validation at once. Otherwise, validation is deferred."
26683
+ }
26684
+ },
26685
+ "additionalProperties": {}
26686
+ },
26687
+ "PaymentBeneficiaryRequest": {
26688
+ "type": "object",
26689
+ "required": ["scheme_name", "identification", "label"],
26690
+ "properties": {
26691
+ "scheme_name": {
26692
+ "type": "string",
26693
+ "description": "The beneficiary number type: iban for IBAN, bban for BBAN (please note that BBAN is not supported by any connector yet)."
26694
+ },
26695
+ "identification": {
26696
+ "type": "string",
26697
+ "description": "The beneficiary account number, of type matching the scheme_name."
26698
+ },
26699
+ "label": {
26700
+ "type": "string",
26701
+ "description": "Display name of the beneficiary."
26702
+ },
26703
+ "merchant_scheme_name": {
26704
+ "type": "string",
26705
+ "description": "For merchant beneficiaries, the type of identifier: siret, siren, rcs, rna."
26706
+ },
26707
+ "merchant_identification": {
26708
+ "type": "string",
26709
+ "description": "For merchant beneficiaries, the identifier, of type matching the merchant_scheme_name."
26710
+ }
26711
+ }
26712
+ },
26713
+ "PaymentInstructionRequest": {
26714
+ "type": "object",
26715
+ "required": ["amount", "currency", "label", "execution_date_type"],
26716
+ "properties": {
26717
+ "reference_id": {
26718
+ "type": "string",
26719
+ "description": "An identifier for the transaction, set by the emitter client. If not provided, a random UUID value will be generated."
26720
+ },
26721
+ "amount": {
26722
+ "type": "integer",
26723
+ "description": "The amount of the payment."
26724
+ },
26725
+ "currency": {
26726
+ "type": "string",
26727
+ "description": "The currency code of the payment amount, a per ISO 4217."
26728
+ },
26729
+ "label": {
26730
+ "type": "string",
26731
+ "description": "Label of the payment."
26732
+ },
26733
+ "execution_date_type": {
26734
+ "type": "string",
26735
+ "description": "The execution date type of the payment: first_open_day for a standard banking transfer, deferred for a scheduled transfer, instant for instant payment. Other values might be supported later."
26736
+ },
26737
+ "execution_date": {
26738
+ "type": "date",
26739
+ "description": "The execution date for the transfer, only for deferred transfers."
26740
+ },
26741
+ "beneficiary": {
26742
+ "$ref": "#/definitions/PaymentBeneficiaryRequest"
26743
+ }
26744
+ }
26745
+ },
26746
+ "Payment": {
26747
+ "type": "object",
26748
+ "properties": {
26749
+ "id": {
26750
+ "type": "integer",
26751
+ "description": "The ID of the created payment request."
26752
+ },
26753
+ "state": {
26754
+ "type": "string"
26755
+ },
26756
+ "error_code": {
26757
+ "type": "string"
26758
+ },
26759
+ "error_description": {
26760
+ "type": "string",
26761
+ "nullable": true,
26762
+ "description": "Error message in case of an error."
26763
+ },
26764
+ "id_connector": {
26765
+ "type": "integer",
26766
+ "nullable": true,
26767
+ "description": "ID of the bank connector to use to initiate the payment."
26768
+ },
26769
+ "register_date": {
26770
+ "type": "datetime",
26771
+ "description": "Creation date of the transfer request."
26772
+ },
26773
+ "validate_uri": {
26774
+ "type": "string",
26775
+ "nullable": true,
26776
+ "description": "The URL that must be presented to the PSU to validate the payment request. The URL is only available after the transfer has been validated."
26777
+ },
26778
+ "client_redirect_uri": {
26779
+ "type": "string",
26780
+ "nullable": true,
26781
+ "description": "The validate_uri callback URL that was provided when configuring the transfer request."
26782
+ },
26783
+ "instructions": {
26784
+ "type": "array",
26785
+ "items": {
26786
+ "$ref": "#/definitions/PaymentInstruction"
26787
+ },
26788
+ "description": "The list of payment instructions."
26789
+ }
26790
+ }
26791
+ },
26792
+ "PaymentBeneficiary": {
26793
+ "type": "object",
26794
+ "properties": {
26795
+ "scheme_name": {
26796
+ "type": "string",
26797
+ "description": "The beneficiary number type: iban for IBAN, bban for BBAN."
26798
+ },
26799
+ "identification": {
26800
+ "type": "string",
26801
+ "description": "The beneficiary account number, of type matching the scheme_name."
26802
+ },
26803
+ "label": {
26804
+ "type": "string",
26805
+ "description": "Display name of the beneficiary."
26806
+ },
26807
+ "merchant_scheme_name": {
26808
+ "type": "string",
26809
+ "description": "For merchant beneficiaries, the type of identifier: siret, siren, rcs, rna."
26810
+ },
26811
+ "merchant_identification": {
26812
+ "type": "string",
26813
+ "description": "For merchant beneficiaries, the identifier, of type matching the merchant_scheme_name."
26814
+ },
26815
+ "bic": {
26816
+ "type": "string",
26817
+ "nullable": true,
26818
+ "description": "The BIC of the beneficiary if it could be determined from the IBAN, null otherwise."
26819
+ }
26820
+ }
26821
+ },
26822
+ "PaymentInstruction": {
26823
+ "type": "object",
26824
+ "properties": {
26825
+ "reference_id": {
26826
+ "type": "string",
26827
+ "description": "An identifier for the transaction."
26828
+ },
26829
+ "amount": {
26830
+ "type": "float",
26831
+ "description": "The amount of the payment."
26832
+ },
26833
+ "currency": {
26834
+ "type": "string",
26835
+ "description": "The currency of the payment amount."
26836
+ },
26837
+ "label": {
26838
+ "type": "string",
26839
+ "description": "Label of the payment."
26840
+ },
26841
+ "execution_date_type": {
26842
+ "type": "string",
26843
+ "description": "The execution date type of the payment: first_open_day for a standard banking transfer, deferred for a scheduled transfer, instant for instant payment. Other values might be supported later."
26844
+ },
26845
+ "execution_date": {
26846
+ "type": "date",
26847
+ "nullable": true,
26848
+ "description": "The execution date of the payment (available when the payment is deferred or has been validated)"
26849
+ },
26850
+ "beneficiary": {
26851
+ "$ref": "#/definitions/PaymentBeneficiary"
26852
+ }
26853
+ }
26854
+ },
26855
+ "PaymentState": {
26856
+ "type": "string",
26857
+ "description": "created\tThe payment request was registered, but not yet validated.\nvalidating\tThe payment request was validated and initialized with the bank. The validate_uri is available.\nerror\tAn error occurred while initializing the request with the bank. The error_code is available.\npending\tThe payment request has been validated on the bank website, but execution has not been confirmed yet.\nrejected\tThe payment request has been rejected by the bank or the user. The error_code is available.\ndone\tThe payment has been executed and confirmed by the bank.\nexpired\tThe payment has automatically expired because it did not have a definitive status (ie done or rejected) N days after its execution. N value is configurable with the payment.manual_expire_time_days configuration key.",
26858
+ "enum": [
26859
+ "created",
26860
+ "validating",
26861
+ "error",
26862
+ "pending",
26863
+ "rejected",
26864
+ "done",
26865
+ "expired"
26866
+ ]
26867
+ },
26868
+ "PaymentErrorCode": {
26869
+ "type": "string",
26870
+ "description": "invalidEmitter\tIdentification of the emitter account is invalid, or transfer emission is not possible.\ninsufficientFunds\tThe balance of the emitter account is too low.\ninvalidAmount\tThe amount of the payment request is invalid or out of the authorized bounds.\ninvalidCurrency\tThe currency of the payment request is invalid or unsupported.\ninvalidDate\tThe execution date of the payment request is invalid or out of the supported bounds.\ninvalidBeneficiary\tThe beneficiary identification is invalid or unsupported.\ninvalidLabel\tThe label of the payment request does not match the constraints enforced by the bank.\nregulatoryReason\tThe request was aborted by the bank for regulatory reason (e.g. fraud detection).\nauthenticationFailed\tThe request was aborted because the end-user failed to identify with the bank.\nnoAnswerFromCustomer\tThe payment request expired without any interaction with the end-user.\nnoSpecifiedReason\tThe payment request was rejected by the bank without any reason.\nCancelledByUser\tThe payment was explicitly cancelled by the end-user.\nbankMessage\tThe bank sent an error message to the user.\ninvalidValue\tThe request contains invalid data.\nactionNeeded\tAn action is needed on the website by the user.\nbug\tA bug has occurred during the request validation.",
26871
+ "enum": [
26872
+ "invalidEmitter",
26873
+ "insufficientFunds",
26874
+ "invalidAmount",
26875
+ "invalidCurrency",
26876
+ "invalidDate",
26877
+ "invalidBeneficiary",
26878
+ "invalidLabel",
26879
+ "regulatoryReason",
26880
+ "authenticationFailed",
26881
+ "noAnswerFromCustomer",
26882
+ "noSpecifiedReason",
26883
+ "CancelledByUser",
26884
+ "bankMessage",
26885
+ "invalidValue",
26886
+ "actionNeeded",
26887
+ "bug"
26888
+ ]
26587
26889
  }
26588
26890
  },
26589
26891
  "basePath": "/2.0/",