increase 1.98.0 → 1.99.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +4 -0
- data/lib/increase/models/card_dispute.rb +5021 -0
- data/lib/increase/models/card_dispute_create_params.rb +3265 -0
- data/lib/increase/models/card_dispute_list_params.rb +147 -0
- data/lib/increase/models/card_dispute_retrieve_params.rb +14 -0
- data/lib/increase/models/card_dispute_submit_user_submission_params.rb +3469 -0
- data/lib/increase/models/card_dispute_withdraw_params.rb +14 -0
- data/lib/increase/models/simulations/card_dispute_action_params.rb +214 -0
- data/lib/increase/models.rb +12 -0
- data/lib/increase/resources/card_disputes.rb +154 -0
- data/lib/increase/resources/simulations/card_disputes.rb +48 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +9 -0
- data/rbi/increase/client.rbi +3 -0
- data/rbi/increase/models/card_dispute.rbi +10100 -0
- data/rbi/increase/models/card_dispute_create_params.rbi +6745 -0
- data/rbi/increase/models/card_dispute_list_params.rbi +296 -0
- data/rbi/increase/models/card_dispute_retrieve_params.rbi +30 -0
- data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +7253 -0
- data/rbi/increase/models/card_dispute_withdraw_params.rbi +30 -0
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +419 -0
- data/rbi/increase/models.rbi +13 -0
- data/rbi/increase/resources/card_disputes.rbi +136 -0
- data/rbi/increase/resources/simulations/card_disputes.rbi +40 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +2 -0
- data/sig/increase/models/card_dispute.rbs +3913 -0
- data/sig/increase/models/card_dispute_create_params.rbs +2889 -0
- data/sig/increase/models/card_dispute_list_params.rbs +150 -0
- data/sig/increase/models/card_dispute_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_dispute_submit_user_submission_params.rbs +3089 -0
- data/sig/increase/models/card_dispute_withdraw_params.rbs +15 -0
- data/sig/increase/models/simulations/card_dispute_action_params.rbs +195 -0
- data/sig/increase/models.rbs +12 -0
- data/sig/increase/resources/card_disputes.rbs +44 -0
- data/sig/increase/resources/simulations/card_disputes.rbs +16 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +28 -1
@@ -0,0 +1,147 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Increase
|
4
|
+
module Models
|
5
|
+
# @see Increase::Resources::CardDisputes#list
|
6
|
+
class CardDisputeListParams < Increase::Internal::Type::BaseModel
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute created_at
|
11
|
+
#
|
12
|
+
# @return [Increase::Models::CardDisputeListParams::CreatedAt, nil]
|
13
|
+
optional :created_at, -> { Increase::CardDisputeListParams::CreatedAt }
|
14
|
+
|
15
|
+
# @!attribute cursor
|
16
|
+
# Return the page of entries after this one.
|
17
|
+
#
|
18
|
+
# @return [String, nil]
|
19
|
+
optional :cursor, String
|
20
|
+
|
21
|
+
# @!attribute idempotency_key
|
22
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
23
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
24
|
+
# request is only processed once. Learn more about
|
25
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
26
|
+
#
|
27
|
+
# @return [String, nil]
|
28
|
+
optional :idempotency_key, String
|
29
|
+
|
30
|
+
# @!attribute limit
|
31
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
32
|
+
# objects.
|
33
|
+
#
|
34
|
+
# @return [Integer, nil]
|
35
|
+
optional :limit, Integer
|
36
|
+
|
37
|
+
# @!attribute status
|
38
|
+
#
|
39
|
+
# @return [Increase::Models::CardDisputeListParams::Status, nil]
|
40
|
+
optional :status, -> { Increase::CardDisputeListParams::Status }
|
41
|
+
|
42
|
+
# @!method initialize(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
|
43
|
+
# Some parameter documentations has been truncated, see
|
44
|
+
# {Increase::Models::CardDisputeListParams} for more details.
|
45
|
+
#
|
46
|
+
# @param created_at [Increase::Models::CardDisputeListParams::CreatedAt]
|
47
|
+
#
|
48
|
+
# @param cursor [String] Return the page of entries after this one.
|
49
|
+
#
|
50
|
+
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
51
|
+
#
|
52
|
+
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
53
|
+
#
|
54
|
+
# @param status [Increase::Models::CardDisputeListParams::Status]
|
55
|
+
#
|
56
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
57
|
+
|
58
|
+
class CreatedAt < Increase::Internal::Type::BaseModel
|
59
|
+
# @!attribute after
|
60
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
61
|
+
# timestamp.
|
62
|
+
#
|
63
|
+
# @return [Time, nil]
|
64
|
+
optional :after, Time
|
65
|
+
|
66
|
+
# @!attribute before
|
67
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
68
|
+
# timestamp.
|
69
|
+
#
|
70
|
+
# @return [Time, nil]
|
71
|
+
optional :before, Time
|
72
|
+
|
73
|
+
# @!attribute on_or_after
|
74
|
+
# Return results on or after this
|
75
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
76
|
+
#
|
77
|
+
# @return [Time, nil]
|
78
|
+
optional :on_or_after, Time
|
79
|
+
|
80
|
+
# @!attribute on_or_before
|
81
|
+
# Return results on or before this
|
82
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
83
|
+
#
|
84
|
+
# @return [Time, nil]
|
85
|
+
optional :on_or_before, Time
|
86
|
+
|
87
|
+
# @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
|
88
|
+
# Some parameter documentations has been truncated, see
|
89
|
+
# {Increase::Models::CardDisputeListParams::CreatedAt} for more details.
|
90
|
+
#
|
91
|
+
# @param after [Time] Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) tim
|
92
|
+
#
|
93
|
+
# @param before [Time] Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ti
|
94
|
+
#
|
95
|
+
# @param on_or_after [Time] Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_860
|
96
|
+
#
|
97
|
+
# @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86
|
98
|
+
end
|
99
|
+
|
100
|
+
class Status < Increase::Internal::Type::BaseModel
|
101
|
+
# @!attribute in_
|
102
|
+
# Filter Card Disputes for those with the specified status or statuses. For GET
|
103
|
+
# requests, this should be encoded as a comma-delimited string, such as
|
104
|
+
# `?in=one,two,three`.
|
105
|
+
#
|
106
|
+
# @return [Array<Symbol, Increase::Models::CardDisputeListParams::Status::In>, nil]
|
107
|
+
optional :in_,
|
108
|
+
-> { Increase::Internal::Type::ArrayOf[enum: Increase::CardDisputeListParams::Status::In] },
|
109
|
+
api_name: :in
|
110
|
+
|
111
|
+
# @!method initialize(in_: nil)
|
112
|
+
# Some parameter documentations has been truncated, see
|
113
|
+
# {Increase::Models::CardDisputeListParams::Status} for more details.
|
114
|
+
#
|
115
|
+
# @param in_ [Array<Symbol, Increase::Models::CardDisputeListParams::Status::In>] Filter Card Disputes for those with the specified status or statuses. For GET re
|
116
|
+
|
117
|
+
module In
|
118
|
+
extend Increase::Internal::Type::Enum
|
119
|
+
|
120
|
+
# A User Submission is required to continue with the Card Dispute.
|
121
|
+
USER_SUBMISSION_REQUIRED = :user_submission_required
|
122
|
+
|
123
|
+
# The most recent User Submission is being reviewed.
|
124
|
+
PENDING_USER_SUBMISSION_REVIEWING = :pending_user_submission_reviewing
|
125
|
+
|
126
|
+
# The most recent User Submission is being submitted to the network.
|
127
|
+
PENDING_USER_SUBMISSION_SUBMITTING = :pending_user_submission_submitting
|
128
|
+
|
129
|
+
# The user's withdrawal of the Card Dispute is being submitted to the network.
|
130
|
+
PENDING_USER_WITHDRAWAL_SUBMITTING = :pending_user_withdrawal_submitting
|
131
|
+
|
132
|
+
# The Card Dispute is pending a response from the network.
|
133
|
+
PENDING_RESPONSE = :pending_response
|
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
|
+
# @!method self.values
|
142
|
+
# @return [Array<Symbol>]
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Increase
|
4
|
+
module Models
|
5
|
+
# @see Increase::Resources::CardDisputes#retrieve
|
6
|
+
class CardDisputeRetrieveParams < Increase::Internal::Type::BaseModel
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|