six_saferpay 1.2.3 → 1.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ea96a4a1b6b8e55b6efead411c804f3d1f53988abb0aa6e5ca28b0621045c7f
4
- data.tar.gz: 822a87104aee2873660031adc16ebd3cbecbf5158264a0249b8b8862f79756d9
3
+ metadata.gz: 27d369fedb3252bc2081514459a5e0f0e8aace5ab9add09c4dd943a24a207ad3
4
+ data.tar.gz: d3226829fb863d2ed9a96682e428cfe48793034e582ef9ee988d9915786ec5d1
5
5
  SHA512:
6
- metadata.gz: 4fa4163aa019b661c4c3a4b7b76905e9bdfe12178b7a49f1c367ca8f1a0b6a786bf59e81278a1fafefd2845ced703a0ad18c46dd25c53b24ff4ae67a7589eeed
7
- data.tar.gz: 47316d2aa1028ac01f58bfab01d4f3ad7125bdbc00c4304882c64f33c969617179fc379b73456fe3523aafdcc3bb9b76afc62b6f792535944c24c3bce6617bee
6
+ metadata.gz: 450e5f6b865dd7eb922be807141832ae10b0bec73ec9478122294b79c5c75ffcb1eb941bbe2d520519c8bd0d46ebf0be03670fb5f9ed8620056e3d0bfe80b8f4
7
+ data.tar.gz: 23bb29be70d96b188dafcd6993f40719fa0570ab593fd97380d029b26fcb1070f7b1ba7e8708a28a422af05240e287a653a0fc2a5ead4a9bf8969d4aa03af776
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- six_saferpay (1.2.1)
4
+ six_saferpay (1.2.3)
5
5
  activesupport (~> 5.0, >= 5.0.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Gem Version](https://badge.fury.io/rb/six_saferpay.svg)](https://badge.fury.io/rb/six_saferpay)
1
2
  [![Build Status](https://travis-ci.org/fadendaten/six_saferpay.svg?branch=master)](https://travis-ci.org/fadendaten/six_saferpay)
2
3
  [![Maintainability](https://api.codeclimate.com/v1/badges/76c9d1d0f261c276de96/maintainability)](https://codeclimate.com/github/fadendaten/six_saferpay/maintainability)
3
4
 
@@ -74,14 +75,13 @@ If the request goes wrong the client raises a ```SixSaferpay::Error```
74
75
 
75
76
  You will find for all the other requests an predefined object. Feel free to use this according the SIX Saferpay API documentation.
76
77
 
77
- ## Documentation
78
-
79
78
  ### SIX Saferpay Transaction
80
79
 
81
80
  TODO
82
81
 
82
+ ## Documentation
83
83
 
84
- [https://saferpay.github.io/jsonapi](Saferpay JSON API)
84
+ [SIX Saferpay JSON API](https://saferpay.github.io/jsonapi)
85
85
 
86
86
  ## Development
87
87
 
@@ -93,6 +93,49 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
93
93
 
94
94
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/six_saferpay.
95
95
 
96
+ ### Implementation Status
97
+
98
+ #### SIX Payment Page
99
+
100
+ - [x] Initialize
101
+ - [x] Assert
102
+
103
+ #### SIX Transaction
104
+
105
+ - [x] Initialize
106
+ - [x] Authorize
107
+ - [x] QueryPaymentMeans
108
+ - [x] AdjustAmount
109
+ - [x] AuthorizeDirect
110
+ - [x] AuthorizeReferenced
111
+ - [x] Capture
112
+ - [x] MultipartCapture
113
+ - [x] AssertCapture
114
+ - [x] MultipartFinalize
115
+ - [x] Refund
116
+ - [x] AssertRefund
117
+ - [ ] RefundDirect
118
+ - [x] Cancel
119
+ - [ ] RedirectPayment
120
+ - [ ] AssertRedirectPayment
121
+ - [ ] Inquire
122
+
123
+ #### SIX Secure Care Data
124
+
125
+ - [ ] Alias Insert
126
+ - [ ] Alias AssertInsert
127
+ - [ ] Alias InsertDirect
128
+ - [ ] Alias Delete
129
+
130
+ #### SIX Batch
131
+
132
+ - [ ] Batch Close
133
+
134
+ #### SIX OmniChannel
135
+
136
+ - [ ] InsertAlias
137
+ - [ ] AcquireTransaction
138
+
96
139
  ## License
97
140
 
98
141
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,38 @@
1
+ module SixSaferpay
2
+ module SixTransaction
3
+ class MultipartFinalize
4
+
5
+ attr_accessor(:request_header,
6
+ :transaction_reference
7
+ )
8
+
9
+
10
+ def initialize(request_header: nil,
11
+ transaction_reference: )
12
+ @request_header = request_header || SixSaferpay::RequestHeader.new()
13
+ @transaction_reference = SixSaferpay::TransactionReference.new(transaction_reference.to_h) if transaction_reference
14
+ end
15
+
16
+ def to_hash
17
+ hash = Hash.new
18
+ hash.merge!(request_header: @request_header.to_h) if @request_header
19
+ hash.merge!(transaction_reference: @transaction_reference.to_h) if @transaction_reference
20
+ hash
21
+ end
22
+ alias_method :to_h, :to_hash
23
+
24
+ def to_json
25
+ to_hash.to_json
26
+ end
27
+
28
+ def url
29
+ '/Payment/v1/Transaction/MultipartFinalize'
30
+ end
31
+
32
+ def response_class
33
+ SixSaferpay::SixTransaction::MultipartFinalizeResponse
34
+ end
35
+
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,20 @@
1
+ module SixSaferpay
2
+ module SixTransaction
3
+ class MultipartFinalizeResponse
4
+
5
+ attr_accessor(:response_header)
6
+
7
+ def initialize(response_header:)
8
+ @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
9
+ end
10
+
11
+ def to_hash
12
+ hash = Hash.new
13
+ hash.merge!(response_header: @response_header.to_h) if @response_header
14
+ hash
15
+ end
16
+ alias_method :to_h, :to_hash
17
+
18
+ end
19
+ end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module SixSaferpay
2
- VERSION = "1.2.3"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six_saferpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fadendaten GmbH
@@ -226,6 +226,7 @@ files:
226
226
  - lib/six_saferpay/api/six_transaction/requests/capture.rb
227
227
  - lib/six_saferpay/api/six_transaction/requests/initialize.rb
228
228
  - lib/six_saferpay/api/six_transaction/requests/multipart_capture.rb
229
+ - lib/six_saferpay/api/six_transaction/requests/multipart_finalize.rb
229
230
  - lib/six_saferpay/api/six_transaction/requests/query_payment_means.rb
230
231
  - lib/six_saferpay/api/six_transaction/requests/refund.rb
231
232
  - lib/six_saferpay/api/six_transaction/responses/adjust_amount_response.rb
@@ -238,6 +239,7 @@ files:
238
239
  - lib/six_saferpay/api/six_transaction/responses/capture_response.rb
239
240
  - lib/six_saferpay/api/six_transaction/responses/initialize_response.rb
240
241
  - lib/six_saferpay/api/six_transaction/responses/multipart_capture_response.rb
242
+ - lib/six_saferpay/api/six_transaction/responses/multipart_finalize_response.rb
241
243
  - lib/six_saferpay/api/six_transaction/responses/query_payment_means_response.rb
242
244
  - lib/six_saferpay/api/six_transaction/responses/refund_response.rb
243
245
  - lib/six_saferpay/client.rb