citypay_api_client 1.1.1 → 1.1.2

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 (151) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -14
  3. data/citypay_api_client.gemspec +4 -3
  4. data/docs/AirlineAdvice.md +1 -1
  5. data/docs/AuthRequest.md +3 -1
  6. data/docs/AuthResponse.md +5 -1
  7. data/docs/AuthorisationAndPaymentApi.md +300 -9
  8. data/docs/BatchProcessingApi.md +15 -11
  9. data/docs/BatchTransactionResultModel.md +5 -1
  10. data/docs/Card.md +1 -1
  11. data/docs/CardHolderAccountApi.md +64 -9
  12. data/docs/ChargeRequest.md +2 -0
  13. data/docs/ContactDetails.md +11 -11
  14. data/docs/DirectPostApi.md +40 -16
  15. data/docs/DirectPostRequest.md +3 -1
  16. data/docs/OperationalFunctionsApi.md +28 -8
  17. data/docs/PaylinkApi.md +249 -73
  18. data/docs/PaylinkCustomParam.md +3 -1
  19. data/docs/PaylinkFieldGuardModel.md +1 -1
  20. data/docs/PaylinkTokenRequestModel.md +4 -0
  21. data/docs/RegisterCard.md +1 -1
  22. data/docs/ThreeDSecure.md +1 -1
  23. data/docs/TokenisationResponseModel.md +2 -2
  24. data/docs/images/3dsv1-challenge.png +0 -0
  25. data/docs/images/3dsv2-challenge.png +0 -0
  26. data/docs/images/3dsv2-frictionless.png +0 -0
  27. data/docs/images/3dsv2-method-challenge.png +0 -0
  28. data/docs/images/3dsv2-method-frictionless.png +0 -0
  29. data/docs/images/3dsv2-no3d.png +0 -0
  30. data/docs/images/citypay-logo.svg +1 -0
  31. data/docs/images/direct-post-flow.png +0 -0
  32. data/docs/images/favicon.ico +0 -0
  33. data/docs/images/header.png +0 -0
  34. data/docs/images/logo.ai +1913 -4
  35. data/docs/images/logo.png +0 -0
  36. data/docs/images/logo.svg +1 -0
  37. data/docs/images/merchant-BPS-workflow.png +0 -0
  38. data/docs/images/paylink-field-guards.png +0 -0
  39. data/lib/.DS_Store +0 -0
  40. data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +4 -4
  41. data/lib/citypay_api_client/api/batch_processing_api__.rb +11 -11
  42. data/lib/citypay_api_client/api/card_holder_account_api__.rb +2 -2
  43. data/lib/citypay_api_client/api/direct_post_api__.rb +5 -5
  44. data/lib/citypay_api_client/api/operational_functions_api__.rb +3 -3
  45. data/lib/citypay_api_client/api/paylink_api__.rb +74 -74
  46. data/lib/citypay_api_client/api_client.rb +24 -22
  47. data/lib/citypay_api_client/api_error.rb +3 -2
  48. data/lib/citypay_api_client/configuration.rb +28 -9
  49. data/lib/citypay_api_client/models/account_create.rb +17 -20
  50. data/lib/citypay_api_client/models/account_status.rb +15 -20
  51. data/lib/citypay_api_client/models/acknowledgement.rb +27 -24
  52. data/lib/citypay_api_client/models/acl_check_request.rb +17 -20
  53. data/lib/citypay_api_client/models/acl_check_response_model.rb +15 -20
  54. data/lib/citypay_api_client/models/airline_advice.rb +45 -29
  55. data/lib/citypay_api_client/models/airline_segment.rb +35 -22
  56. data/lib/citypay_api_client/models/auth_reference.rb +41 -26
  57. data/lib/citypay_api_client/models/auth_references.rb +15 -20
  58. data/lib/citypay_api_client/models/auth_request.rb +66 -29
  59. data/lib/citypay_api_client/models/auth_response.rb +45 -22
  60. data/lib/citypay_api_client/models/authen_required.rb +15 -20
  61. data/lib/citypay_api_client/models/batch.rb +24 -21
  62. data/lib/citypay_api_client/models/batch_report_request.rb +23 -22
  63. data/lib/citypay_api_client/models/batch_report_response_model.rb +27 -20
  64. data/lib/citypay_api_client/models/batch_transaction.rb +25 -22
  65. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +53 -22
  66. data/lib/citypay_api_client/models/bin.rb +15 -20
  67. data/lib/citypay_api_client/models/bin_lookup.rb +17 -20
  68. data/lib/citypay_api_client/models/c_res_auth_request.rb +15 -20
  69. data/lib/citypay_api_client/models/capture_request.rb +27 -22
  70. data/lib/citypay_api_client/models/card.rb +33 -26
  71. data/lib/citypay_api_client/models/card_holder_account.rb +19 -20
  72. data/lib/citypay_api_client/models/card_status.rb +15 -20
  73. data/lib/citypay_api_client/models/charge_request.rb +66 -29
  74. data/lib/citypay_api_client/models/check_batch_status.rb +23 -22
  75. data/lib/citypay_api_client/models/check_batch_status_response.rb +15 -20
  76. data/lib/citypay_api_client/models/contact_details.rb +77 -42
  77. data/lib/citypay_api_client/models/decision.rb +15 -20
  78. data/lib/citypay_api_client/models/direct_post_request.rb +66 -29
  79. data/lib/citypay_api_client/models/direct_token_auth_request.rb +15 -20
  80. data/lib/citypay_api_client/models/domain_key_check_request.rb +17 -20
  81. data/lib/citypay_api_client/models/domain_key_request.rb +19 -20
  82. data/lib/citypay_api_client/models/domain_key_response.rb +25 -22
  83. data/lib/citypay_api_client/models/error.rb +27 -24
  84. data/lib/citypay_api_client/models/event_data_model.rb +15 -20
  85. data/lib/citypay_api_client/models/exists.rb +17 -20
  86. data/lib/citypay_api_client/models/external_mpi.rb +39 -24
  87. data/lib/citypay_api_client/models/list_merchants_response.rb +21 -22
  88. data/lib/citypay_api_client/models/mcc6012.rb +15 -20
  89. data/lib/citypay_api_client/models/merchant.rb +15 -20
  90. data/lib/citypay_api_client/models/pa_res_auth_request.rb +19 -20
  91. data/lib/citypay_api_client/models/paylink_address.rb +52 -29
  92. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +25 -22
  93. data/lib/citypay_api_client/models/paylink_attachment_request.rb +19 -20
  94. data/lib/citypay_api_client/models/paylink_attachment_result.rb +19 -20
  95. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +17 -20
  96. data/lib/citypay_api_client/models/paylink_card_holder.rb +30 -23
  97. data/lib/citypay_api_client/models/paylink_cart.rb +15 -20
  98. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +15 -20
  99. data/lib/citypay_api_client/models/paylink_config.rb +15 -20
  100. data/lib/citypay_api_client/models/paylink_custom_param.rb +29 -22
  101. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +17 -20
  102. data/lib/citypay_api_client/models/paylink_error_code.rb +19 -20
  103. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +16 -21
  104. data/lib/citypay_api_client/models/paylink_part_payments.rb +15 -20
  105. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +17 -20
  106. data/lib/citypay_api_client/models/paylink_state_event.rb +15 -20
  107. data/lib/citypay_api_client/models/paylink_token_created.rb +21 -20
  108. data/lib/citypay_api_client/models/paylink_token_request_model.rb +75 -22
  109. data/lib/citypay_api_client/models/paylink_token_status.rb +15 -20
  110. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +19 -20
  111. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +17 -20
  112. data/lib/citypay_api_client/models/paylink_ui.rb +15 -20
  113. data/lib/citypay_api_client/models/ping.rb +21 -22
  114. data/lib/citypay_api_client/models/process_batch_request.rb +27 -22
  115. data/lib/citypay_api_client/models/process_batch_response.rb +17 -20
  116. data/lib/citypay_api_client/models/refund_request.rb +28 -21
  117. data/lib/citypay_api_client/models/register_card.rb +27 -22
  118. data/lib/citypay_api_client/models/request_challenged.rb +15 -20
  119. data/lib/citypay_api_client/models/retrieve_request.rb +23 -22
  120. data/lib/citypay_api_client/models/three_d_secure.rb +16 -21
  121. data/lib/citypay_api_client/models/tokenisation_response_model.rb +23 -24
  122. data/lib/citypay_api_client/models/void_request.rb +23 -22
  123. data/lib/citypay_api_client/version.rb +3 -3
  124. data/lib/citypay_api_client.rb +2 -2
  125. data/spec/.DS_Store +0 -0
  126. data/spec/it_api_sandbox_spec.rb +5 -11
  127. data/spec/models/account_create_spec.rb +1 -2
  128. data/spec/models/account_status_spec.rb +2 -2
  129. data/spec/models/airline_advice_spec.rb +0 -2
  130. data/spec/models/airline_segment_spec.rb +0 -2
  131. data/spec/models/auth_request_spec.rb +0 -2
  132. data/spec/models/auth_response_spec.rb +75 -30
  133. data/spec/models/batch_report_request_spec.rb +0 -2
  134. data/spec/models/batch_report_response_model_spec.rb +0 -2
  135. data/spec/models/batch_spec.rb +0 -2
  136. data/spec/models/batch_transaction_result_model_spec.rb +0 -2
  137. data/spec/models/batch_transaction_spec.rb +0 -2
  138. data/spec/models/bin_lookup_spec.rb +0 -2
  139. data/spec/models/capture_request_spec.rb +0 -2
  140. data/spec/models/card_holder_account_spec.rb +0 -2
  141. data/spec/models/charge_request_spec.rb +0 -2
  142. data/spec/models/direct_post_request_spec.rb +0 -2
  143. data/spec/models/domain_key_check_request_spec.rb +0 -2
  144. data/spec/models/paylink_token_request_model_spec.rb +0 -2
  145. data/spec/models/process_batch_request_spec.rb +0 -2
  146. data/spec/models/refund_request_spec.rb +0 -2
  147. data/spec/models/register_card_spec.rb +0 -2
  148. data/spec/spec_helper.rb +2 -2
  149. metadata +25 -12
  150. data/docs/OperationalApi.md +0 -214
  151. data/docs/PaymentProcessingApi.md +0 -559
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'AccountCreate' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::AccountCreate.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,7 @@ describe 'AccountCreate' do
28
27
 
