increase 1.167.0 → 1.169.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +0 -4
- data/lib/increase/models/simulations/export_create_params.rb +43 -6
- data/lib/increase/models.rb +0 -8
- data/lib/increase/resources/simulations/exports.rb +11 -3
- data/lib/increase/resources/simulations.rb +0 -4
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +0 -7
- data/rbi/increase/client.rbi +0 -3
- data/rbi/increase/models/simulations/export_create_params.rbi +93 -7
- data/rbi/increase/models.rbi +0 -8
- data/rbi/increase/resources/simulations/exports.rbi +13 -4
- data/rbi/increase/resources/simulations.rbi +0 -3
- data/sig/increase/client.rbs +0 -2
- data/sig/increase/models/simulations/export_create_params.rbs +37 -4
- data/sig/increase/models.rbs +0 -8
- data/sig/increase/resources/simulations/exports.rbs +2 -1
- data/sig/increase/resources/simulations.rbs +0 -2
- metadata +2 -23
- data/lib/increase/models/document.rb +0 -160
- data/lib/increase/models/document_create_params.rb +0 -93
- data/lib/increase/models/document_list_params.rb +0 -152
- data/lib/increase/models/document_retrieve_params.rb +0 -14
- data/lib/increase/models/simulations/document_create_params.rb +0 -24
- data/lib/increase/resources/documents.rb +0 -99
- data/lib/increase/resources/simulations/documents.rb +0 -38
- data/rbi/increase/models/document.rbi +0 -249
- data/rbi/increase/models/document_create_params.rbi +0 -191
- data/rbi/increase/models/document_list_params.rbi +0 -296
- data/rbi/increase/models/document_retrieve_params.rbi +0 -27
- data/rbi/increase/models/simulations/document_create_params.rbi +0 -45
- data/rbi/increase/resources/documents.rbi +0 -81
- data/rbi/increase/resources/simulations/documents.rbi +0 -28
- data/sig/increase/models/document.rbs +0 -122
- data/sig/increase/models/document_create_params.rbs +0 -83
- data/sig/increase/models/document_list_params.rbs +0 -153
- data/sig/increase/models/document_retrieve_params.rbs +0 -15
- data/sig/increase/models/simulations/document_create_params.rbs +0 -25
- data/sig/increase/resources/documents.rbs +0 -29
- data/sig/increase/resources/simulations/documents.rbs +0 -14
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::Documents#create
|
|
6
|
-
class Document < Increase::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
# The Document identifier.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :id, String
|
|
12
|
-
|
|
13
|
-
# @!attribute account_verification_letter
|
|
14
|
-
# Properties of an account verification letter document.
|
|
15
|
-
#
|
|
16
|
-
# @return [Increase::Models::Document::AccountVerificationLetter, nil]
|
|
17
|
-
required :account_verification_letter, -> { Increase::Document::AccountVerificationLetter }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute category
|
|
20
|
-
# The type of document.
|
|
21
|
-
#
|
|
22
|
-
# @return [Symbol, Increase::Models::Document::Category]
|
|
23
|
-
required :category, enum: -> { Increase::Document::Category }
|
|
24
|
-
|
|
25
|
-
# @!attribute created_at
|
|
26
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
|
|
27
|
-
# Document was created.
|
|
28
|
-
#
|
|
29
|
-
# @return [Time]
|
|
30
|
-
required :created_at, Time
|
|
31
|
-
|
|
32
|
-
# @!attribute entity_id
|
|
33
|
-
# The identifier of the Entity the document was generated for.
|
|
34
|
-
#
|
|
35
|
-
# @return [String, nil]
|
|
36
|
-
required :entity_id, String, nil?: true
|
|
37
|
-
|
|
38
|
-
# @!attribute file_id
|
|
39
|
-
# The identifier of the File containing the Document's contents.
|
|
40
|
-
#
|
|
41
|
-
# @return [String]
|
|
42
|
-
required :file_id, String
|
|
43
|
-
|
|
44
|
-
# @!attribute funding_instructions
|
|
45
|
-
# Properties of a funding instructions document.
|
|
46
|
-
#
|
|
47
|
-
# @return [Increase::Models::Document::FundingInstructions, nil]
|
|
48
|
-
required :funding_instructions, -> { Increase::Document::FundingInstructions }, nil?: true
|
|
49
|
-
|
|
50
|
-
# @!attribute idempotency_key
|
|
51
|
-
# The idempotency key you chose for this object. This value is unique across
|
|
52
|
-
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
53
|
-
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
54
|
-
#
|
|
55
|
-
# @return [String, nil]
|
|
56
|
-
required :idempotency_key, String, nil?: true
|
|
57
|
-
|
|
58
|
-
# @!attribute type
|
|
59
|
-
# A constant representing the object's type. For this resource it will always be
|
|
60
|
-
# `document`.
|
|
61
|
-
#
|
|
62
|
-
# @return [Symbol, Increase::Models::Document::Type]
|
|
63
|
-
required :type, enum: -> { Increase::Document::Type }
|
|
64
|
-
|
|
65
|
-
# @!method initialize(id:, account_verification_letter:, category:, created_at:, entity_id:, file_id:, funding_instructions:, idempotency_key:, type:)
|
|
66
|
-
# Some parameter documentations has been truncated, see
|
|
67
|
-
# {Increase::Models::Document} for more details.
|
|
68
|
-
#
|
|
69
|
-
# Increase generates certain documents / forms automatically for your application;
|
|
70
|
-
# they can be listed here.
|
|
71
|
-
#
|
|
72
|
-
# @param id [String] The Document identifier.
|
|
73
|
-
#
|
|
74
|
-
# @param account_verification_letter [Increase::Models::Document::AccountVerificationLetter, nil] Properties of an account verification letter document.
|
|
75
|
-
#
|
|
76
|
-
# @param category [Symbol, Increase::Models::Document::Category] The type of document.
|
|
77
|
-
#
|
|
78
|
-
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Documen
|
|
79
|
-
#
|
|
80
|
-
# @param entity_id [String, nil] The identifier of the Entity the document was generated for.
|
|
81
|
-
#
|
|
82
|
-
# @param file_id [String] The identifier of the File containing the Document's contents.
|
|
83
|
-
#
|
|
84
|
-
# @param funding_instructions [Increase::Models::Document::FundingInstructions, nil] Properties of a funding instructions document.
|
|
85
|
-
#
|
|
86
|
-
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
|
|
87
|
-
#
|
|
88
|
-
# @param type [Symbol, Increase::Models::Document::Type] A constant representing the object's type. For this resource it will always be `
|
|
89
|
-
|
|
90
|
-
# @see Increase::Models::Document#account_verification_letter
|
|
91
|
-
class AccountVerificationLetter < Increase::Internal::Type::BaseModel
|
|
92
|
-
# @!attribute account_number_id
|
|
93
|
-
# The identifier of the Account Number the document was generated for.
|
|
94
|
-
#
|
|
95
|
-
# @return [String]
|
|
96
|
-
required :account_number_id, String
|
|
97
|
-
|
|
98
|
-
# @!method initialize(account_number_id:)
|
|
99
|
-
# Properties of an account verification letter document.
|
|
100
|
-
#
|
|
101
|
-
# @param account_number_id [String] The identifier of the Account Number the document was generated for.
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# The type of document.
|
|
105
|
-
#
|
|
106
|
-
# @see Increase::Models::Document#category
|
|
107
|
-
module Category
|
|
108
|
-
extend Increase::Internal::Type::Enum
|
|
109
|
-
|
|
110
|
-
# Internal Revenue Service Form 1099-INT.
|
|
111
|
-
FORM_1099_INT = :form_1099_int
|
|
112
|
-
|
|
113
|
-
# Internal Revenue Service Form 1099-MISC.
|
|
114
|
-
FORM_1099_MISC = :form_1099_misc
|
|
115
|
-
|
|
116
|
-
# A document submitted in response to a proof of authorization request for an ACH transfer.
|
|
117
|
-
PROOF_OF_AUTHORIZATION = :proof_of_authorization
|
|
118
|
-
|
|
119
|
-
# Company information, such a policies or procedures, typically submitted during our due diligence process.
|
|
120
|
-
COMPANY_INFORMATION = :company_information
|
|
121
|
-
|
|
122
|
-
# An account verification letter.
|
|
123
|
-
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter
|
|
124
|
-
|
|
125
|
-
# Funding instructions.
|
|
126
|
-
FUNDING_INSTRUCTIONS = :funding_instructions
|
|
127
|
-
|
|
128
|
-
# @!method self.values
|
|
129
|
-
# @return [Array<Symbol>]
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
# @see Increase::Models::Document#funding_instructions
|
|
133
|
-
class FundingInstructions < Increase::Internal::Type::BaseModel
|
|
134
|
-
# @!attribute account_number_id
|
|
135
|
-
# The identifier of the Account Number the document was generated for.
|
|
136
|
-
#
|
|
137
|
-
# @return [String]
|
|
138
|
-
required :account_number_id, String
|
|
139
|
-
|
|
140
|
-
# @!method initialize(account_number_id:)
|
|
141
|
-
# Properties of a funding instructions document.
|
|
142
|
-
#
|
|
143
|
-
# @param account_number_id [String] The identifier of the Account Number the document was generated for.
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# A constant representing the object's type. For this resource it will always be
|
|
147
|
-
# `document`.
|
|
148
|
-
#
|
|
149
|
-
# @see Increase::Models::Document#type
|
|
150
|
-
module Type
|
|
151
|
-
extend Increase::Internal::Type::Enum
|
|
152
|
-
|
|
153
|
-
DOCUMENT = :document
|
|
154
|
-
|
|
155
|
-
# @!method self.values
|
|
156
|
-
# @return [Array<Symbol>]
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
end
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::Documents#create
|
|
6
|
-
class DocumentCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute category
|
|
11
|
-
# The type of document to create.
|
|
12
|
-
#
|
|
13
|
-
# @return [Symbol, Increase::Models::DocumentCreateParams::Category]
|
|
14
|
-
required :category, enum: -> { Increase::DocumentCreateParams::Category }
|
|
15
|
-
|
|
16
|
-
# @!attribute account_verification_letter
|
|
17
|
-
# An account verification letter. Required if and only if `category` is
|
|
18
|
-
# `account_verification_letter`.
|
|
19
|
-
#
|
|
20
|
-
# @return [Increase::Models::DocumentCreateParams::AccountVerificationLetter, nil]
|
|
21
|
-
optional :account_verification_letter, -> { Increase::DocumentCreateParams::AccountVerificationLetter }
|
|
22
|
-
|
|
23
|
-
# @!attribute funding_instructions
|
|
24
|
-
# Funding instructions. Required if and only if `category` is
|
|
25
|
-
# `funding_instructions`.
|
|
26
|
-
#
|
|
27
|
-
# @return [Increase::Models::DocumentCreateParams::FundingInstructions, nil]
|
|
28
|
-
optional :funding_instructions, -> { Increase::DocumentCreateParams::FundingInstructions }
|
|
29
|
-
|
|
30
|
-
# @!method initialize(category:, account_verification_letter: nil, funding_instructions: nil, request_options: {})
|
|
31
|
-
# Some parameter documentations has been truncated, see
|
|
32
|
-
# {Increase::Models::DocumentCreateParams} for more details.
|
|
33
|
-
#
|
|
34
|
-
# @param category [Symbol, Increase::Models::DocumentCreateParams::Category] The type of document to create.
|
|
35
|
-
#
|
|
36
|
-
# @param account_verification_letter [Increase::Models::DocumentCreateParams::AccountVerificationLetter] An account verification letter. Required if and only if `category` is `account_v
|
|
37
|
-
#
|
|
38
|
-
# @param funding_instructions [Increase::Models::DocumentCreateParams::FundingInstructions] Funding instructions. Required if and only if `category` is `funding_instruction
|
|
39
|
-
#
|
|
40
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
41
|
-
|
|
42
|
-
# The type of document to create.
|
|
43
|
-
module Category
|
|
44
|
-
extend Increase::Internal::Type::Enum
|
|
45
|
-
|
|
46
|
-
# An account verification letter.
|
|
47
|
-
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter
|
|
48
|
-
|
|
49
|
-
# Funding instructions.
|
|
50
|
-
FUNDING_INSTRUCTIONS = :funding_instructions
|
|
51
|
-
|
|
52
|
-
# @!method self.values
|
|
53
|
-
# @return [Array<Symbol>]
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
class AccountVerificationLetter < Increase::Internal::Type::BaseModel
|
|
57
|
-
# @!attribute account_number_id
|
|
58
|
-
# The Account Number the bank letter should be generated for.
|
|
59
|
-
#
|
|
60
|
-
# @return [String]
|
|
61
|
-
required :account_number_id, String
|
|
62
|
-
|
|
63
|
-
# @!attribute balance_date
|
|
64
|
-
# If provided, the letter will include the Account's balance as of the date.
|
|
65
|
-
#
|
|
66
|
-
# @return [Date, nil]
|
|
67
|
-
optional :balance_date, Date
|
|
68
|
-
|
|
69
|
-
# @!method initialize(account_number_id:, balance_date: nil)
|
|
70
|
-
# An account verification letter. Required if and only if `category` is
|
|
71
|
-
# `account_verification_letter`.
|
|
72
|
-
#
|
|
73
|
-
# @param account_number_id [String] The Account Number the bank letter should be generated for.
|
|
74
|
-
#
|
|
75
|
-
# @param balance_date [Date] If provided, the letter will include the Account's balance as of the date.
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
class FundingInstructions < Increase::Internal::Type::BaseModel
|
|
79
|
-
# @!attribute account_number_id
|
|
80
|
-
# The Account Number the funding instructions should be generated for.
|
|
81
|
-
#
|
|
82
|
-
# @return [String]
|
|
83
|
-
required :account_number_id, String
|
|
84
|
-
|
|
85
|
-
# @!method initialize(account_number_id:)
|
|
86
|
-
# Funding instructions. Required if and only if `category` is
|
|
87
|
-
# `funding_instructions`.
|
|
88
|
-
#
|
|
89
|
-
# @param account_number_id [String] The Account Number the funding instructions should be generated for.
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
end
|
|
93
|
-
end
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::Documents#list
|
|
6
|
-
class DocumentListParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute category
|
|
11
|
-
#
|
|
12
|
-
# @return [Increase::Models::DocumentListParams::Category, nil]
|
|
13
|
-
optional :category, -> { Increase::DocumentListParams::Category }
|
|
14
|
-
|
|
15
|
-
# @!attribute created_at
|
|
16
|
-
#
|
|
17
|
-
# @return [Increase::Models::DocumentListParams::CreatedAt, nil]
|
|
18
|
-
optional :created_at, -> { Increase::DocumentListParams::CreatedAt }
|
|
19
|
-
|
|
20
|
-
# @!attribute cursor
|
|
21
|
-
# Return the page of entries after this one.
|
|
22
|
-
#
|
|
23
|
-
# @return [String, nil]
|
|
24
|
-
optional :cursor, String
|
|
25
|
-
|
|
26
|
-
# @!attribute entity_id
|
|
27
|
-
# Filter Documents to ones belonging to the specified Entity.
|
|
28
|
-
#
|
|
29
|
-
# @return [String, nil]
|
|
30
|
-
optional :entity_id, String
|
|
31
|
-
|
|
32
|
-
# @!attribute idempotency_key
|
|
33
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
34
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
|
35
|
-
# request is only processed once. Learn more about
|
|
36
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
37
|
-
#
|
|
38
|
-
# @return [String, nil]
|
|
39
|
-
optional :idempotency_key, String
|
|
40
|
-
|
|
41
|
-
# @!attribute limit
|
|
42
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
43
|
-
# objects.
|
|
44
|
-
#
|
|
45
|
-
# @return [Integer, nil]
|
|
46
|
-
optional :limit, Integer
|
|
47
|
-
|
|
48
|
-
# @!method initialize(category: nil, created_at: nil, cursor: nil, entity_id: nil, idempotency_key: nil, limit: nil, request_options: {})
|
|
49
|
-
# Some parameter documentations has been truncated, see
|
|
50
|
-
# {Increase::Models::DocumentListParams} for more details.
|
|
51
|
-
#
|
|
52
|
-
# @param category [Increase::Models::DocumentListParams::Category]
|
|
53
|
-
#
|
|
54
|
-
# @param created_at [Increase::Models::DocumentListParams::CreatedAt]
|
|
55
|
-
#
|
|
56
|
-
# @param cursor [String] Return the page of entries after this one.
|
|
57
|
-
#
|
|
58
|
-
# @param entity_id [String] Filter Documents to ones belonging to the specified Entity.
|
|
59
|
-
#
|
|
60
|
-
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
61
|
-
#
|
|
62
|
-
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
63
|
-
#
|
|
64
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
65
|
-
|
|
66
|
-
class Category < Increase::Internal::Type::BaseModel
|
|
67
|
-
# @!attribute in_
|
|
68
|
-
# Filter Documents for those with the specified category or categories. For GET
|
|
69
|
-
# requests, this should be encoded as a comma-delimited string, such as
|
|
70
|
-
# `?in=one,two,three`.
|
|
71
|
-
#
|
|
72
|
-
# @return [Array<Symbol, Increase::Models::DocumentListParams::Category::In>, nil]
|
|
73
|
-
optional :in_,
|
|
74
|
-
-> { Increase::Internal::Type::ArrayOf[enum: Increase::DocumentListParams::Category::In] },
|
|
75
|
-
api_name: :in
|
|
76
|
-
|
|
77
|
-
# @!method initialize(in_: nil)
|
|
78
|
-
# Some parameter documentations has been truncated, see
|
|
79
|
-
# {Increase::Models::DocumentListParams::Category} for more details.
|
|
80
|
-
#
|
|
81
|
-
# @param in_ [Array<Symbol, Increase::Models::DocumentListParams::Category::In>] Filter Documents for those with the specified category or categories. For GET re
|
|
82
|
-
|
|
83
|
-
module In
|
|
84
|
-
extend Increase::Internal::Type::Enum
|
|
85
|
-
|
|
86
|
-
# Internal Revenue Service Form 1099-INT.
|
|
87
|
-
FORM_1099_INT = :form_1099_int
|
|
88
|
-
|
|
89
|
-
# Internal Revenue Service Form 1099-MISC.
|
|
90
|
-
FORM_1099_MISC = :form_1099_misc
|
|
91
|
-
|
|
92
|
-
# A document submitted in response to a proof of authorization request for an ACH transfer.
|
|
93
|
-
PROOF_OF_AUTHORIZATION = :proof_of_authorization
|
|
94
|
-
|
|
95
|
-
# Company information, such a policies or procedures, typically submitted during our due diligence process.
|
|
96
|
-
COMPANY_INFORMATION = :company_information
|
|
97
|
-
|
|
98
|
-
# An account verification letter.
|
|
99
|
-
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter
|
|
100
|
-
|
|
101
|
-
# Funding instructions.
|
|
102
|
-
FUNDING_INSTRUCTIONS = :funding_instructions
|
|
103
|
-
|
|
104
|
-
# @!method self.values
|
|
105
|
-
# @return [Array<Symbol>]
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
110
|
-
# @!attribute after
|
|
111
|
-
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
112
|
-
# timestamp.
|
|
113
|
-
#
|
|
114
|
-
# @return [Time, nil]
|
|
115
|
-
optional :after, Time
|
|
116
|
-
|
|
117
|
-
# @!attribute before
|
|
118
|
-
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
119
|
-
# timestamp.
|
|
120
|
-
#
|
|
121
|
-
# @return [Time, nil]
|
|
122
|
-
optional :before, Time
|
|
123
|
-
|
|
124
|
-
# @!attribute on_or_after
|
|
125
|
-
# Return results on or after this
|
|
126
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
127
|
-
#
|
|
128
|
-
# @return [Time, nil]
|
|
129
|
-
optional :on_or_after, Time
|
|
130
|
-
|
|
131
|
-
# @!attribute on_or_before
|
|
132
|
-
# Return results on or before this
|
|
133
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
134
|
-
#
|
|
135
|
-
# @return [Time, nil]
|
|
136
|
-
optional :on_or_before, Time
|
|
137
|
-
|
|
138
|
-
# @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
|
|
139
|
-
# Some parameter documentations has been truncated, see
|
|
140
|
-
# {Increase::Models::DocumentListParams::CreatedAt} for more details.
|
|
141
|
-
#
|
|
142
|
-
# @param after [Time] Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) tim
|
|
143
|
-
#
|
|
144
|
-
# @param before [Time] Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ti
|
|
145
|
-
#
|
|
146
|
-
# @param on_or_after [Time] Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_860
|
|
147
|
-
#
|
|
148
|
-
# @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::Documents#retrieve
|
|
6
|
-
class DocumentRetrieveParams < 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
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
module Simulations
|
|
6
|
-
# @see Increase::Resources::Simulations::Documents#create
|
|
7
|
-
class DocumentCreateParams < Increase::Internal::Type::BaseModel
|
|
8
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Increase::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
# @!attribute account_id
|
|
12
|
-
# The identifier of the Account the tax document is for.
|
|
13
|
-
#
|
|
14
|
-
# @return [String]
|
|
15
|
-
required :account_id, String
|
|
16
|
-
|
|
17
|
-
# @!method initialize(account_id:, request_options: {})
|
|
18
|
-
# @param account_id [String] The identifier of the Account the tax document is for.
|
|
19
|
-
#
|
|
20
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class Documents
|
|
6
|
-
# Some parameter documentations has been truncated, see
|
|
7
|
-
# {Increase::Models::DocumentCreateParams} for more details.
|
|
8
|
-
#
|
|
9
|
-
# Create a Document
|
|
10
|
-
#
|
|
11
|
-
# @overload create(category:, account_verification_letter: nil, funding_instructions: nil, request_options: {})
|
|
12
|
-
#
|
|
13
|
-
# @param category [Symbol, Increase::Models::DocumentCreateParams::Category] The type of document to create.
|
|
14
|
-
#
|
|
15
|
-
# @param account_verification_letter [Increase::Models::DocumentCreateParams::AccountVerificationLetter] An account verification letter. Required if and only if `category` is `account_v
|
|
16
|
-
#
|
|
17
|
-
# @param funding_instructions [Increase::Models::DocumentCreateParams::FundingInstructions] Funding instructions. Required if and only if `category` is `funding_instruction
|
|
18
|
-
#
|
|
19
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
|
-
#
|
|
21
|
-
# @return [Increase::Models::Document]
|
|
22
|
-
#
|
|
23
|
-
# @see Increase::Models::DocumentCreateParams
|
|
24
|
-
def create(params)
|
|
25
|
-
parsed, options = Increase::DocumentCreateParams.dump_request(params)
|
|
26
|
-
@client.request(
|
|
27
|
-
method: :post,
|
|
28
|
-
path: "documents",
|
|
29
|
-
body: parsed,
|
|
30
|
-
model: Increase::Document,
|
|
31
|
-
options: options
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# Retrieve a Document
|
|
36
|
-
#
|
|
37
|
-
# @overload retrieve(document_id, request_options: {})
|
|
38
|
-
#
|
|
39
|
-
# @param document_id [String] The identifier of the Document to retrieve.
|
|
40
|
-
#
|
|
41
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
|
-
#
|
|
43
|
-
# @return [Increase::Models::Document]
|
|
44
|
-
#
|
|
45
|
-
# @see Increase::Models::DocumentRetrieveParams
|
|
46
|
-
def retrieve(document_id, params = {})
|
|
47
|
-
@client.request(
|
|
48
|
-
method: :get,
|
|
49
|
-
path: ["documents/%1$s", document_id],
|
|
50
|
-
model: Increase::Document,
|
|
51
|
-
options: params[:request_options]
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Some parameter documentations has been truncated, see
|
|
56
|
-
# {Increase::Models::DocumentListParams} for more details.
|
|
57
|
-
#
|
|
58
|
-
# List Documents
|
|
59
|
-
#
|
|
60
|
-
# @overload list(category: nil, created_at: nil, cursor: nil, entity_id: nil, idempotency_key: nil, limit: nil, request_options: {})
|
|
61
|
-
#
|
|
62
|
-
# @param category [Increase::Models::DocumentListParams::Category]
|
|
63
|
-
#
|
|
64
|
-
# @param created_at [Increase::Models::DocumentListParams::CreatedAt]
|
|
65
|
-
#
|
|
66
|
-
# @param cursor [String] Return the page of entries after this one.
|
|
67
|
-
#
|
|
68
|
-
# @param entity_id [String] Filter Documents to ones belonging to the specified Entity.
|
|
69
|
-
#
|
|
70
|
-
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
71
|
-
#
|
|
72
|
-
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
73
|
-
#
|
|
74
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
75
|
-
#
|
|
76
|
-
# @return [Increase::Internal::Page<Increase::Models::Document>]
|
|
77
|
-
#
|
|
78
|
-
# @see Increase::Models::DocumentListParams
|
|
79
|
-
def list(params = {})
|
|
80
|
-
parsed, options = Increase::DocumentListParams.dump_request(params)
|
|
81
|
-
@client.request(
|
|
82
|
-
method: :get,
|
|
83
|
-
path: "documents",
|
|
84
|
-
query: parsed,
|
|
85
|
-
page: Increase::Internal::Page,
|
|
86
|
-
model: Increase::Document,
|
|
87
|
-
options: options
|
|
88
|
-
)
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
# @api private
|
|
92
|
-
#
|
|
93
|
-
# @param client [Increase::Client]
|
|
94
|
-
def initialize(client:)
|
|
95
|
-
@client = client
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class Simulations
|
|
6
|
-
class Documents
|
|
7
|
-
# Simulates an tax document being created for an account.
|
|
8
|
-
#
|
|
9
|
-
# @overload create(account_id:, request_options: {})
|
|
10
|
-
#
|
|
11
|
-
# @param account_id [String] The identifier of the Account the tax document is for.
|
|
12
|
-
#
|
|
13
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
14
|
-
#
|
|
15
|
-
# @return [Increase::Models::Document]
|
|
16
|
-
#
|
|
17
|
-
# @see Increase::Models::Simulations::DocumentCreateParams
|
|
18
|
-
def create(params)
|
|
19
|
-
parsed, options = Increase::Simulations::DocumentCreateParams.dump_request(params)
|
|
20
|
-
@client.request(
|
|
21
|
-
method: :post,
|
|
22
|
-
path: "simulations/documents",
|
|
23
|
-
body: parsed,
|
|
24
|
-
model: Increase::Document,
|
|
25
|
-
options: options
|
|
26
|
-
)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
# @api private
|
|
30
|
-
#
|
|
31
|
-
# @param client [Increase::Client]
|
|
32
|
-
def initialize(client:)
|
|
33
|
-
@client = client
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|