transferzero-sdk 1.20.1 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c14f85850650af74af7261bb63ff4950f21a5cd725f867aee9bf92cb18ddcadf
4
- data.tar.gz: 66c3bc550b6c4cc20acced97258d4da0290671a50094a5ccd7043655b4486340
3
+ metadata.gz: 210c396980b5a7a7e8f5604e6924caf81a9becceec2ff871ccc5b814d2d57c90
4
+ data.tar.gz: 3cf73381738f45a2c118311b9b973f6b8e4d3a0692fdba5e7982b6bb37baa0d0
5
5
  SHA512:
6
- metadata.gz: bc0cea23646d7587805212fdc9392a37daced357a61d16b867db6c8b34b5ef37066b8560983985f859bd0d8117a9d769c64125c7c749ce0143d3fccdac1e91eb
7
- data.tar.gz: d2012ba2fcb78fc15e32518c07355c10fc97dc6c240dc6d5d72fc5b04fa69e8b1ace8efbd964a008d121b5dc179621ebdece6bf408237d411ba1836eab4f39da
6
+ metadata.gz: abbfe0dd76475f06e5c57edcdfa98bf190ee3e50c18dee67df14b53618adc52b594eec63a44317ce66d9d0b0b715db5aab86a8e4abfbf2e10589978ff5b2afd5
7
+ data.tar.gz: 8d2af0242623ea04b7d6a6cbc3e9c7906eae35826b51a0425c39fe85c1556fb39b6c86bda21d7840d3c11dddc5a6885bf3149921e7b05e77c65823a1287057bc
data/Gemfile.lock ADDED
@@ -0,0 +1,92 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ transferzero-sdk (1.11.0)
5
+ activesupport (>= 4)
6
+ json (>= 1.4)
7
+ typhoeus (~> 1.0, >= 1.0.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ZenTest (4.12.0)
13
+ activesupport (6.1.3)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (>= 1.6, < 2)
16
+ minitest (>= 5.1)
17
+ tzinfo (~> 2.0)
18
+ zeitwerk (~> 2.3)
19
+ addressable (2.7.0)
20
+ public_suffix (>= 2.0.2, < 5.0)
21
+ autotest (4.4.6)
22
+ ZenTest (>= 4.4.1)
23
+ autotest-fsevent (0.2.17)
24
+ sys-uname
25
+ autotest-growl (0.2.16)
26
+ autotest-rails-pure (4.1.2)
27
+ byebug (11.1.3)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.1.8)
30
+ crack (0.4.4)
31
+ diff-lcs (1.4.4)
32
+ ethon (0.12.0)
33
+ ffi (>= 1.3.0)
34
+ ffi (1.13.1)
35
+ hashdiff (1.0.1)
36
+ i18n (1.8.9)
37
+ concurrent-ruby (~> 1.0)
38
+ json (2.5.1)
39
+ method_source (1.0.0)
40
+ minitest (5.14.3)
41
+ pry (0.13.1)
42
+ coderay (~> 1.1)
43
+ method_source (~> 1.0)
44
+ pry-byebug (3.9.0)
45
+ byebug (~> 11.0)
46
+ pry (~> 0.13.0)
47
+ public_suffix (4.0.6)
48
+ rake (12.0.0)
49
+ rspec (3.10.0)
50
+ rspec-core (~> 3.10.0)
51
+ rspec-expectations (~> 3.10.0)
52
+ rspec-mocks (~> 3.10.0)
53
+ rspec-core (3.10.0)
54
+ rspec-support (~> 3.10.0)
55
+ rspec-expectations (3.10.0)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.10.0)
58
+ rspec-mocks (3.10.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.10.0)
61
+ rspec-support (3.10.0)
62
+ sys-uname (1.2.2)
63
+ ffi (~> 1.1)
64
+ typhoeus (1.4.0)
65
+ ethon (>= 0.9.0)
66
+ tzinfo (2.0.4)
67
+ concurrent-ruby (~> 1.0)
68
+ vcr (3.0.3)
69
+ webmock (1.24.6)
70
+ addressable (>= 2.3.6)
71
+ crack (>= 0.3.2)
72
+ hashdiff
73
+ zeitwerk (2.4.2)
74
+
75
+ PLATFORMS
76
+ ruby
77
+
78
+ DEPENDENCIES
79
+ ZenTest (~> 4.11, >= 4.11.2)
80
+ autotest (~> 4.4, >= 4.4.6)
81
+ autotest-fsevent (~> 0.2, >= 0.2.12)
82
+ autotest-growl (~> 0.2, >= 0.2.16)
83
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
84
+ pry-byebug
85
+ rake (~> 12.0.0)
86
+ rspec (~> 3.6, >= 3.6.0)
87
+ transferzero-sdk!
88
+ vcr (~> 3.0, >= 3.0.1)
89
+ webmock (~> 1.24, >= 1.24.3)
90
+
91
+ BUNDLED WITH
92
+ 1.17.3
data/README.md CHANGED
@@ -7,7 +7,7 @@ Reference documentation for the TransferZero API V1
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 1.20.1
10
+ - Package version: 1.21.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  For more information, please visit:
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./transferzero-sdk-1.20.1.gem
34
+ gem install ./transferzero-sdk-1.21.0.gem
35
35
  ```
36
- (for development, run `gem install --dev ./transferzero-sdk-1.20.1.gem` to install the development dependencies)
36
+ (for development, run `gem install --dev ./transferzero-sdk-1.21.0.gem` to install the development dependencies)
37
37
 
38
38
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
39
39
 
40
40
  Finally add this to the Gemfile:
41
41
 
42
- gem 'transferzero-sdk', '~> 1.20.1'
42
+ gem 'transferzero-sdk', '~> 1.21.0'
43
43
 
44
44
  ### Install from Git
45
45
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **redirect_url** | **String** | This is where the sender should be redirected back when the payment has been finished | [optional]
9
9
  **phone_number** | **String** | The phone number where the funds should be collected from | [optional]
10
10
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
11
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
11
12
  **otp** | **String** | The OTP that the sender received in otp verified ussd popup ux flow. | [optional]
12
13
  **refund_address** | **String** | Please make sure the refund_address is a valid BTC address belonging to the sender, as that is going to be used in case the transaction has to be refunded. | [optional]
13
14
 
@@ -20,6 +21,7 @@ instance = TransferZero::PayinMethodDetails.new(payment_method: null,
20
21
  redirect_url: null,
21
22
  phone_number: +2569999999,
22
23
  mobile_provider: null,
24
+ country: null,
23
25
  otp: null,
24
26
  refund_address: null)
25
27
  ```
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **phone_number** | **String** | The phone number where the funds should be collected from | [optional]
8
8
  **mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
