increase 1.79.0 → 1.80.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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +0 -4
  5. data/lib/increase/errors.rb +25 -11
  6. data/lib/increase/internal/page.rb +1 -1
  7. data/lib/increase/internal/transport/base_client.rb +11 -7
  8. data/lib/increase/internal/type/base_page.rb +1 -1
  9. data/lib/increase/internal/util.rb +1 -1
  10. data/lib/increase/models/transaction.rb +3 -27
  11. data/lib/increase/models.rb +0 -8
  12. data/lib/increase/resources/simulations.rb +0 -4
  13. data/lib/increase/version.rb +1 -1
  14. data/lib/increase.rb +0 -7
  15. data/rbi/increase/client.rbi +0 -3
  16. data/rbi/increase/errors.rbi +29 -2
  17. data/rbi/increase/internal/transport/base_client.rbi +4 -5
  18. data/rbi/increase/internal/type/base_page.rbi +1 -1
  19. data/rbi/increase/internal/util.rbi +1 -1
  20. data/rbi/increase/models/transaction.rbi +5 -39
  21. data/rbi/increase/models.rbi +0 -8
  22. data/rbi/increase/resources/simulations.rbi +0 -3
  23. data/sig/increase/client.rbs +0 -2
  24. data/sig/increase/errors.rbs +7 -0
  25. data/sig/increase/models/transaction.rbs +4 -28
  26. data/sig/increase/models.rbs +0 -8
  27. data/sig/increase/resources/simulations.rbs +0 -2
  28. metadata +1 -22
  29. data/lib/increase/models/card_dispute.rb +0 -302
  30. data/lib/increase/models/card_dispute_create_params.rb +0 -45
  31. data/lib/increase/models/card_dispute_list_params.rb +0 -144
  32. data/lib/increase/models/card_dispute_retrieve_params.rb +0 -14
  33. data/lib/increase/models/simulations/card_dispute_action_params.rb +0 -55
  34. data/lib/increase/resources/card_disputes.rb +0 -97
  35. data/lib/increase/resources/simulations/card_disputes.rb +0 -45
  36. data/rbi/increase/models/card_dispute.rbi +0 -425
  37. data/rbi/increase/models/card_dispute_create_params.rbi +0 -70
  38. data/rbi/increase/models/card_dispute_list_params.rbi +0 -289
  39. data/rbi/increase/models/card_dispute_retrieve_params.rbi +0 -30
  40. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +0 -124
  41. data/rbi/increase/resources/card_disputes.rbi +0 -78
  42. data/rbi/increase/resources/simulations/card_disputes.rbi +0 -38
  43. data/sig/increase/models/card_dispute.rbs +0 -207
  44. data/sig/increase/models/card_dispute_create_params.rbs +0 -34
  45. data/sig/increase/models/card_dispute_list_params.rbs +0 -146
  46. data/sig/increase/models/card_dispute_retrieve_params.rbs +0 -15
  47. data/sig/increase/models/simulations/card_dispute_action_params.rbs +0 -59
  48. data/sig/increase/resources/card_disputes.rbs +0 -28
  49. data/sig/increase/resources/simulations/card_disputes.rbs +0 -16
