treezor_client 1.11.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +20 -20
  3. data/README.md +2 -1
  4. data/docs/Body11.md +9 -0
  5. data/docs/CardApi.md +0 -53
  6. data/docs/CardDigitalization.md +1 -1
  7. data/docs/CardReserveApi.md +4 -10
  8. data/docs/CardtransactionApi.md +1 -1
  9. data/docs/InlineResponse20010Cardtransactions.md +1 -0
  10. data/docs/InlineResponse20016.md +1 -1
  11. data/docs/InlineResponse2009Cardtransactions.md +1 -0
  12. data/docs/MerchantIdRestrictionGroupsApi.md +67 -0
  13. data/docs/UserApi.md +6 -6
  14. data/docs/WalletApi.md +1 -5
  15. data/lib/treezor_client.rb +1 -0
  16. data/lib/treezor_client/api/card_api.rb +0 -48
  17. data/lib/treezor_client/api/card_reserve_api.rb +6 -20
  18. data/lib/treezor_client/api/cardtransaction_api.rb +2 -2
  19. data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +68 -0
  20. data/lib/treezor_client/api/user_api.rb +6 -6
  21. data/lib/treezor_client/api/wallet_api.rb +2 -8
  22. data/lib/treezor_client/models/body_11.rb +230 -0
  23. data/lib/treezor_client/models/card_digitalization.rb +1 -1
  24. data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +10 -1
  25. data/lib/treezor_client/models/inline_response_200_16.rb +8 -8
  26. data/lib/treezor_client/models/inline_response_200_9_cardtransactions.rb +10 -1
  27. data/lib/treezor_client/models/payin.rb +2 -2
  28. data/lib/treezor_client/version.rb +1 -1
  29. data/original_treezor_api_spec.yaml +111 -78
  30. data/pkg/treezor_client-1.0.0.gem +0 -0
  31. data/pkg/treezor_client-1.1.0.gem +0 -0
  32. data/pkg/treezor_client-1.2.0.gem +0 -0
  33. data/pkg/treezor_client-1.3.0.gem +0 -0
  34. data/pkg/treezor_client-1.4.0.gem +0 -0
  35. data/spec/models/body_11_spec.rb +51 -0
  36. data/treezor_api_spec.yaml +99 -73
  37. metadata +11 -3
  38. data/pkg/treezor_client-1.10.0.gem +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,51 @@
1
+ =begin
2
+ #Treezor
3
+
4
+ #Treezor API. more info [here](https://www.treezor.com).
5
+
6
+ OpenAPI spec version: 0.1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TreezorClient::Body11
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Body11' do
21
+ before do
22
+ # run before each test
23
+ @instance = TreezorClient::Body11.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Body11' do
31
+ it 'should create an instance of Body11' do
32
+ expect(@instance).to be_instance_of(TreezorClient::Body11)
33
+ end
34
+ end
35
+ describe 'test attribute "merchants"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "merchants_operation"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"])
45
+ # validator.allowable_values.each do |value|
46
+ # expect { @instance.merchants_operation = value }.not_to raise_error
47
+ # end
48
+ end
49
+ end
50
+
51
+ end
@@ -1958,42 +1958,6 @@ paths:
1958
1958
  - api_key: []
1959
1959
  tags:
1960
1960
  - card
1961
- delete:
1962
- summary: deactivate a card
1963
- parameters:
1964
- - name: id
1965
- in: path
1966
- description: Card's id.
1967
- required: true
1968
- type: integer
1969
- format: int64
1970
- responses:
1971
- '200':
1972
- description: OK
1973
- schema:
1974
- type: object
1975
- properties:
1976
- cards:
1977
- type: array
1978
- items:
1979
- $ref: '#/definitions/Card'
1980
- '400':
1981
- description: Bad Request
1982
- '401':
1983
- description: Unauthorized
1984
- default:
1985
- description: Unexpected error
1986
- schema:
1987
- type: object
1988
- properties:
1989
- errors:
1990
- type: array
1991
- items:
1992
- $ref: '#/definitions/Error'
1993
- security:
1994
- - api_key: []
1995
- tags:
1996
- - card
1997
1961
  /cards/CreateVirtual:
1998
1962
  post:
1999
1963
  summary: create a virtual card
@@ -3649,12 +3613,6 @@ paths:
3649
3613
  [here](https://www.treezor.com/basics).
3650
3614
  required: false
3651
3615
  type: string
3652
- - name: id
3653
- in: query
3654
- description: the cardId of the reserved amount you want to pick up
3655
- required: true
3656
- type: integer
3657
- format: int64
3658
3616
  - in: body
3659
3617
  name: body
3660
3618
  schema:
@@ -3732,12 +3690,6 @@ paths:
3732
3690
  [here](https://www.treezor.com/basics).
3733
3691
  required: false
3734
3692
  type: string
3735
- - name: id
3736
- in: query
3737
- description: the cardId of the reserved amount you want to pick up
3738
- required: true
3739
- type: integer
3740
- format: int64
3741
3693
  - in: body
3742
3694
  name: body
3743
3695
  schema:
@@ -3778,7 +3730,7 @@ paths:
3778
3730
  tags:
3779
3731
  - cardtransaction
3780
3732
  summary: search for card transactions
3781
- description: Search for documents.
3733
+ description: Search for documents. The request must contain at least one of those inputs - cardId, paymentId, publicToken, walletId
3782
3734
  operationId: readCardTransaction
3783
3735
  consumes:
3784
3736
  - application/json
@@ -3884,6 +3836,8 @@ paths:
3884
3836
  type: integer
3885
3837
  walletId:
3886
3838
  type: integer
3839
+ acquirerId:
3840
+ type: integer
3887
3841
  walletCurrency:
3888
3842
  type: string
3889
3843
  merchantId:
@@ -4081,6 +4035,8 @@ paths:
4081
4035
  type: string
4082
4036
  walletId:
4083
4037
  type: string
4038
+ acquirerId:
4039
+ type: string
4084
4040
  walletCurrency:
4085
4041
  type: string
4086
4042
  merchantId:
@@ -6435,7 +6391,7 @@ paths:
6435
6391
  schema:
6436
6392
  type: object
6437
6393
  properties:
6438
- bankaccounts:
6394
+ merchantIdRestrictionGroups:
6439
6395
  type: array
6440
6396
  items:
6441
6397
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6576,7 +6532,7 @@ paths:
6576
6532
  schema:
6577
6533
  type: object
6578
6534
  properties:
6579
- bankaccounts:
6535
+ merchantIdRestrictionGroups:
6580
6536
  type: array
6581
6537
  items:
6582
6538
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6624,7 +6580,7 @@ paths:
6624
6580
  schema:
6625
6581
  type: object
6626
6582
  properties:
6627
- bankaccounts:
6583
+ merchantIdRestrictionGroups:
6628
6584
  type: array
6629
6585
  items:
6630
6586
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6716,7 +6672,7 @@ paths:
6716
6672
  schema:
6717
6673
  type: object
6718
6674
  properties:
6719
- bankaccounts:
6675
+ merchantIdRestrictionGroups:
6720
6676
  type: array
6721
6677
  items:
6722
6678
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6763,7 +6719,88 @@ paths:
6763
6719
  schema:
6764
6720
  type: object
6765
6721
  properties:
6766
- bankaccounts:
6722
+ merchantIdRestrictionGroups:
6723
+ type: array
6724
+ items:
6725
+ $ref: '#/definitions/MerchantIdRestrictionGroup'
6726
+ '405':
6727
+ description: Invalid input
6728
+ default:
6729
+ description: Unexpected error
6730
+ schema:
6731
+ type: object
6732
+ properties:
6733
+ errors:
6734
+ type: array
6735
+ items:
6736
+ $ref: '#/definitions/Error'
6737
+ security:
6738
+ - api_key: []
6739
+ '/merchantIdRestrictionGroups/{id}/DeltaUpdate/':
6740
+ put:
6741
+ tags:
6742
+ - merchantIdRestrictionGroups
6743
+ summary: edit the merchant ID list for a restriction group
6744
+ description: Edit the merchant ID list for a restriction group in the system.
6745
+ consumes:
6746
+ - application/json
6747
+ produces:
6748
+ - application/json
6749
+ parameters:
6750
+ - name: id
6751
+ in: path
6752
+ description: Merchant ID restriction group's id.
6753
+ required: true
6754
+ type: integer
6755
+ - name: accessSignature
6756
+ in: query
6757
+ description: |
6758
+ Access signature can be mandatory for specific context. Treezor will
6759
+ contact you if so. More info
6760
+ [here](https://agent.treezor.com/security-authentication).
6761
+ required: false
6762
+ type: string
6763
+ - name: accessTag
6764
+ in: query
6765
+ description: |
6766
+ Access tag is used for idem potency query. More info
6767
+ [here](https://agent.treezor.com/basics).
6768
+ required: false
6769
+ type: string
6770
+ - name: accessUserId
6771
+ in: query
6772
+ description: |
6773
+ Access user's id is used for user's action restriction. More info
6774
+ [here](https://agent.treezor.com/basics).
6775
+ required: false
6776
+ type: integer
6777
+ - name: accessUserIp
6778
+ in: query
6779
+ description: |
6780
+ Access user's ip is used for user's action restriction. More info
6781
+ [here](https://agent.treezor.com/basics).
6782
+ required: false
6783
+ type: string
6784
+ - in: body
6785
+ name: body
6786
+ schema:
6787
+ properties:
6788
+ merchants:
6789
+ description: Array of merchant ID
6790
+ type: array
6791
+ items:
6792
+ type: string
6793
+ merchantsOperation:
6794
+ description: Action to do with merchants id list
6795
+ type: string
6796
+ enum: ["add", "remove"]
6797
+ responses:
6798
+ '200':
6799
+ description: OK
6800
+ schema:
6801
+ type: object
6802
+ properties:
6803
+ merchantIdRestrictionGroups:
6767
6804
  type: array
6768
6805
  items:
6769
6806
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -9431,7 +9468,8 @@ paths:
9431
9468
  - name: entityType
9432
9469
  in: query
9433
9470
  description: |
9434
- Type of user's entity type
9471
+ Type of user's entity type :
9472
+
9435
9473
  | Value | Type |
9436
9474
  | --- | --- |
9437
9475
  | 1 | Reporting Financial Institution |
@@ -9892,7 +9930,7 @@ paths:
9892
9930
  type: string
9893
9931
  - name: position
9894
9932
  in: query
9895
- description: User's position.
9933
+ description: User's position (deprecated, you must use the parameter occupation).
9896
9934
  required: false
9897
9935
  type: string
9898
9936
  - name: personalAssets
@@ -10732,7 +10770,7 @@ paths:
10732
10770
  type: string
10733
10771
  - name: position
10734
10772
  in: query
10735
- description: User's position.
10773
+ description: User's position (deprecated, you must use the parameter occupation).
10736
10774
  required: false
10737
10775
  type: string
10738
10776
  - name: personalAssets
@@ -11505,7 +11543,7 @@ paths:
11505
11543
  tags:
11506
11544
  - wallet
11507
11545
  summary: search wallets
11508
- description: Get wallets from the system that match the search criteria.
11546
+ description: 'Get wallets from the system that match the search criteria. The request must contains at least one of those inputs :walletId eventAlias, userId, walletTypeId, walletTag'
11509
11547
  operationId: getWallets
11510
11548
  consumes:
11511
11549
  - application/json
@@ -11579,13 +11617,6 @@ paths:
11579
11617
  | 14 | Electronic Money Card (Internal only) |
11580
11618
  required: false
11581
11619
  type: integer
11582
- - name: eventName
11583
- in: query
11584
- description: |
11585
- Event name that will be used as wallet name. For example, in a
11586
- wedding list: Wedding of X and Y
11587
- required: false
11588
- type: string
11589
11620
  - name: eventAlias
11590
11621
  in: query
11591
11622
  description: |
@@ -11618,11 +11649,6 @@ paths:
11618
11649
  description: Number of payin done on the wallet.
11619
11650
  required: false
11620
11651
  type: integer
11621
- - name: solde
11622
- in: query
11623
- description: Wallet current balance.
11624
- required: false
11625
- type: string
11626
11652
  - name: pageNumber
11627
11653
  in: query
11628
11654
  description: |
@@ -12510,9 +12536,9 @@ definitions:
12510
12536
  | Status | Description |
12511
12537
  | ---- | ----------- |
12512
12538
  | A | Active |
12513
- | N | Not tokenized |
12539
+ | U | Not tokenized |
12514
12540
  | S | Suspended |
12515
- | X | Deactivated (Final status, cannot be changed)|
12541
+ | D | Deactivated (Final status, cannot be changed)|
12516
12542
  createdDate:
12517
12543
  type: string
12518
12544
  modifiedDate:
@@ -12828,7 +12854,7 @@ definitions:
12828
12854
  type: string
12829
12855
  payinStatus:
12830
12856
  type: string
12831
- enum: ['PENDING', 'CANCELED', 'VALIDATED']
12857
+ enum: ['PENDING', 'CANCELED', 'CANCELLED', 'VALIDATED']
12832
12858
  codeStatus:
12833
12859
  type: integer
12834
12860
  informationStatus:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treezor_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chaker Nakhli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-08 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -345,6 +345,7 @@ files:
345
345
  - docs/Body.md
346
346
  - docs/Body1.md
347
347
  - docs/Body10.md
348
+ - docs/Body11.md
348
349
  - docs/Body2.md
349
350
  - docs/Body3.md
350
351
  - docs/Body4.md
@@ -478,6 +479,7 @@ files:
478
479
  - lib/treezor_client/models/body.rb
479
480
  - lib/treezor_client/models/body_1.rb
480
481
  - lib/treezor_client/models/body_10.rb
482
+ - lib/treezor_client/models/body_11.rb
481
483
  - lib/treezor_client/models/body_2.rb
482
484
  - lib/treezor_client/models/body_3.rb
483
485
  - lib/treezor_client/models/body_4.rb
@@ -552,7 +554,11 @@ files:
552
554
  - lib/treezor_client/models/wallet.rb
553
555
  - lib/treezor_client/version.rb
554
556
  - original_treezor_api_spec.yaml
555
- - pkg/treezor_client-1.10.0.gem
557
+ - pkg/treezor_client-1.0.0.gem
558
+ - pkg/treezor_client-1.1.0.gem
559
+ - pkg/treezor_client-1.2.0.gem
560
+ - pkg/treezor_client-1.3.0.gem
561
+ - pkg/treezor_client-1.4.0.gem
556
562
  - spec/api/balance_api_spec.rb
557
563
  - spec/api/bankaccount_api_spec.rb
558
564
  - spec/api/beneficiaries_api_spec.rb
@@ -586,6 +592,7 @@ files:
586
592
  - spec/models/beneficiaries_sdd_b2b_whitelist_spec.rb
587
593
  - spec/models/beneficiary_spec.rb
588
594
  - spec/models/body_10_spec.rb
595
+ - spec/models/body_11_spec.rb
589
596
  - spec/models/body_1_spec.rb
590
597
  - spec/models/body_2_spec.rb
591
598
  - spec/models/body_3_spec.rb
@@ -719,6 +726,7 @@ test_files:
719
726
  - spec/models/balance_spec.rb
720
727
  - spec/models/inline_response_200_2_spec.rb
721
728
  - spec/models/inline_response_200_18_spec.rb
729
+ - spec/models/body_11_spec.rb
722
730
  - spec/models/inline_response_200_11_spec.rb
723
731
  - spec/models/issuer_initiated_digitization_data_spec.rb
724
732
  - spec/models/inline_response_200_10_spec.rb
Binary file