29
28
  describe 'test an instance of AccountCreate' do
30
29
  it 'should create an instance of AccountCreate' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::AccountCreate)
30
+
32
31
  end
33
32
  end
34
33
  describe 'test attribute "account_id"' do
@@ -19,7 +19,7 @@ require 'date'
19
19
  describe 'AccountStatus' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::AccountStatus.new
22
+
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'AccountStatus' do
28
28
 
29
29
  describe 'test an instance of AccountStatus' do
30
30
  it 'should create an instance of AccountStatus' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::AccountStatus)
31
+
32
32
  end
33
33
  end
34
34
  describe 'test attribute "status"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'AirlineAdvice' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::AirlineAdvice.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,6 @@ describe 'AirlineAdvice' do
28
27
 
29
28
  describe 'test an instance of AirlineAdvice' do
30
29
  it 'should create an instance of AirlineAdvice' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::AirlineAdvice)
32
30
  end
33
31
  end
34
32
  describe 'test attribute "carrier_name"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'AirlineSegment' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::AirlineSegment.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,6 @@ describe 'AirlineSegment' do
28
27
 
29
28
  describe 'test an instance of AirlineSegment' do
30
29
  it 'should create an instance of AirlineSegment' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::AirlineSegment)
32
30
  end
33
31
  end
