growsurf-ruby 0.6.0 → 0.6.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: bf2044f5c1394f045017fb26bbef5c1f32a73927bd70bb8219c05ff1e2954a62
4
- data.tar.gz: 53a2d8cc6e160ea451f573f6b7976512944523493c6e55666e7357af4cef2f18
3
+ metadata.gz: 4c971f7f825ae2b01c5ac6c90c1bb0ea6cb98e62f806d50d96ebacf0f060e64c
4
+ data.tar.gz: cd5ea6ea42c870db2b39d635e75c90b50ba630010b918618d9a339353311178f
5
5
  SHA512:
6
- metadata.gz: fe2d3d09e5689fba7eee1300c9cbc1f0ea5b574a0f3b458fb26d290e2b87ea4274e3ccc866eb17f3df0d511c35a782f0defec716237afa0cb065b2af6cc9156a
7
- data.tar.gz: 4e744e8ec4eb87a69ab0e509983db6fdb006d77443cd5e7664b29ed257b58af55be456ceea322e083993b548062449779540eeef0e2af34fe66eda0f5b796071
6
+ metadata.gz: 6156285b4fcc4ea5e21e3ebbb24b8fa566ba91f3dfac3de601816c2fc22140caaca8190b5dfa8594ae686066953a76b46152dacd9f4befc336b0ec8a6649ef2e
7
+ data.tar.gz: 2a819a4fb207ec68a72b1d17accefba64e53627ec777bda3029322aab0abbb96063340bd5a57fa647a96dbc37e0f5542e311ff05e22608c63591fe604fe333a2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1 (2026-06-26)
4
+
5
+ Full Changelog: [v0.6.0...v0.6.1](https://github.com/growsurf/growsurf-ruby/compare/v0.6.0...v0.6.1)
6
+
3
7
  ## 0.6.0 (2026-06-23)
4
8
 
5
9
  Full Changelog: [v0.5.0...v0.6.0](https://github.com/growsurf/growsurf-ruby/compare/v0.5.0...v0.6.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "growsurf-ruby", "~> 0.6.0"
20
+ gem "growsurf-ruby", "~> 0.6.1"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -33,8 +33,8 @@ module GrowsurfRuby
33
33
 
34
34
  # @!attribute amount
35
35
  #
36
- # @return [Integer]
37
- required :amount, Integer
36
+ # @return [Integer, nil]
37
+ required :amount, Integer, nil?: true
38
38
 
39
39
  # @!attribute created_at
40
40
  #
@@ -58,8 +58,8 @@ module GrowsurfRuby
58
58
 
59
59
  # @!attribute sale_amount
60
60
  #
61
- # @return [Integer]
62
- required :sale_amount, Integer, api_name: :saleAmount
61
+ # @return [Integer, nil]
62
+ required :sale_amount, Integer, api_name: :saleAmount, nil?: true
63
63
 
64
64
  # @!attribute status
65
65
  #
@@ -121,22 +121,22 @@ module GrowsurfRuby
121
121
  # @return [Integer, nil]
122
122
  optional :reversed_at, Integer, api_name: :reversedAt
123
123
 
124
- # @!attribute sale_amount_amount_in_campaign_currency
124
+ # @!attribute sale_amount_in_campaign_currency
125
125
  #
126
126
  # @return [Integer, nil]
127
- optional :sale_amount_amount_in_campaign_currency,
127
+ optional :sale_amount_in_campaign_currency,
128
128
  Integer,
129
- api_name: :saleAmountAmountInCampaignCurrency,
129
+ api_name: :saleAmountInCampaignCurrency,
130
130
  nil?: true
131
131
 
132
- # @!method initialize(id:, amount:, created_at:, currency_iso:, referred_id:, referrer_id:, sale_amount:, status:, amount_in_campaign_currency: nil, approved_at: nil, campaign_currency_iso: nil, exchange_rate: nil, exchange_rate_at: nil, fx_error: nil, hold_duration: nil, paid_at: nil, payout_queued_at: nil, provider: nil, reversed_at: nil, sale_amount_amount_in_campaign_currency: nil)
132
+ # @!method initialize(id:, amount:, created_at:, currency_iso:, referred_id:, referrer_id:, sale_amount:, status:, amount_in_campaign_currency: nil, approved_at: nil, campaign_currency_iso: nil, exchange_rate: nil, exchange_rate_at: nil, fx_error: nil, hold_duration: nil, paid_at: nil, payout_queued_at: nil, provider: nil, reversed_at: nil, sale_amount_in_campaign_currency: nil)
133
133
  # @param id [String]
134
- # @param amount [Integer]
134
+ # @param amount [Integer, nil]
135
135
  # @param created_at [Integer]
136
136
  # @param currency_iso [String]
137
137
  # @param referred_id [String]
138
138
  # @param referrer_id [String]
139
- # @param sale_amount [Integer]
139
+ # @param sale_amount [Integer, nil]
140
140
  # @param status [Symbol, GrowsurfRuby::Models::ParticipantCommissionList::Commission::Status]
141
141
  # @param amount_in_campaign_currency [Integer, nil]
142
142
  # @param approved_at [Integer]
@@ -149,7 +149,7 @@ module GrowsurfRuby
149
149
  # @param payout_queued_at [Integer]
150
150
  # @param provider [String, nil]
151
151
  # @param reversed_at [Integer]
152
- # @param sale_amount_amount_in_campaign_currency [Integer, nil]
152
+ # @param sale_amount_in_campaign_currency [Integer, nil]
153
153
 
154
154
  # @see GrowsurfRuby::Models::ParticipantCommissionList::Commission#status
155
155
  module Status
@@ -101,7 +101,12 @@ module GrowsurfRuby
101
101
  # @return [String, nil]
102
102
  optional :provider, String, nil?: true
103
103
 
104
- # @!method initialize(id:, amount:, commission_ids:, created_at:, currency_iso:, participant_id:, status:, amount_in_campaign_currency: nil, campaign_currency_iso: nil, exchange_rate: nil, exchange_rate_at: nil, failed_at: nil, fx_error: nil, issued_at: nil, provider: nil)
104
+ # @!attribute queued_at
105
+ #
106
+ # @return [Integer, nil]
107
+ optional :queued_at, Integer, api_name: :queuedAt
108
+
109
+ # @!method initialize(id:, amount:, commission_ids:, created_at:, currency_iso:, participant_id:, status:, amount_in_campaign_currency: nil, campaign_currency_iso: nil, exchange_rate: nil, exchange_rate_at: nil, failed_at: nil, fx_error: nil, issued_at: nil, provider: nil, queued_at: nil)
105
110
  # @param id [String]
106
111
  # @param amount [Integer]
107
112
  # @param commission_ids [Array<String>]
@@ -117,6 +122,7 @@ module GrowsurfRuby
117
122
  # @param fx_error [String, nil]
118
123
  # @param issued_at [Integer]
119
124
  # @param provider [String, nil]
125
+ # @param queued_at [Integer]
120
126
 
121
127
  # @see GrowsurfRuby::Models::ParticipantPayoutList::Payout#status
122
128
  module Status
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrowsurfRuby
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
@@ -60,7 +60,7 @@ module GrowsurfRuby
60
60
  sig { returns(String) }
61
61
  attr_accessor :id
62
62
 
63
- sig { returns(Integer) }
63
+ sig { returns(T.nilable(Integer)) }
64
64
  attr_accessor :amount
65
65
 
66
66
  sig { returns(Integer) }
@@ -75,7 +75,7 @@ module GrowsurfRuby
75
75
  sig { returns(String) }
76
76
  attr_accessor :referrer_id
77
77
 
78
- sig { returns(Integer) }
78
+ sig { returns(T.nilable(Integer)) }
79
79
  attr_accessor :sale_amount
80
80
 
81
81
  sig do
@@ -134,17 +134,17 @@ module GrowsurfRuby
134
134
  attr_writer :reversed_at
135
135
 
136
136
  sig { returns(T.nilable(Integer)) }
137
- attr_accessor :sale_amount_amount_in_campaign_currency
137
+ attr_accessor :sale_amount_in_campaign_currency
138
138
 
139
139
  sig do
140
140
  params(
141
141
  id: String,
142
- amount: Integer,
142
+ amount: T.nilable(Integer),
143
143
  created_at: Integer,
144
144
  currency_iso: String,
145
145
  referred_id: String,
146
146
  referrer_id: String,
147
- sale_amount: Integer,
147
+ sale_amount: T.nilable(Integer),
148
148
  status:
149
149
  GrowsurfRuby::ParticipantCommissionList::Commission::Status::OrSymbol,
150
150
  amount_in_campaign_currency: T.nilable(Integer),
@@ -158,7 +158,7 @@ module GrowsurfRuby
158
158
  payout_queued_at: Integer,
159
159
  provider: T.nilable(String),
160
160
  reversed_at: Integer,
161
- sale_amount_amount_in_campaign_currency: T.nilable(Integer)
161
+ sale_amount_in_campaign_currency: T.nilable(Integer)
162
162
  ).returns(T.attached_class)
163
163
  end
164
164
  def self.new(
@@ -181,7 +181,7 @@ module GrowsurfRuby
181
181
  payout_queued_at: nil,
182
182
  provider: nil,
183
183
  reversed_at: nil,
184
- sale_amount_amount_in_campaign_currency: nil
184
+ sale_amount_in_campaign_currency: nil
185
185
  )
186
186
  end
187
187
 
@@ -189,12 +189,12 @@ module GrowsurfRuby
189
189
  override.returns(
190
190
  {
191
191
  id: String,
192
- amount: Integer,
192
+ amount: T.nilable(Integer),
193
193
  created_at: Integer,
194
194
  currency_iso: String,
195
195
  referred_id: String,
196
196
  referrer_id: String,
197
- sale_amount: Integer,
197
+ sale_amount: T.nilable(Integer),
198
198
  status:
199
199
  GrowsurfRuby::ParticipantCommissionList::Commission::Status::TaggedSymbol,
200
200
  amount_in_campaign_currency: T.nilable(Integer),
@@ -208,7 +208,7 @@ module GrowsurfRuby
208
208
  payout_queued_at: Integer,
209
209
  provider: T.nilable(String),
210
210
  reversed_at: Integer,
211
- sale_amount_amount_in_campaign_currency: T.nilable(Integer)
211
+ sale_amount_in_campaign_currency: T.nilable(Integer)
212
212
  }
213
213
  )
214
214
  end
@@ -109,6 +109,12 @@ module GrowsurfRuby
109
109
  sig { returns(T.nilable(String)) }
110
110
  attr_accessor :provider
111
111
 
112
+ sig { returns(T.nilable(Integer)) }
113
+ attr_reader :queued_at
114
+
115
+ sig { params(queued_at: Integer).void }
116
+ attr_writer :queued_at
117
+
112
118
  sig do
113
119
  params(
114
120
  id: String,
@@ -126,7 +132,8 @@ module GrowsurfRuby
126
132
  failed_at: Integer,
127
133
  fx_error: T.nilable(String),
128
134
  issued_at: Integer,
129
- provider: T.nilable(String)
135
+ provider: T.nilable(String),
136
+ queued_at: Integer
130
137
  ).returns(T.attached_class)
131
138
  end
132
139
  def self.new(
@@ -144,7 +151,8 @@ module GrowsurfRuby
144
151
  failed_at: nil,
145
152
  fx_error: nil,
146
153
  issued_at: nil,
147
- provider: nil
154
+ provider: nil,
155
+ queued_at: nil
148
156
  )
149
157
  end
150
158
 
@@ -166,7 +174,8 @@ module GrowsurfRuby
166
174
  failed_at: Integer,
167
175
  fx_error: T.nilable(String),
168
176
  issued_at: Integer,
169
- provider: T.nilable(String)
177
+ provider: T.nilable(String),
178
+ queued_at: Integer
170
179
  }
171
180
  )
