cloudpayments 0.4.0 → 0.4.1

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: 349f89dbce1afcabbca53d53b85ecde1c3bede1b5cc6612fa25535e6c8798740
4
- data.tar.gz: '091e48f95944de49a2c2b799e9b7f050bfb58450d1a63f6d28a85b3673ec2f76'
3
+ metadata.gz: 34375a70e47d3fe33b24b207d430db57bbfba877f195202931609ea0c7ea2e67
4
+ data.tar.gz: 390825dcb308c8d90c79b270ec928a5fa9171beb4581011eb1eb98baf1784d1f
5
5
  SHA512:
6
- metadata.gz: 110a916c702106ca175b24323fe5b6c385d319215dc0aa9b0136864494c5b17cf7a3aad3d4d729f8456e548b18bb41f9553f707418dd91d05285f5c7d197edfd
7
- data.tar.gz: e0d212362982353f35f5d180c7d88c9e60feceb8d1604117db2291d5617086cdbb26918286ce5eb64882a394bcba2b0bf8f74043b23a4b967ac7402fd78c6828
6
+ metadata.gz: b5c07b9d0e5554d60b0385e2c26ffbe9e94b93a7f97e6e478bf88df2a0644713d260c96e5b185a298c1d6aa39607d62a74e1af7d0d8bcb9c2e765c29c05d9d6f
7
+ data.tar.gz: 7388f1836c960801f449b924cd329f6ed1646684fcaeccc399daa8d4189d1c67d6179ffb7f8cefa72f5731f73d13771cb07b8909fd29b36fa8d7b544f259414d
@@ -0,0 +1,21 @@
1
+ module Cloudpayments
2
+ module Client
3
+ module Request
4
+ module Receipts
5
+ module Correction
6
+ class Create < Cloudpayments::Client::Request::Base
7
+ attr_reader :params
8
+
9
+ def initialize(params)
10
+ @params = params
11
+ end
12
+
13
+ def call
14
+ post("kkt/correction-receipt", params)
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Cloudpayments
2
+ module Client
3
+ module Request
4
+ module Receipts
5
+ module Correction
6
+ class Get < Cloudpayments::Client::Request::Base
7
+ attr_reader :id
8
+
9
+ def initialize(id)
10
+ @id = id
11
+ end
12
+
13
+ def call
14
+ post("kkt/correction-receipt/get", { Id: id })
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Cloudpayments
2
+ module Client
3
+ module Request
4
+ module Receipts
5
+ module Correction
6
+ class GetStatus < Cloudpayments::Client::Request::Base
7
+ attr_reader :id
8
+
9
+ def initialize(id)
10
+ @id = id
11
+ end
12
+
13
+ def call
14
+ post("kkt/correction-receipt/status/get", { Id: id })
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
data/lib/cloudpayments.rb CHANGED
@@ -8,6 +8,9 @@ require_relative "cloudpayments/client/request/base"
8
8
  require_relative "cloudpayments/client/request/receipts/create"
9
9
  require_relative "cloudpayments/client/request/receipts/get_status"
10
10
  require_relative "cloudpayments/client/request/receipts/get"
11
+ require_relative "cloudpayments/client/request/receipts/correction/create"
12
+ require_relative "cloudpayments/client/request/receipts/correction/get_status"
13
+ require_relative "cloudpayments/client/request/receipts/correction/get"
11
14
 
12
15
  module Cloudpayments
13
16
  class << self
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudpayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Spiridonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-19 00:00:00.000000000 Z
11
+ date: 2024-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.7.10
19
+ version: '3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.7.10
26
+ version: '3'
27
27
  description:
28
28
  email: alex9spiridonov@gmail.com
29
29
  executables: []
@@ -33,6 +33,9 @@ files:
33
33
  - README.md
34
34
  - lib/cloudpayments.rb
35
35
  - lib/cloudpayments/client/request/base.rb
36
+ - lib/cloudpayments/client/request/receipts/correction/create.rb
37
+ - lib/cloudpayments/client/request/receipts/correction/get.rb
38
+ - lib/cloudpayments/client/request/receipts/correction/get_status.rb
36
39
  - lib/cloudpayments/client/request/receipts/create.rb
37
40
  - lib/cloudpayments/client/request/receipts/get.rb
38
41
  - lib/cloudpayments/client/request/receipts/get_status.rb