34
32
  describe 'test attribute "arrival_location_code"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'AuthRequest' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::AuthRequest.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,6 @@ describe 'AuthRequest' do
28
27
 
29
28
  describe 'test an instance of AuthRequest' do
30
29
  it 'should create an instance of AuthRequest' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::AuthRequest)
32
30
  end
33
31
  end
34
32
  describe 'test attribute "airline_data"' do
@@ -21,38 +21,71 @@ describe 'AuthResponse' do
21
21
  # run before each test
22
22
 
23
23
  json = '
24
- {
25
- "amount": 5500,
26
- "atrn": "atrn1",
27
- "atsd": "a",
28
- "authcode": "12345",
29
- "authen_result": "R",
30
- "authorised": true,
31
- "avs_result": "G",
32
- "bin_commercial": false,
33
- "bin_debit": false,
34
- "bin_description": "bin_desc",
35
- "cavv": "cavvvvvvvvvvvvv",
36
- "context": "20200812075906AAAGV4",
37
- "csc_result": "C",
38
- "currency": "GBP",
39
- "datetime": "2020-08-12T07:59:11Z",
40
- "eci": "0",
41
- "identifier": "ident1",
42
- "live": true,
43
- "maskedpan": "400000******0002",
44
- "merchantid": 12345,
45
- "result": 1,
46
- "result_code": "000",
47
- "result_message": "System: Accepted Transaction",
48
- "scheme": "VISA_BUSINESS",
49
- "sha256": "abcdefg",
50
- "trans_status": "P",
51
- "transno": 74875
52
- }
53
- '
24
+ {
25
+ "amount": 5500,
26
+ "atrn": "atrn1",
27
+ "atsd": "a",
28
+ "authcode": "12345",
29
+ "authen_result": "R",
30
+ "authorised": true,
31
+ "avs_result": "G",
32
+ "bin_commercial": false,
33
+ "bin_debit": false,
34
+ "bin_description": "bin_desc",
35
+ "cavv": "cavvvvvvvvvvvvv",
36
+ "context": "20200812075906AAAGV4",
37
+ "csc_result": "C",
38
+ "currency": "GBP",
39
+ "datetime": "2020-08-12T07:59:11Z",
40
+ "eci": "0",
41
+ "identifier": "ident1",
42
+ "live": true,
43
+ "maskedpan": "400000******0002",
44
+ "merchantid": 12345,
45
+ "result": 1,
46
+ "result_code": "000",
47
+ "result_message": "System: Accepted Transaction",
48
+ "scheme": "VISA_BUSINESS",
49
+ "sha256": "abcdefg",
50
+ "trans_status": "P",
51
+ "transno": 74875
52
+ }'
53
+
54
+ json_no_ident = '
55
+ {
56
+ "amount": 0,
57
+ "atrn": "",
58
+ "atsd": "",
59
+ "authcode": "",
60
+ "authen_result": "",
61
+ "authorised": false,
62
+ "avs_result": " ",
63
+ "bin_commercial": false,
64
+ "bin_debit": false,
65
+ "bin_description": "",
66
+ "cavv": "",
67
+ "context": "PC.0.A5298ef695b",
68
+ "csc_result": " ",
69
+ "currency": "---",
70
+ "datetime": "1969-12-31T23:59:59Z",
71
+ "eci": "0",
72
+ "identifier": "",
73
+ "live": true,
74
+ "maskedpan": "N/A",
75
+ "merchantid": 0,
76
+ "result": 3,
77
+ "result_code": "P030",
78
+ "result_message": "Request Error: Authorisation invalid (203: Data element not in the required format or value is invalid as defined in Table A.1. threeDSSessionData)",
79
+ "scheme": "",
80
+ "sha256": "",
81
+ "trans_status": "_",
82
+ "transno": -1
83
+ }'
84
+
54
85
  data = JSON.parse(json, :symbolize_names => true)