@@ -1,207 +0,0 @@
1
- module Increase
2
- module Models
3
- type card_dispute =
4
- {
5
- id: String,
6
- acceptance: Increase::CardDispute::Acceptance?,
7
- amount: Integer?,
8
- created_at: Time,
9
- disputed_transaction_id: String,
10
- explanation: String,
11
- idempotency_key: String?,
12
- loss: Increase::CardDispute::Loss?,
13
- rejection: Increase::CardDispute::Rejection?,
14
- status: Increase::Models::CardDispute::status,
15
- type: Increase::Models::CardDispute::type_,
16
- win: Increase::CardDispute::Win?
17
- }
18
-
19
- class CardDispute < Increase::Internal::Type::BaseModel
20
- attr_accessor id: String
21
-
22
- attr_accessor acceptance: Increase::CardDispute::Acceptance?
23
-
24
- attr_accessor amount: Integer?
25
-
26
- attr_accessor created_at: Time
27
-
28
- attr_accessor disputed_transaction_id: String
29
-
30
- attr_accessor explanation: String
31
-
32
- attr_accessor idempotency_key: String?
33
-
34
- attr_accessor loss: Increase::CardDispute::Loss?
35
-
36
- attr_accessor rejection: Increase::CardDispute::Rejection?
37
-
38
- attr_accessor status: Increase::Models::CardDispute::status
39
-
40
- attr_accessor type: Increase::Models::CardDispute::type_
41
-
42
- attr_accessor win: Increase::CardDispute::Win?
43
-
44
- def initialize: (
45
- id: String,
46
- acceptance: Increase::CardDispute::Acceptance?,
47
- amount: Integer?,
48
- created_at: Time,
49
- disputed_transaction_id: String,
50
- explanation: String,
51
- idempotency_key: String?,
52
- loss: Increase::CardDispute::Loss?,
53
- rejection: Increase::CardDispute::Rejection?,
54
- status: Increase::Models::CardDispute::status,
55
- type: Increase::Models::CardDispute::type_,
56
- win: Increase::CardDispute::Win?
57
- ) -> void
58
-
59
- def to_hash: -> {
60
- id: String,
61
- acceptance: Increase::CardDispute::Acceptance?,
62
- amount: Integer?,
63
- created_at: Time,
64
- disputed_transaction_id: String,
65
- explanation: String,
66
- idempotency_key: String?,
67
- loss: Increase::CardDispute::Loss?,
68
- rejection: Increase::CardDispute::Rejection?,
69
- status: Increase::Models::CardDispute::status,
70
- type: Increase::Models::CardDispute::type_,
71
- win: Increase::CardDispute::Win?
72
- }
73
-
74
- type acceptance =
75
- { accepted_at: Time, card_dispute_id: String, transaction_id: String }
76
-
77
- class Acceptance < Increase::Internal::Type::BaseModel
78
- attr_accessor accepted_at: Time
79
-
80
- attr_accessor card_dispute_id: String
81
-
82
- attr_accessor transaction_id: String
83
-
84
- def initialize: (
85
- accepted_at: Time,
86
- card_dispute_id: String,
87
- transaction_id: String
88
- ) -> void
89
-
90
- def to_hash: -> {
91
- accepted_at: Time,
92
- card_dispute_id: String,
93
- transaction_id: String
94
- }
95
- end
96
-
97
- type loss =
98
- {
99
- card_dispute_id: String,
100
- explanation: String,
101
- lost_at: Time,
102
- transaction_id: String
103
- }
104
-
105
- class Loss < Increase::Internal::Type::BaseModel
106
- attr_accessor card_dispute_id: String
107
-
108
- attr_accessor explanation: String
109
-
110
- attr_accessor lost_at: Time
111
-
112
- attr_accessor transaction_id: String
113
-
114
- def initialize: (
115
- card_dispute_id: String,
116
- explanation: String,
117
- lost_at: Time,
118
- transaction_id: String
119
- ) -> void
120
-
121
- def to_hash: -> {
122
- card_dispute_id: String,
123
- explanation: String,
124
- lost_at: Time,
125
- transaction_id: String
126
- }
127
- end
128
-
129
- type rejection =
130
- { card_dispute_id: String, explanation: String, rejected_at: Time }
131
-
132
- class Rejection < Increase::Internal::Type::BaseModel
133
- attr_accessor card_dispute_id: String
134
-
135
- attr_accessor explanation: String
136
-
137
- attr_accessor rejected_at: Time
138
-
139
- def initialize: (
140
- card_dispute_id: String,
141
- explanation: String,
142
- rejected_at: Time
143
- ) -> void
144
-
145
- def to_hash: -> {
146
- card_dispute_id: String,
147
- explanation: String,
148
- rejected_at: Time
149
- }
150
- end
151
-
152
- type status =
153
- :pending_reviewing
154
- | :pending_user_information
155
- | :accepted
156
- | :rejected
157
- | :lost
158
- | :won
159
-
160
- module Status
161
- extend Increase::Internal::Type::Enum
162
-
163
- # The Card Dispute is pending review.
164
- PENDING_REVIEWING: :pending_reviewing
165
-
166
- # Increase has requested more information related to the Card Dispute from you.
167
- PENDING_USER_INFORMATION: :pending_user_information
168
-
169
- # The Card Dispute has been accepted and your funds have been returned. The card dispute will eventually transition into `won` or `lost` depending on the outcome.
170
- ACCEPTED: :accepted
171
-
172
- # The Card Dispute has been rejected.
173
- REJECTED: :rejected
174
-
175
- # The Card Dispute has been lost and funds previously credited from the acceptance have been debited.
176
- LOST: :lost
177
-
178
- # The Card Dispute has been won and no further action can be taken.
179
- WON: :won
180
-
181
- def self?.values: -> ::Array[Increase::Models::CardDispute::status]
182
- end
183
-
184
- type type_ = :card_dispute
185
-
186
- module Type
187
- extend Increase::Internal::Type::Enum
188
-
189
- CARD_DISPUTE: :card_dispute
190
-
191
- def self?.values: -> ::Array[Increase::Models::CardDispute::type_]
192
- end
193
-
194
- type win = { card_dispute_id: String, won_at: Time }
195
-
196
- class Win < Increase::Internal::Type::BaseModel
197
- attr_accessor card_dispute_id: String
198
-
199
- attr_accessor won_at: Time
200
-
201
- def initialize: (card_dispute_id: String, won_at: Time) -> void
202
-
203
- def to_hash: -> { card_dispute_id: String, won_at: Time }
204
- end
205
- end
206
- end
207
- end
@@ -1,34 +0,0 @@
1
- module Increase
2
- module Models
3
- type card_dispute_create_params =
4
- { disputed_transaction_id: String, explanation: String, amount: Integer }
5
- & Increase::Internal::Type::request_parameters
6
-
7
- class CardDisputeCreateParams < Increase::Internal::Type::BaseModel
8
- extend Increase::Internal::Type::RequestParameters::Converter
9
- include Increase::Internal::Type::RequestParameters
10
-
11
- attr_accessor disputed_transaction_id: String
12
-
13
- attr_accessor explanation: String
14
-
15
- attr_reader amount: Integer?
16
-
17
- def amount=: (Integer) -> Integer
18
-
19
- def initialize: (
20
- disputed_transaction_id: String,
21
- explanation: String,
22
- ?amount: Integer,
23
- ?request_options: Increase::request_opts
24
- ) -> void
25
-
26
- def to_hash: -> {
27
- disputed_transaction_id: String,
28
- explanation: String,
29
- amount: Integer,
30
- request_options: Increase::RequestOptions
31
- }
32
- end
33
- end
34
- end
@@ -1,146 +0,0 @@
1
- module Increase
2
- module Models
3
- type card_dispute_list_params =
4
- {
5
- created_at: Increase::CardDisputeListParams::CreatedAt,
6
- cursor: String,
7
- idempotency_key: String,
8
- limit: Integer,
9
- status: Increase::CardDisputeListParams::Status
10
- }
11
- & Increase::Internal::Type::request_parameters
12
-
13
- class CardDisputeListParams < Increase::Internal::Type::BaseModel
14
- extend Increase::Internal::Type::RequestParameters::Converter
15
- include Increase::Internal::Type::RequestParameters
16
-
17
- attr_reader created_at: Increase::CardDisputeListParams::CreatedAt?
18
-
19
- def created_at=: (
20
- Increase::CardDisputeListParams::CreatedAt
21
- ) -> Increase::CardDisputeListParams::CreatedAt
22
-
23
- attr_reader cursor: String?
24
-
25
- def cursor=: (String) -> String
26
-
27
- attr_reader idempotency_key: String?
28
-
29
- def idempotency_key=: (String) -> String
30
-
31
- attr_reader limit: Integer?
32
-
33
- def limit=: (Integer) -> Integer
34
-
35
- attr_reader status: Increase::CardDisputeListParams::Status?
36
-
37
- def status=: (
38
- Increase::CardDisputeListParams::Status
39
- ) -> Increase::CardDisputeListParams::Status
40
-
41
- def initialize: (
42
- ?created_at: Increase::CardDisputeListParams::CreatedAt,
43
- ?cursor: String,
44
- ?idempotency_key: String,
45
- ?limit: Integer,
46
- ?status: Increase::CardDisputeListParams::Status,
47
- ?request_options: Increase::request_opts
48
- ) -> void
49
-
50
- def to_hash: -> {
51
- created_at: Increase::CardDisputeListParams::CreatedAt,
52
- cursor: String,
53
- idempotency_key: String,
54
- limit: Integer,
55
- status: Increase::CardDisputeListParams::Status,
56
- request_options: Increase::RequestOptions
57
- }
58
-
59
- type created_at =
60
- { after: Time, before: Time, on_or_after: Time, on_or_before: Time }
61
-
62
- class CreatedAt < Increase::Internal::Type::BaseModel
63
- attr_reader after: Time?
64
-
65
- def after=: (Time) -> Time
66
-
67
- attr_reader before: Time?
68
-
69
- def before=: (Time) -> Time
70
-
71
- attr_reader on_or_after: Time?
72
-
73
- def on_or_after=: (Time) -> Time
74
-
75
- attr_reader on_or_before: Time?
76
-
77
- def on_or_before=: (Time) -> Time
78
-
79
- def initialize: (
80
- ?after: Time,
81
- ?before: Time,
82
- ?on_or_after: Time,
83
- ?on_or_before: Time
84
- ) -> void
85
-
86
- def to_hash: -> {
87
- after: Time,
88
- before: Time,
89
- on_or_after: Time,
90
- on_or_before: Time
91
- }
92
- end
93
-
94
- type status =
95
- { in_: ::Array[Increase::Models::CardDisputeListParams::Status::in_] }
96
-
97
- class Status < Increase::Internal::Type::BaseModel
98
- attr_reader in_: ::Array[Increase::Models::CardDisputeListParams::Status::in_]?
99
-
100
- def in_=: (
101
- ::Array[Increase::Models::CardDisputeListParams::Status::in_]
102
- ) -> ::Array[Increase::Models::CardDisputeListParams::Status::in_]
103
-
104
- def initialize: (
105
- ?in_: ::Array[Increase::Models::CardDisputeListParams::Status::in_]
106
- ) -> void
107
-
108
- def to_hash: -> {
109
- in_: ::Array[Increase::Models::CardDisputeListParams::Status::in_]
110
- }
111
-
112
- type in_ =
113
- :pending_reviewing
114
- | :pending_user_information
115
- | :accepted
116
- | :rejected
117
- | :lost
118
- | :won
119
-
120
- module In
121
- extend Increase::Internal::Type::Enum
122
-
123
- # The Card Dispute is pending review.
124
- PENDING_REVIEWING: :pending_reviewing
125
-
126
- # Increase has requested more information related to the Card Dispute from you.
127
- PENDING_USER_INFORMATION: :pending_user_information
128
-
129
- # The Card Dispute has been accepted and your funds have been returned. The card dispute will eventually transition into `won` or `lost` depending on the outcome.
130
- ACCEPTED: :accepted
131
-
132
- # The Card Dispute has been rejected.
133
- REJECTED: :rejected
134
-
135
- # The Card Dispute has been lost and funds previously credited from the acceptance have been debited.
136
- LOST: :lost
137
-
138
- # The Card Dispute has been won and no further action can be taken.
139
- WON: :won
140
-
141
- def self?.values: -> ::Array[Increase::Models::CardDisputeListParams::Status::in_]
142
- end
143
- end
144
- end
145
- end
146
- end
@@ -1,15 +0,0 @@
1
- module Increase
2
- module Models
3
- type card_dispute_retrieve_params =
4
- { } & Increase::Internal::Type::request_parameters
5
-
6
- class CardDisputeRetrieveParams < Increase::Internal::Type::BaseModel
7
- extend Increase::Internal::Type::RequestParameters::Converter
8
- include Increase::Internal::Type::RequestParameters
9
-
10
- def initialize: (?request_options: Increase::request_opts) -> void
11
-
12
- def to_hash: -> { request_options: Increase::RequestOptions }
13
- end
14
- end
15
- end
@@ -1,59 +0,0 @@
1
- module Increase
2
- module Models
3
- module Simulations
4
- type card_dispute_action_params =
5
- {
6
- status: Increase::Models::Simulations::CardDisputeActionParams::status,
7
- explanation: String
8
- }
9
- & Increase::Internal::Type::request_parameters
10
-
11
- class CardDisputeActionParams < Increase::Internal::Type::BaseModel
12
- extend Increase::Internal::Type::RequestParameters::Converter
13
- include Increase::Internal::Type::RequestParameters
14
-
15
- attr_accessor status: Increase::Models::Simulations::CardDisputeActionParams::status
16
-
17
- attr_reader explanation: String?
18
-
19
- def explanation=: (String) -> String
20
-
21
- def initialize: (
22
- status: Increase::Models::Simulations::CardDisputeActionParams::status,
23
- ?explanation: String,
24
- ?request_options: Increase::request_opts
25
- ) -> void
26
-
27
- def to_hash: -> {
28
- status: Increase::Models::Simulations::CardDisputeActionParams::status,
29
- explanation: String,
30
- request_options: Increase::RequestOptions
31
- }
32
-
33
- type status =
34
- :pending_user_information | :accepted | :rejected | :lost | :won
35
-
36
- module Status
37
- extend Increase::Internal::Type::Enum
38
-
39
- # Increase has requested more information related to the Card Dispute from you.
40
- PENDING_USER_INFORMATION: :pending_user_information
41
-
42
- # The Card Dispute has been accepted and your funds have been returned. The card dispute will eventually transition into `won` or `lost` depending on the outcome.
43
- ACCEPTED: :accepted
44
-
45
- # The Card Dispute has been rejected.
46
- REJECTED: :rejected
47
-
48
- # The Card Dispute has been lost and funds previously credited from the acceptance have been debited.
49
- LOST: :lost
50
-
51
- # The Card Dispute has been won and no further action can be taken.
52
- WON: :won
53
-
54
- def self?.values: -> ::Array[Increase::Models::Simulations::CardDisputeActionParams::status]
55
- end
56
- end
57
- end
58
- end
59
- end
@@ -1,28 +0,0 @@
1
- module Increase
2
- module Resources
3
- class CardDisputes
4
- def create: (
5
- disputed_transaction_id: String,
6
- explanation: String,
7
- ?amount: Integer,
8
- ?request_options: Increase::request_opts
9
- ) -> Increase::CardDispute
10
-
11
- def retrieve: (
12
- String card_dispute_id,
13
- ?request_options: Increase::request_opts
14
- ) -> Increase::CardDispute
15
-
16
- def list: (
17
- ?created_at: Increase::CardDisputeListParams::CreatedAt,
18
- ?cursor: String,
19
- ?idempotency_key: String,
20
- ?limit: Integer,
21
- ?status: Increase::CardDisputeListParams::Status,
22
- ?request_options: Increase::request_opts
23
- ) -> Increase::Internal::Page[Increase::CardDispute]
24
-
25
- def initialize: (client: Increase::Client) -> void
26
- end
27
- end
28
- end
@@ -1,16 +0,0 @@
1
- module Increase
2
- module Resources
3
- class Simulations
4
- class CardDisputes
5
- def action: (
6
- String card_dispute_id,
7
- status: Increase::Models::Simulations::CardDisputeActionParams::status,
8
- ?explanation: String,
9
- ?request_options: Increase::request_opts
10
- ) -> Increase::CardDispute
11
-
12
- def initialize: (client: Increase::Client) -> void
13
- end
14
- end
15
- end
16
- end