172
181
  end
@@ -29,12 +29,12 @@ module GrowsurfRuby
29
29
  type commission =
30
30
  {
31
31
  id: String,
32
- amount: Integer,
32
+ amount: Integer?,
33
33
  created_at: Integer,
34
34
  currency_iso: String,
35
35
  referred_id: String,
36
36
  referrer_id: String,
37
- sale_amount: Integer,
37
+ sale_amount: Integer?,
38
38
  status: GrowsurfRuby::Models::ParticipantCommissionList::Commission::status,
39
39
  amount_in_campaign_currency: Integer?,
40
40
  approved_at: Integer,
@@ -47,13 +47,13 @@ module GrowsurfRuby
47
47
  payout_queued_at: Integer,
48
48
  provider: String?,
49
49
  reversed_at: Integer,
50
- sale_amount_amount_in_campaign_currency: Integer?
50
+ sale_amount_in_campaign_currency: Integer?
51
51
  }
52
52
 
53
53
  class Commission < GrowsurfRuby::Internal::Type::BaseModel
54
54
  attr_accessor id: String
55
55
 
56
- attr_accessor amount: Integer
56
+ attr_accessor amount: Integer?
57
57
 
58
58
  attr_accessor created_at: Integer
59
59
 
@@ -63,7 +63,7 @@ module GrowsurfRuby
63
63
 