86
+ data_not_ident = JSON.parse(json_no_ident, :symbolize_names => true)
55
87
  @instance = CityPayApiClient::ApiClient.new.convert_to_type(data, "AuthResponse")
88
+ @instance_not_ident = CityPayApiClient::ApiClient.new.convert_to_type(data_not_ident, "AuthResponse")
56
89
  end
57
90
 
58
91
  after do
@@ -226,4 +259,16 @@ describe 'AuthResponse' do
226
259
  end
227
260
  end
228
261
 
262
+ describe 'test attribute "result_code"' do
263
+ it 'should work' do
264
+ expect(@instance_not_ident.result_code).to eq("P030")
265
+ end
266
+ end
267
+
268
+ describe 'test attribute "result"' do
269
+ it 'should work' do
270
+ expect(@instance_not_ident.result).to eq(3)
271
+ end
272
+ end
273
+
229
274
  end
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::BatchReportRequest do
20
- let(:instance) { CityPayApiClient::BatchReportRequest.new }
21
20
 
22
21
  describe 'test an instance of BatchReportRequest' do
23
22
  it 'should create an instance of BatchReportRequest' do
24
- expect(instance).to be_instance_of(CityPayApiClient::BatchReportRequest)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "account_id"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::BatchReportResponseModel do
20
- let(:instance) { CityPayApiClient::BatchReportResponseModel.new }
21
20
 
22
21
  describe 'test an instance of BatchReportResponseModel' do
23
22
  it 'should create an instance of BatchReportResponseModel' do
24
- expect(instance).to be_instance_of(CityPayApiClient::BatchReportResponseModel)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "account_id"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::Batch do
20
- let(:instance) { CityPayApiClient::Batch.new }
21
20
 