9
+ **country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
9
10
  **otp** | **String** | The OTP that the sender received in otp verified ussd popup ux flow. | [optional]
10
11
 
11
12
  ## Code Sample
@@ -15,6 +16,7 @@ require 'TransferZero'
15
16
 
16
17
  instance = TransferZero::PayinMethodDetailsMobile.new(phone_number: +2569999999,
17
18
  mobile_provider: null,
19
+ country: null,
18
20
  otp: null)
19
21
  ```
20
22
 
@@ -36,7 +36,7 @@ module TransferZero
36
36
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
37
37
  def initialize(config = Configuration.default)
38
38
  @config = config
39
- @user_agent = "TransferZero-SDK/Ruby/1.20.1"
39
+ @user_agent = "TransferZero-SDK/Ruby/1.21.0"
40
40
  @default_headers = {
41
41
  'Content-Type' => 'application/json',
42
42
  'User-Agent' => @user_agent
@@ -26,6 +26,8 @@ class PayinMethodDetails
26
26
 
27
27
  attr_accessor :mobile_provider
28
28
 
29
+ attr_accessor :country
30
+
29
31
  # The OTP that the sender received in otp verified ussd popup ux flow.
30
32
  attr_accessor :otp
31
33
 
@@ -39,6 +41,7 @@ class PayinMethodDetails
39
41
  :'redirect_url' => :'redirect_url',
40
42
  :'phone_number' => :'phone_number',
41
43
  :'mobile_provider' => :'mobile_provider',
44
+ :'country' => :'country',
42
45
  :'otp' => :'otp',
43
46
  :'refund_address' => :'refund_address'
44
47
  }
@@ -51,6 +54,7 @@ class PayinMethodDetails
51
54
  :'redirect_url' => :'String',
52
55
  :'phone_number' => :'String',
53
56
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
57
+ :'country' => :'PayoutMethodCountryEnum',
54
58
  :'otp' => :'String',
55
59
  :'refund_address' => :'String'
56
60
  }
@@ -96,6 +100,10 @@ class PayinMethodDetails
96
100
  self.mobile_provider = attributes[:'mobile_provider']
97
101
  end
98
102
 
103
+ if attributes.key?(:'country')
104
+ self.country = attributes[:'country']
105
+ end
106
+
99
107
  if attributes.key?(:'otp')
100
108
  self.otp = attributes[:'otp']
101
109
  end
@@ -143,6 +151,7 @@ class PayinMethodDetails
143
151
  redirect_url == o.redirect_url &&
144
152
  phone_number == o.phone_number &&
145
153
  mobile_provider == o.mobile_provider &&
154
+ country == o.country &&
146
155
  otp == o.otp &&
147
156
  refund_address == o.refund_address
148
157
  end
@@ -156,7 +165,7 @@ class PayinMethodDetails
156
165
  # Calculates hash code according to all attributes.
157
166
  # @return [Integer] Hash code
158
167
  def hash
159
- [payment_method, redirect_url, phone_number, mobile_provider, otp, refund_address].hash
168
+ [payment_method, redirect_url, phone_number, mobile_provider, country, otp, refund_address].hash
160
169
  end
161
170
 
162
171
  require 'active_support/core_ext/hash'
@@ -20,6 +20,8 @@ class PayinMethodDetailsMobile
20
20
 
21
21
  attr_accessor :mobile_provider
22
22
 
23
+ attr_accessor :country
24
+
23
25
  # The OTP that the sender received in otp verified ussd popup ux flow.
24
26
  attr_accessor :otp
25
27
 
@@ -28,6 +30,7 @@ class PayinMethodDetailsMobile
28
30
  {
29
31
  :'phone_number' => :'phone_number',
30
32
  :'mobile_provider' => :'mobile_provider',
33
+ :'country' => :'country',
31
34
  :'otp' => :'otp'
32
35
  }
33
36
  end
@@ -37,6 +40,7 @@ class PayinMethodDetailsMobile
37
40
  {
38
41
  :'phone_number' => :'String',
39
42
  :'mobile_provider' => :'PayoutMethodMobileProviderEnum',
43
+ :'country' => :'PayoutMethodCountryEnum',
40
44
  :'otp' => :'String'
41
45
  }
42
46
  end
@@ -64,6 +68,10 @@ class PayinMethodDetailsMobile
64
68
  self.mobile_provider = attributes[:'mobile_provider']
65
69
  end
66
70
 
71
+ if attributes.key?(:'country')
72
+ self.country = attributes[:'country']
73
+ end
74
+
67
75
  if attributes.key?(:'otp')
68
76
  self.otp = attributes[:'otp']
69
77
  end
@@ -89,6 +97,7 @@ class PayinMethodDetailsMobile
89
97
  self.class == o.class &&
90
98
  phone_number == o.phone_number &&
91
99
  mobile_provider == o.mobile_provider &&
100
+ country == o.country &&
92
101
  otp == o.otp
93
102
  end
94
103
 
@@ -101,7 +110,7 @@ class PayinMethodDetailsMobile
101
110
  # Calculates hash code according to all attributes.
102
111
  # @return [Integer] Hash code
103
112
  def hash
104
- [phone_number, mobile_provider, otp].hash
113
+ [phone_number, mobile_provider, country, otp].hash
105
114
  end
106
115
 
107
116
  require 'active_support/core_ext/hash'
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.20.1'
14
+ VERSION = '1.21.0'
15
15
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transferzero-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -68,22 +68,22 @@ dependencies:
68
68
  name: rspec
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '3.6'
74
71
  - - ">="
75
72
  - !ruby/object:Gem::Version
76
73
  version: 3.6.0
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.6'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '3.6'
84
81
  - - ">="
85
82
  - !ruby/object:Gem::Version
86
83
  version: 3.6.0
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '3.6'
87
87
  description: Ruby library for the TransferZero API
88
88
  email:
89
89
  - engineers@transferzero.com
@@ -92,6 +92,7 @@ extensions: []
92
92
  extra_rdoc_files: []
93
93
  files:
94
94
  - Gemfile
95
+ - Gemfile.lock
95
96
  - LICENSE
96
97
  - README.md
97
98
  - Rakefile
@@ -506,6 +507,12 @@ files:
506
507
  - spec/models/webhook_log_spec.rb
507
508
  - spec/models/webhook_spec.rb
508
509
  - spec/spec_helper.rb
510
+ - transferzero-sdk-1.19.0.gem
511
+ - transferzero-sdk-1.19.2.gem
512
+ - transferzero-sdk-1.19.3.gem
513
+ - transferzero-sdk-1.19.4.gem
514
+ - transferzero-sdk-1.19.5.gem
515
+ - transferzero-sdk-1.20.1.gem
509
516
  - transferzero-sdk.gemspec
510
517
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
511
518
  licenses:
@@ -526,7 +533,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
526
533
  - !ruby/object:Gem::Version
527
534
  version: '0'
528
535
  requirements: []
529
- rubygems_version: 3.1.6
536
+ rubygems_version: 3.0.3
530
537
  signing_key:
531
538
  specification_version: 4
532
539
  summary: TransferZero API Ruby Gem