64
64
  attr_accessor referrer_id: String
65
65
 
66
- attr_accessor sale_amount: Integer
66
+ attr_accessor sale_amount: Integer?
67
67
 
68
68
  attr_accessor status: GrowsurfRuby::Models::ParticipantCommissionList::Commission::status
69
69
 
@@ -99,16 +99,16 @@ module GrowsurfRuby
99
99
 
100
100
  def reversed_at=: (Integer) -> Integer
101
101
 
102
- attr_accessor sale_amount_amount_in_campaign_currency: Integer?
102
+ attr_accessor sale_amount_in_campaign_currency: Integer?
103
103
 
104
104
  def initialize: (
105
105
  id: String,
106
- amount: Integer,
106
+ amount: Integer?,
107
107
  created_at: Integer,
108
108
  currency_iso: String,
109
109
  referred_id: String,
110
110
  referrer_id: String,
111
- sale_amount: Integer,
111
+ sale_amount: Integer?,
112
112
  status: GrowsurfRuby::Models::ParticipantCommissionList::Commission::status,
113
113
  ?amount_in_campaign_currency: Integer?,
114
114
  ?approved_at: Integer,
@@ -121,17 +121,17 @@ module GrowsurfRuby
121
121
  ?payout_queued_at: Integer,
122
122
  ?provider: String?,
123
123
  ?reversed_at: Integer,
124
- ?sale_amount_amount_in_campaign_currency: Integer?
124
+ ?sale_amount_in_campaign_currency: Integer?
125
125
  ) -> void