22
21
  describe 'test an instance of Batch' do
23
22
  it 'should create an instance of Batch' do
24
- expect(instance).to be_instance_of(CityPayApiClient::Batch)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "batch_date"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::BatchTransactionResultModel do
20
- let(:instance) { CityPayApiClient::BatchTransactionResultModel.new }
21
20
 
22
21
  describe 'test an instance of BatchTransactionResultModel' do
23
22
  it 'should create an instance of BatchTransactionResultModel' do
24
- expect(instance).to be_instance_of(CityPayApiClient::BatchTransactionResultModel)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "account_id"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::BatchTransaction do
20
- let(:instance) { CityPayApiClient::BatchTransaction.new }
21
20
 
22
21
  describe 'test an instance of BatchTransaction' do
23
22
  it 'should create an instance of BatchTransaction' do
24
- expect(instance).to be_instance_of(CityPayApiClient::BatchTransaction)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "account_id"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::BinLookup do
20
- let(:instance) { CityPayApiClient::BinLookup.new }
21
20
 
22
21
  describe 'test an instance of BinLookup' do
23
22
  it 'should create an instance of BinLookup' do
24
- expect(instance).to be_instance_of(CityPayApiClient::BinLookup)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "bin"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'CaptureRequest' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::CaptureRequest.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,6 @@ describe 'CaptureRequest' do
28
27
 
29
28
  describe 'test an instance of CaptureRequest' do
30
29
  it 'should create an instance of CaptureRequest' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::CaptureRequest)
32
30
  end
33
31
  end
34
32
  describe 'test attribute "airline_data"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'CardHolderAccount' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::CardHolderAccount.new
23
22
 
24
23
  json = '{
25
24
  "account_id": "abc123",
@@ -77,7 +76,6 @@ describe 'CardHolderAccount' do
77
76
 
78
77
  describe 'test an instance of CardHolderAccount' do
79
78
  it 'should create an instance of CardHolderAccount' do
80
- expect(@instance).to be_instance_of(CityPayApiClient::CardHolderAccount)
81
79
  end
82
80
  end
83
81
  describe 'test attribute "account_id"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'ChargeRequest' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::ChargeRequest.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,6 @@ describe 'ChargeRequest' do
28
27
 
29
28
  describe 'test an instance of ChargeRequest' do
30
29
  it 'should create an instance of ChargeRequest' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::ChargeRequest)
32
30
  end
33
31
  end
34
32
  describe 'test attribute "amount"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::DirectPostRequest do
20
- let(:instance) { CityPayApiClient::DirectPostRequest.new }
21
20
 
22
21
  describe 'test an instance of DirectPostRequest' do
23
22
  it 'should create an instance of DirectPostRequest' do
24
- expect(instance).to be_instance_of(CityPayApiClient::DirectPostRequest)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "amount"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::DomainKeyCheckRequest do
20
- let(:instance) { CityPayApiClient::DomainKeyCheckRequest.new }
21
20
 
22
21
  describe 'test an instance of DomainKeyCheckRequest' do
23
22
  it 'should create an instance of DomainKeyCheckRequest' do
24
- expect(instance).to be_instance_of(CityPayApiClient::DomainKeyCheckRequest)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "domain_key"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::PaylinkTokenRequestModel do
20
- let(:instance) { CityPayApiClient::PaylinkTokenRequestModel.new }
21
20
 
22
21
  describe 'test an instance of PaylinkTokenRequestModel' do
23
22
  it 'should create an instance of PaylinkTokenRequestModel' do
24
- expect(instance).to be_instance_of(CityPayApiClient::PaylinkTokenRequestModel)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "accountno"' do
@@ -17,11 +17,9 @@ require 'date'
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe CityPayApiClient::ProcessBatchRequest do
20
- let(:instance) { CityPayApiClient::ProcessBatchRequest.new }
21
20
 
22
21
  describe 'test an instance of ProcessBatchRequest' do
23
22
  it 'should create an instance of ProcessBatchRequest' do
24
- expect(instance).to be_instance_of(CityPayApiClient::ProcessBatchRequest)
25
23
  end
26
24
  end
27
25
  describe 'test attribute "account_id"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'RefundRequest' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::RefundRequest.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,6 @@ describe 'RefundRequest' do
28
27
 
29
28
  describe 'test an instance of RefundRequest' do
30
29
  it 'should create an instance of RefundRequest' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::RefundRequest)
32
30
  end
33
31
  end
34
32
  describe 'test attribute "amount"' do
@@ -19,7 +19,6 @@ require 'date'
19
19
  describe 'RegisterCard' do
20
20
  before do
21
21
  # run before each test
22
- @instance = CityPayApiClient::RegisterCard.new
23
22
  end
24
23
 
25
24
  after do
@@ -28,7 +27,6 @@ describe 'RegisterCard' do
28
27
 
29
28
  describe 'test an instance of RegisterCard' do
30
29
  it 'should create an instance of RegisterCard' do
31
- expect(@instance).to be_instance_of(CityPayApiClient::RegisterCard)
32
30
  end
33
31
  end
34
32
  describe 'test attribute "cardnumber"' do
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  =begin
2
2
  #CityPay Payment API
3
3
 
4
- # This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security Your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council. These include * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
4
+ # This CityPay API is an HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokenized payments using cardholder Accounts. ## Compliance and Security Your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council. These include * Data must be collected using TLS version 1.2 using [strong cryptography](https://citypay.github.io/api-docs/payment-api/#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive cardholder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
5
5
 
6
6
  Contact: support@citypay.com
7
7
  Generated by: https://openapi-generator.tech
8
- OpenAPI Generator version: 6.2.1
8
+ OpenAPI Generator version: 7.2.0
9
9
 
10
10
  =end
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citypay_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - citypay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-15 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,22 +34,22 @@ dependencies:
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 3.6.0
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '3.6'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.6.0
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 3.6.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '3.6'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.6.0
53
53
  description: CityPay API Client for Ruby
54
54
  email:
55
55
  - support@citypay.com
@@ -106,7 +106,6 @@ files:
106
106
  - docs/ListMerchantsResponse.md
107
107
  - docs/MCC6012.md
108
108
  - docs/Merchant.md
109
- - docs/OperationalApi.md
110
109
  - docs/OperationalFunctionsApi.md
111
110
  - docs/PaResAuthRequest.md
112
111
  - docs/PaylinkAddress.md
@@ -132,7 +131,6 @@ files:
132
131
  - docs/PaylinkTokenStatusChangeRequest.md
133
132
  - docs/PaylinkTokenStatusChangeResponse.md
134
133
  - docs/PaylinkUI.md
135
- - docs/PaymentProcessingApi.md
136
134
  - docs/Ping.md
137
135
  - docs/ProcessBatchRequest.md
138
136
  - docs/ProcessBatchResponse.md
@@ -143,6 +141,21 @@ files:
143
141
  - docs/ThreeDSecure.md
144
142
  - docs/TokenisationResponseModel.md
145
143
  - docs/VoidRequest.md
144
+ - docs/images/3dsv1-challenge.png
145
+ - docs/images/3dsv2-challenge.png
146
+ - docs/images/3dsv2-frictionless.png
147
+ - docs/images/3dsv2-method-challenge.png
148
+ - docs/images/3dsv2-method-frictionless.png
149
+ - docs/images/3dsv2-no3d.png
150
+ - docs/images/citypay-logo.svg
151
+ - docs/images/direct-post-flow.png
152
+ - docs/images/favicon.ico
153
+ - docs/images/header.png
154
+ - docs/images/logo.ai
155
+ - docs/images/logo.png
156
+ - docs/images/logo.svg
157
+ - docs/images/merchant-BPS-workflow.png
158
+ - docs/images/paylink-field-guards.png
146
159
  - lib/.DS_Store
147
160
  - lib/citypay_api_client.rb
148
161
  - lib/citypay_api_client/api/authorisation_and_payment_api__.rb
@@ -331,14 +344,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
331
344
  requirements:
332
345
  - - ">="
333
346
  - !ruby/object:Gem::Version
334
- version: '2.4'
347
+ version: '2.7'
335
348
  required_rubygems_version: !ruby/object:Gem::Requirement
336
349
  requirements:
337
350
  - - ">="
338
351
  - !ruby/object:Gem::Version
339
352
  version: '0'
340
353
  requirements: []
341
- rubygems_version: 3.0.3.1
354
+ rubygems_version: 3.4.10
342
355
  signing_key:
343
356
  specification_version: 4
344
357
  summary: A ruby wrapper for the CityPay API