126
126
 
127
127
  def to_hash: -> {
128
128
  id: String,
129
- amount: Integer,
129
+ amount: Integer?,
130
130
  created_at: Integer,
131
131
  currency_iso: String,
132
132
  referred_id: String,
133
133
  referrer_id: String,
134
- sale_amount: Integer,
134
+ sale_amount: Integer?,
135
135
  status: GrowsurfRuby::Models::ParticipantCommissionList::Commission::status,
136
136
  amount_in_campaign_currency: Integer?,
137
137
  approved_at: Integer,
@@ -144,7 +144,7 @@ module GrowsurfRuby
144
144
  payout_queued_at: Integer,
145
145
  provider: String?,
146
146
  reversed_at: Integer,
147
- sale_amount_amount_in_campaign_currency: Integer?
147
+ sale_amount_in_campaign_currency: Integer?
148
148
  }
149
149
 
150
150
  type status = :PENDING | :APPROVED | :PAID | :REVERSED | :DELETED
@@ -42,7 +42,8 @@ module GrowsurfRuby
42
42
  failed_at: Integer,
43
43
  fx_error: String?,
44
44
  issued_at: Integer,
45
- provider: String?
45
+ provider: String?,
46
+ queued_at: Integer
46
47
  }
47
48
 
48
49
  class Payout < GrowsurfRuby::Internal::Type::BaseModel
@@ -82,6 +83,10 @@ module GrowsurfRuby
82
83
 
83
84
  attr_accessor provider: String?
84
85
 
86
+ attr_reader queued_at: Integer?
87
+
88
+ def queued_at=: (Integer) -> Integer
89
+
85
90
  def initialize: (
86
91
  id: String,
87
92
  amount: Integer,
@@ -97,7 +102,8 @@ module GrowsurfRuby
97
102
  ?failed_at: Integer,
98
103
  ?fx_error: String?,
99
104
  ?issued_at: Integer,
100
- ?provider: String?
105
+ ?provider: String?,
106
+ ?queued_at: Integer
101
107
  ) -> void
102
108
 
103
109
  def to_hash: -> {
@@ -115,7 +121,8 @@ module GrowsurfRuby
115
121
  failed_at: Integer,
116
122
  fx_error: String?,
117
123
  issued_at: Integer,
118
- provider: String?
124
+ provider: String?,
125
+ queued_at: Integer
119
126
  }
120
127
 
121
128
  type status = :UPCOMING | :QUEUED | :ISSUED | :FAILED
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: growsurf-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Growsurf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-23 00:00:00.000000000 Z
11
+ date: 2026-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi