straddle 0.1.0.pre.alpha.1 → 0.2.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 +52 -0
- data/README.md +3 -3
- data/SECURITY.md +1 -1
- data/lib/straddle/client.rb +4 -4
- data/lib/straddle/errors.rb +25 -11
- data/lib/straddle/file_part.rb +10 -7
- data/lib/straddle/internal/page_number_schema.rb +1 -1
- data/lib/straddle/internal/transport/base_client.rb +12 -8
- data/lib/straddle/internal/transport/pooled_net_requester.rb +8 -19
- data/lib/straddle/internal/type/array_of.rb +1 -0
- data/lib/straddle/internal/type/base_model.rb +4 -9
- data/lib/straddle/internal/type/base_page.rb +1 -1
- data/lib/straddle/internal/type/converter.rb +27 -0
- data/lib/straddle/internal/type/file_input.rb +7 -4
- data/lib/straddle/internal/type/hash_of.rb +1 -0
- data/lib/straddle/internal/type/union.rb +9 -7
- data/lib/straddle/internal/util.rb +4 -3
- data/lib/straddle/models/bridge/link_bank_account_params.rb +9 -5
- data/lib/straddle/models/bridge/link_create_paykey_params.rb +9 -5
- data/lib/straddle/models/bridge/link_create_tan_params.rb +9 -5
- data/lib/straddle/models/bridge/link_plaid_params.rb +8 -1
- data/lib/straddle/models/bridge_initialize_params.rb +8 -1
- data/lib/straddle/models/charge_cancel_params.rb +8 -1
- data/lib/straddle/models/charge_create_params.rb +8 -1
- data/lib/straddle/models/charge_hold_params.rb +8 -1
- data/lib/straddle/models/charge_release_params.rb +8 -1
- data/lib/straddle/models/charge_update_params.rb +8 -1
- data/lib/straddle/models/customer_create_params.rb +8 -2
- data/lib/straddle/models/customer_delete_params.rb +7 -1
- data/lib/straddle/models/customer_list_params.rb +0 -1
- data/lib/straddle/models/customer_refresh_review_params.rb +7 -1
- data/lib/straddle/models/customer_summary_paged_v1.rb +0 -1
- data/lib/straddle/models/customer_unmasked_v1.rb +1 -5
- data/lib/straddle/models/customer_update_params.rb +8 -1
- data/lib/straddle/models/customer_v1.rb +0 -1
- data/lib/straddle/models/customers/customer_review_v1.rb +15 -52
- data/lib/straddle/models/customers/identity_verification_breakdown_v1.rb +0 -1
- data/lib/straddle/models/customers/review_decision_params.rb +8 -1
- data/lib/straddle/models/embed/account_create_params.rb +8 -2
- data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
- data/lib/straddle/models/embed/account_paged_v1.rb +3 -17
- data/lib/straddle/models/embed/account_simulate_params.rb +7 -1
- data/lib/straddle/models/embed/account_update_params.rb +8 -1
- data/lib/straddle/models/embed/account_v1.rb +2 -13
- data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +3 -11
- data/lib/straddle/models/embed/linked_bank_account_cancel_params.rb +34 -0
- data/lib/straddle/models/embed/linked_bank_account_create_params.rb +51 -4
- data/lib/straddle/models/embed/linked_bank_account_paged_v1.rb +33 -13
- data/lib/straddle/models/embed/linked_bank_account_unmask_v1.rb +3 -8
- data/lib/straddle/models/embed/linked_bank_account_update_params.rb +8 -1
- data/lib/straddle/models/embed/linked_bank_account_v1.rb +30 -1
- data/lib/straddle/models/embed/organization_create_params.rb +8 -1
- data/lib/straddle/models/embed/representative.rb +10 -1
- data/lib/straddle/models/embed/representative_create_params.rb +17 -1
- data/lib/straddle/models/embed/representative_paged.rb +10 -1
- data/lib/straddle/models/embed/representative_update_params.rb +17 -1
- data/lib/straddle/models/paykey_cancel_params.rb +7 -1
- data/lib/straddle/models/paykey_review_params.rb +54 -0
- data/lib/straddle/models/payout_cancel_params.rb +8 -1
- data/lib/straddle/models/payout_create_params.rb +8 -1
- data/lib/straddle/models/payout_hold_params.rb +8 -1
- data/lib/straddle/models/payout_release_params.rb +8 -1
- data/lib/straddle/models/payout_update_params.rb +8 -1
- data/lib/straddle/models.rb +2 -0
- data/lib/straddle/resources/bridge/link.rb +16 -4
- data/lib/straddle/resources/bridge.rb +4 -1
- data/lib/straddle/resources/charges.rb +20 -5
- data/lib/straddle/resources/customers/review.rb +4 -1
- data/lib/straddle/resources/customers.rb +16 -4
- data/lib/straddle/resources/embed/accounts/capability_requests.rb +5 -2
- data/lib/straddle/resources/embed/accounts.rb +19 -7
- data/lib/straddle/resources/embed/linked_bank_accounts.rb +51 -5
- data/lib/straddle/resources/embed/organizations.rb +5 -2
- data/lib/straddle/resources/embed/representatives.rb +14 -4
- data/lib/straddle/resources/paykeys.rb +47 -1
- data/lib/straddle/resources/payouts.rb +20 -5
- data/lib/straddle/version.rb +1 -1
- data/lib/straddle.rb +2 -0
- data/rbi/straddle/client.rbi +4 -4
- data/rbi/straddle/errors.rbi +31 -4
- data/rbi/straddle/file_part.rbi +1 -1
- data/rbi/straddle/internal/transport/base_client.rbi +5 -6
- data/rbi/straddle/internal/type/base_page.rbi +1 -1
- data/rbi/straddle/internal/type/converter.rbi +54 -0
- data/rbi/straddle/internal/type/union.rbi +9 -2
- data/rbi/straddle/internal/util.rbi +1 -1
- data/rbi/straddle/models/bridge/link_bank_account_params.rbi +9 -0
- data/rbi/straddle/models/bridge/link_create_paykey_params.rbi +9 -0
- data/rbi/straddle/models/bridge/link_create_tan_params.rbi +9 -0
- data/rbi/straddle/models/bridge/link_plaid_params.rbi +9 -0
- data/rbi/straddle/models/bridge_initialize_params.rbi +9 -0
- data/rbi/straddle/models/charge_cancel_params.rbi +9 -0
- data/rbi/straddle/models/charge_create_params.rbi +9 -0
- data/rbi/straddle/models/charge_hold_params.rbi +9 -0
- data/rbi/straddle/models/charge_release_params.rbi +9 -0
- data/rbi/straddle/models/charge_update_params.rbi +9 -0
- data/rbi/straddle/models/customer_create_params.rbi +9 -2
- data/rbi/straddle/models/customer_delete_params.rbi +9 -0
- data/rbi/straddle/models/customer_list_params.rbi +0 -2
- data/rbi/straddle/models/customer_refresh_review_params.rbi +9 -0
- data/rbi/straddle/models/customer_summary_paged_v1.rbi +0 -5
- data/rbi/straddle/models/customer_unmasked_v1.rbi +0 -5
- data/rbi/straddle/models/customer_update_params.rbi +9 -0
- data/rbi/straddle/models/customer_v1.rbi +0 -2
- data/rbi/straddle/models/customers/customer_review_v1.rbi +0 -10
- data/rbi/straddle/models/customers/identity_verification_breakdown_v1.rbi +0 -5
- data/rbi/straddle/models/customers/review_decision_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_create_params.rbi +9 -5
- data/rbi/straddle/models/embed/account_onboard_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_paged_v1.rbi +0 -25
- data/rbi/straddle/models/embed/account_simulate_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_update_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_v1.rbi +0 -25
- data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +9 -0
- data/rbi/straddle/models/embed/linked_bank_account_cancel_params.rbi +67 -0
- data/rbi/straddle/models/embed/linked_bank_account_create_params.rbi +95 -3
- data/rbi/straddle/models/embed/linked_bank_account_paged_v1.rbi +72 -0
- data/rbi/straddle/models/embed/linked_bank_account_unmask_v1.rbi +5 -0
- data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +9 -0
- data/rbi/straddle/models/embed/linked_bank_account_v1.rbi +72 -0
- data/rbi/straddle/models/embed/organization_create_params.rbi +9 -0
- data/rbi/straddle/models/embed/representative.rbi +10 -0
- data/rbi/straddle/models/embed/representative_create_params.rbi +19 -0
- data/rbi/straddle/models/embed/representative_paged.rbi +10 -0
- data/rbi/straddle/models/embed/representative_update_params.rbi +19 -0
- data/rbi/straddle/models/paykey_cancel_params.rbi +9 -0
- data/rbi/straddle/models/paykey_review_params.rbi +98 -0
- data/rbi/straddle/models/payout_cancel_params.rbi +9 -0
- data/rbi/straddle/models/payout_create_params.rbi +9 -0
- data/rbi/straddle/models/payout_hold_params.rbi +9 -0
- data/rbi/straddle/models/payout_release_params.rbi +9 -0
- data/rbi/straddle/models/payout_update_params.rbi +9 -0
- data/rbi/straddle/models.rbi +2 -0
- data/rbi/straddle/resources/bridge/link.rbi +12 -0
- data/rbi/straddle/resources/bridge.rbi +3 -0
- data/rbi/straddle/resources/charges.rbi +15 -0
- data/rbi/straddle/resources/customers/review.rbi +3 -0
- data/rbi/straddle/resources/customers.rbi +12 -0
- data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +3 -0
- data/rbi/straddle/resources/embed/accounts.rbi +12 -0
- data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +46 -1
- data/rbi/straddle/resources/embed/organizations.rbi +3 -0
- data/rbi/straddle/resources/embed/representatives.rbi +14 -0
- data/rbi/straddle/resources/paykeys.rbi +34 -0
- data/rbi/straddle/resources/payouts.rbi +15 -0
- data/sig/straddle/client.rbs +3 -3
- data/sig/straddle/errors.rbs +7 -0
- data/sig/straddle/file_part.rbs +1 -1
- data/sig/straddle/internal/transport/base_client.rbs +1 -1
- data/sig/straddle/internal/type/converter.rbs +17 -0
- data/sig/straddle/internal/type/union.rbs +2 -2
- data/sig/straddle/models/bridge/link_bank_account_params.rbs +7 -0
- data/sig/straddle/models/bridge/link_create_paykey_params.rbs +7 -0
- data/sig/straddle/models/bridge/link_create_tan_params.rbs +7 -0
- data/sig/straddle/models/bridge/link_plaid_params.rbs +7 -0
- data/sig/straddle/models/bridge_initialize_params.rbs +7 -0
- data/sig/straddle/models/charge_cancel_params.rbs +7 -0
- data/sig/straddle/models/charge_create_params.rbs +7 -0
- data/sig/straddle/models/charge_hold_params.rbs +7 -0
- data/sig/straddle/models/charge_release_params.rbs +7 -0
- data/sig/straddle/models/charge_update_params.rbs +7 -0
- data/sig/straddle/models/customer_create_params.rbs +8 -2
- data/sig/straddle/models/customer_delete_params.rbs +7 -0
- data/sig/straddle/models/customer_list_params.rbs +1 -2
- data/sig/straddle/models/customer_refresh_review_params.rbs +7 -0
- data/sig/straddle/models/customer_summary_paged_v1.rbs +1 -2
- data/sig/straddle/models/customer_unmasked_v1.rbs +1 -2
- data/sig/straddle/models/customer_update_params.rbs +7 -0
- data/sig/straddle/models/customer_v1.rbs +1 -2
- data/sig/straddle/models/customers/customer_review_v1.rbs +1 -4
- data/sig/straddle/models/customers/identity_verification_breakdown_v1.rbs +1 -6
- data/sig/straddle/models/customers/review_decision_params.rbs +7 -0
- data/sig/straddle/models/embed/account_create_params.rbs +8 -2
- data/sig/straddle/models/embed/account_onboard_params.rbs +7 -0
- data/sig/straddle/models/embed/account_paged_v1.rbs +4 -21
- data/sig/straddle/models/embed/account_simulate_params.rbs +7 -0
- data/sig/straddle/models/embed/account_update_params.rbs +7 -0
- data/sig/straddle/models/embed/account_v1.rbs +4 -21
- data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +7 -0
- data/sig/straddle/models/embed/linked_bank_account_cancel_params.rbs +40 -0
- data/sig/straddle/models/embed/linked_bank_account_create_params.rbs +38 -4
- data/sig/straddle/models/embed/linked_bank_account_paged_v1.rbs +25 -1
- data/sig/straddle/models/embed/linked_bank_account_unmask_v1.rbs +3 -1
- data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +7 -0
- data/sig/straddle/models/embed/linked_bank_account_v1.rbs +25 -1
- data/sig/straddle/models/embed/organization_create_params.rbs +7 -0
- data/sig/straddle/models/embed/representative.rbs +5 -0
- data/sig/straddle/models/embed/representative_create_params.rbs +12 -0
- data/sig/straddle/models/embed/representative_paged.rbs +5 -0
- data/sig/straddle/models/embed/representative_update_params.rbs +12 -0
- data/sig/straddle/models/paykey_cancel_params.rbs +7 -0
- data/sig/straddle/models/paykey_review_params.rbs +65 -0
- data/sig/straddle/models/payout_cancel_params.rbs +7 -0
- data/sig/straddle/models/payout_create_params.rbs +7 -0
- data/sig/straddle/models/payout_hold_params.rbs +7 -0
- data/sig/straddle/models/payout_release_params.rbs +7 -0
- data/sig/straddle/models/payout_update_params.rbs +7 -0
- data/sig/straddle/models.rbs +2 -0
- data/sig/straddle/resources/bridge/link.rbs +4 -0
- data/sig/straddle/resources/bridge.rbs +1 -0
- data/sig/straddle/resources/charges.rbs +5 -0
- data/sig/straddle/resources/customers/review.rbs +1 -0
- data/sig/straddle/resources/customers.rbs +4 -0
- data/sig/straddle/resources/embed/accounts/capability_requests.rbs +1 -0
- data/sig/straddle/resources/embed/accounts.rbs +4 -0
- data/sig/straddle/resources/embed/linked_bank_accounts.rbs +14 -1
- data/sig/straddle/resources/embed/organizations.rbs +1 -0
- data/sig/straddle/resources/embed/representatives.rbs +4 -0
- data/sig/straddle/resources/paykeys.rbs +11 -0
- data/sig/straddle/resources/payouts.rbs +5 -0
- metadata +11 -5
|
@@ -10,6 +10,7 @@ module Straddle
|
|
|
10
10
|
config: Straddle::Bridge::LinkCreateTanParams::Config,
|
|
11
11
|
metadata: ::Hash[Symbol, String]?,
|
|
12
12
|
correlation_id: String,
|
|
13
|
+
idempotency_key: String,
|
|
13
14
|
request_id: String,
|
|
14
15
|
straddle_account_id: String
|
|
15
16
|
}
|
|
@@ -39,6 +40,10 @@ module Straddle
|
|
|
39
40
|
|
|
40
41
|
def correlation_id=: (String) -> String
|
|
41
42
|
|
|
43
|
+
attr_reader idempotency_key: String?
|
|
44
|
+
|
|
45
|
+
def idempotency_key=: (String) -> String
|
|
46
|
+
|
|
42
47
|
attr_reader request_id: String?
|
|
43
48
|
|
|
44
49
|
def request_id=: (String) -> String
|
|
@@ -55,6 +60,7 @@ module Straddle
|
|
|
55
60
|
?config: Straddle::Bridge::LinkCreateTanParams::Config,
|
|
56
61
|
?metadata: ::Hash[Symbol, String]?,
|
|
57
62
|
?correlation_id: String,
|
|
63
|
+
?idempotency_key: String,
|
|
58
64
|
?request_id: String,
|
|
59
65
|
?straddle_account_id: String,
|
|
60
66
|
?request_options: Straddle::request_opts
|
|
@@ -68,6 +74,7 @@ module Straddle
|
|
|
68
74
|
config: Straddle::Bridge::LinkCreateTanParams::Config,
|
|
69
75
|
metadata: ::Hash[Symbol, String]?,
|
|
70
76
|
correlation_id: String,
|
|
77
|
+
idempotency_key: String,
|
|
71
78
|
request_id: String,
|
|
72
79
|
straddle_account_id: String,
|
|
73
80
|
request_options: Straddle::RequestOptions
|
|
@@ -8,6 +8,7 @@ module Straddle
|
|
|
8
8
|
config: Straddle::Bridge::LinkPlaidParams::Config,
|
|
9
9
|
metadata: ::Hash[Symbol, String]?,
|
|
10
10
|
correlation_id: String,
|
|
11
|
+
idempotency_key: String,
|
|
11
12
|
request_id: String,
|
|
12
13
|
straddle_account_id: String
|
|
13
14
|
}
|
|
@@ -33,6 +34,10 @@ module Straddle
|
|
|
33
34
|
|
|
34
35
|
def correlation_id=: (String) -> String
|
|
35
36
|
|
|
37
|
+
attr_reader idempotency_key: String?
|
|
38
|
+
|
|
39
|
+
def idempotency_key=: (String) -> String
|
|
40
|
+
|
|
36
41
|
attr_reader request_id: String?
|
|
37
42
|
|
|
38
43
|
def request_id=: (String) -> String
|
|
@@ -47,6 +52,7 @@ module Straddle
|
|
|
47
52
|
?config: Straddle::Bridge::LinkPlaidParams::Config,
|
|
48
53
|
?metadata: ::Hash[Symbol, String]?,
|
|
49
54
|
?correlation_id: String,
|
|
55
|
+
?idempotency_key: String,
|
|
50
56
|
?request_id: String,
|
|
51
57
|
?straddle_account_id: String,
|
|
52
58
|
?request_options: Straddle::request_opts
|
|
@@ -58,6 +64,7 @@ module Straddle
|
|
|
58
64
|
config: Straddle::Bridge::LinkPlaidParams::Config,
|
|
59
65
|
metadata: ::Hash[Symbol, String]?,
|
|
60
66
|
correlation_id: String,
|
|
67
|
+
idempotency_key: String,
|
|
61
68
|
request_id: String,
|
|
62
69
|
straddle_account_id: String,
|
|
63
70
|
request_options: Straddle::RequestOptions
|
|
@@ -5,6 +5,7 @@ module Straddle
|
|
|
5
5
|
customer_id: String,
|
|
6
6
|
config: Straddle::BridgeInitializeParams::Config,
|
|
7
7
|
correlation_id: String,
|
|
8
|
+
idempotency_key: String,
|
|
8
9
|
request_id: String,
|
|
9
10
|
straddle_account_id: String
|
|
10
11
|
}
|
|
@@ -26,6 +27,10 @@ module Straddle
|
|
|
26
27
|
|
|
27
28
|
def correlation_id=: (String) -> String
|
|
28
29
|
|
|
30
|
+
attr_reader idempotency_key: String?
|
|
31
|
+
|
|
32
|
+
def idempotency_key=: (String) -> String
|
|
33
|
+
|
|
29
34
|
attr_reader request_id: String?
|
|
30
35
|
|
|
31
36
|
def request_id=: (String) -> String
|
|
@@ -38,6 +43,7 @@ module Straddle
|
|
|
38
43
|
customer_id: String,
|
|
39
44
|
?config: Straddle::BridgeInitializeParams::Config,
|
|
40
45
|
?correlation_id: String,
|
|
46
|
+
?idempotency_key: String,
|
|
41
47
|
?request_id: String,
|
|
42
48
|
?straddle_account_id: String,
|
|
43
49
|
?request_options: Straddle::request_opts
|
|
@@ -47,6 +53,7 @@ module Straddle
|
|
|
47
53
|
customer_id: String,
|
|
48
54
|
config: Straddle::BridgeInitializeParams::Config,
|
|
49
55
|
correlation_id: String,
|
|
56
|
+
idempotency_key: String,
|
|
50
57
|
request_id: String,
|
|
51
58
|
straddle_account_id: String,
|
|
52
59
|
request_options: Straddle::RequestOptions
|
|
@@ -4,6 +4,7 @@ module Straddle
|
|
|
4
4
|
{
|
|
5
5
|
reason: String?,
|
|
6
6
|
correlation_id: String,
|
|
7
|
+
idempotency_key: String,
|
|
7
8
|
request_id: String,
|
|
8
9
|
straddle_account_id: String
|
|
9
10
|
}
|
|
@@ -19,6 +20,10 @@ module Straddle
|
|
|
19
20
|
|
|
20
21
|
def correlation_id=: (String) -> String
|
|
21
22
|
|
|
23
|
+
attr_reader idempotency_key: String?
|
|
24
|
+
|
|
25
|
+
def idempotency_key=: (String) -> String
|
|
26
|
+
|
|
22
27
|
attr_reader request_id: String?
|
|
23
28
|
|
|
24
29
|
def request_id=: (String) -> String
|
|
@@ -30,6 +35,7 @@ module Straddle
|
|
|
30
35
|
def initialize: (
|
|
31
36
|
?reason: String?,
|
|
32
37
|
?correlation_id: String,
|
|
38
|
+
?idempotency_key: String,
|
|
33
39
|
?request_id: String,
|
|
34
40
|
?straddle_account_id: String,
|
|
35
41
|
?request_options: Straddle::request_opts
|
|
@@ -38,6 +44,7 @@ module Straddle
|
|
|
38
44
|
def to_hash: -> {
|
|
39
45
|
reason: String?,
|
|
40
46
|
correlation_id: String,
|
|
47
|
+
idempotency_key: String,
|
|
41
48
|
request_id: String,
|
|
42
49
|
straddle_account_id: String,
|
|
43
50
|
request_options: Straddle::RequestOptions
|
|
@@ -13,6 +13,7 @@ module Straddle
|
|
|
13
13
|
payment_date: Date,
|
|
14
14
|
metadata: ::Hash[Symbol, String]?,
|
|
15
15
|
correlation_id: String,
|
|
16
|
+
idempotency_key: String,
|
|
16
17
|
request_id: String,
|
|
17
18
|
straddle_account_id: String
|
|
18
19
|
}
|
|
@@ -46,6 +47,10 @@ module Straddle
|
|
|
46
47
|
|
|
47
48
|
def correlation_id=: (String) -> String
|
|
48
49
|
|
|
50
|
+
attr_reader idempotency_key: String?
|
|
51
|
+
|
|
52
|
+
def idempotency_key=: (String) -> String
|
|
53
|
+
|
|
49
54
|
attr_reader request_id: String?
|
|
50
55
|
|
|
51
56
|
def request_id=: (String) -> String
|
|
@@ -66,6 +71,7 @@ module Straddle
|
|
|
66
71
|
payment_date: Date,
|
|
67
72
|
?metadata: ::Hash[Symbol, String]?,
|
|
68
73
|
?correlation_id: String,
|
|
74
|
+
?idempotency_key: String,
|
|
69
75
|
?request_id: String,
|
|
70
76
|
?straddle_account_id: String,
|
|
71
77
|
?request_options: Straddle::request_opts
|
|
@@ -83,6 +89,7 @@ module Straddle
|
|
|
83
89
|
payment_date: Date,
|
|
84
90
|
metadata: ::Hash[Symbol, String]?,
|
|
85
91
|
correlation_id: String,
|
|
92
|
+
idempotency_key: String,
|
|
86
93
|
request_id: String,
|
|
87
94
|
straddle_account_id: String,
|
|
88
95
|
request_options: Straddle::RequestOptions
|
|
@@ -4,6 +4,7 @@ module Straddle
|
|
|
4
4
|
{
|
|
5
5
|
reason: String?,
|
|
6
6
|
correlation_id: String,
|
|
7
|
+
idempotency_key: String,
|
|
7
8
|
request_id: String,
|
|
8
9
|
straddle_account_id: String
|
|
9
10
|
}
|
|
@@ -19,6 +20,10 @@ module Straddle
|
|
|
19
20
|
|
|
20
21
|
def correlation_id=: (String) -> String
|
|
21
22
|
|
|
23
|
+
attr_reader idempotency_key: String?
|
|
24
|
+
|
|
25
|
+
def idempotency_key=: (String) -> String
|
|
26
|
+
|
|
22
27
|
attr_reader request_id: String?
|
|
23
28
|
|
|
24
29
|
def request_id=: (String) -> String
|
|
@@ -30,6 +35,7 @@ module Straddle
|
|
|
30
35
|
def initialize: (
|
|
31
36
|
?reason: String?,
|
|
32
37
|
?correlation_id: String,
|
|
38
|
+
?idempotency_key: String,
|
|
33
39
|
?request_id: String,
|
|
34
40
|
?straddle_account_id: String,
|
|
35
41
|
?request_options: Straddle::request_opts
|
|
@@ -38,6 +44,7 @@ module Straddle
|
|
|
38
44
|
def to_hash: -> {
|
|
39
45
|
reason: String?,
|
|
40
46
|
correlation_id: String,
|
|
47
|
+
idempotency_key: String,
|
|
41
48
|
request_id: String,
|
|
42
49
|
straddle_account_id: String,
|
|
43
50
|
request_options: Straddle::RequestOptions
|
|
@@ -4,6 +4,7 @@ module Straddle
|
|
|
4
4
|
{
|
|
5
5
|
reason: String?,
|
|
6
6
|
correlation_id: String,
|
|
7
|
+
idempotency_key: String,
|
|
7
8
|
request_id: String,
|
|
8
9
|
straddle_account_id: String
|
|
9
10
|
}
|
|
@@ -19,6 +20,10 @@ module Straddle
|
|
|
19
20
|
|
|
20
21
|
def correlation_id=: (String) -> String
|
|
21
22
|
|
|
23
|
+
attr_reader idempotency_key: String?
|
|
24
|
+
|
|
25
|
+
def idempotency_key=: (String) -> String
|
|
26
|
+
|
|
22
27
|
attr_reader request_id: String?
|
|
23
28
|
|
|
24
29
|
def request_id=: (String) -> String
|
|
@@ -30,6 +35,7 @@ module Straddle
|
|
|
30
35
|
def initialize: (
|
|
31
36
|
?reason: String?,
|
|
32
37
|
?correlation_id: String,
|
|
38
|
+
?idempotency_key: String,
|
|
33
39
|
?request_id: String,
|
|
34
40
|
?straddle_account_id: String,
|
|
35
41
|
?request_options: Straddle::request_opts
|
|
@@ -38,6 +44,7 @@ module Straddle
|
|
|
38
44
|
def to_hash: -> {
|
|
39
45
|
reason: String?,
|
|
40
46
|
correlation_id: String,
|
|
47
|
+
idempotency_key: String,
|
|
41
48
|
request_id: String,
|
|
42
49
|
straddle_account_id: String,
|
|
43
50
|
request_options: Straddle::RequestOptions
|
|
@@ -7,6 +7,7 @@ module Straddle
|
|
|
7
7
|
payment_date: Date,
|
|
8
8
|
metadata: ::Hash[Symbol, String]?,
|
|
9
9
|
correlation_id: String,
|
|
10
|
+
idempotency_key: String,
|
|
10
11
|
request_id: String,
|
|
11
12
|
straddle_account_id: String
|
|
12
13
|
}
|
|
@@ -28,6 +29,10 @@ module Straddle
|
|
|
28
29
|
|
|
29
30
|
def correlation_id=: (String) -> String
|
|
30
31
|
|
|
32
|
+
attr_reader idempotency_key: String?
|
|
33
|
+
|
|
34
|
+
def idempotency_key=: (String) -> String
|
|
35
|
+
|
|
31
36
|
attr_reader request_id: String?
|
|
32
37
|
|
|
33
38
|
def request_id=: (String) -> String
|
|
@@ -42,6 +47,7 @@ module Straddle
|
|
|
42
47
|
payment_date: Date,
|
|
43
48
|
?metadata: ::Hash[Symbol, String]?,
|
|
44
49
|
?correlation_id: String,
|
|
50
|
+
?idempotency_key: String,
|
|
45
51
|
?request_id: String,
|
|
46
52
|
?straddle_account_id: String,
|
|
47
53
|
?request_options: Straddle::request_opts
|
|
@@ -53,6 +59,7 @@ module Straddle
|
|
|
53
59
|
payment_date: Date,
|
|
54
60
|
metadata: ::Hash[Symbol, String]?,
|
|
55
61
|
correlation_id: String,
|
|
62
|
+
idempotency_key: String,
|
|
56
63
|
request_id: String,
|
|
57
64
|
straddle_account_id: String,
|
|
58
65
|
request_options: Straddle::RequestOptions
|
|
@@ -13,6 +13,7 @@ module Straddle
|
|
|
13
13
|
external_id: String?,
|
|
14
14
|
metadata: ::Hash[Symbol, String]?,
|
|
15
15
|
correlation_id: String,
|
|
16
|
+
idempotency_key: String,
|
|
16
17
|
request_id: String,
|
|
17
18
|
straddle_account_id: String
|
|
18
19
|
}
|
|
@@ -50,6 +51,10 @@ module Straddle
|
|
|
50
51
|
|
|
51
52
|
def correlation_id=: (String) -> String
|
|
52
53
|
|
|
54
|
+
attr_reader idempotency_key: String?
|
|
55
|
+
|
|
56
|
+
def idempotency_key=: (String) -> String
|
|
57
|
+
|
|
53
58
|
attr_reader request_id: String?
|
|
54
59
|
|
|
55
60
|
def request_id=: (String) -> String
|
|
@@ -70,6 +75,7 @@ module Straddle
|
|
|
70
75
|
?external_id: String?,
|
|
71
76
|
?metadata: ::Hash[Symbol, String]?,
|
|
72
77
|
?correlation_id: String,
|
|
78
|
+
?idempotency_key: String,
|
|
73
79
|
?request_id: String,
|
|
74
80
|
?straddle_account_id: String,
|
|
75
81
|
?request_options: Straddle::request_opts
|
|
@@ -87,19 +93,19 @@ module Straddle
|
|
|
87
93
|
external_id: String?,
|
|
88
94
|
metadata: ::Hash[Symbol, String]?,
|
|
89
95
|
correlation_id: String,
|
|
96
|
+
idempotency_key: String,
|
|
90
97
|
request_id: String,
|
|
91
98
|
straddle_account_id: String,
|
|
92
99
|
request_options: Straddle::RequestOptions
|
|
93
100
|
}
|
|
94
101
|
|
|
95
|
-
type type_ = :individual | :business
|
|
102
|
+
type type_ = :individual | :business
|
|
96
103
|
|
|
97
104
|
module Type
|
|
98
105
|
extend Straddle::Internal::Type::Enum
|
|
99
106
|
|
|
100
107
|
INDIVIDUAL: :individual
|
|
101
108
|
BUSINESS: :business
|
|
102
|
-
UNKNOWN: :unknown
|
|
103
109
|
|
|
104
110
|
def self?.values: -> ::Array[Straddle::Models::CustomerCreateParams::type_]
|
|
105
111
|
end
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
type customer_delete_params =
|
|
4
4
|
{
|
|
5
5
|
correlation_id: String,
|
|
6
|
+
idempotency_key: String,
|
|
6
7
|
request_id: String,
|
|
7
8
|
straddle_account_id: String
|
|
8
9
|
}
|
|
@@ -16,6 +17,10 @@ module Straddle
|
|
|
16
17
|
|
|
17
18
|
def correlation_id=: (String) -> String
|
|
18
19
|
|
|
20
|
+
attr_reader idempotency_key: String?
|
|
21
|
+
|
|
22
|
+
def idempotency_key=: (String) -> String
|
|
23
|
+
|
|
19
24
|
attr_reader request_id: String?
|
|
20
25
|
|
|
21
26
|
def request_id=: (String) -> String
|
|
@@ -26,6 +31,7 @@ module Straddle
|
|
|
26
31
|
|
|
27
32
|
def initialize: (
|
|
28
33
|
?correlation_id: String,
|
|
34
|
+
?idempotency_key: String,
|
|
29
35
|
?request_id: String,
|
|
30
36
|
?straddle_account_id: String,
|
|
31
37
|
?request_options: Straddle::request_opts
|
|
@@ -33,6 +39,7 @@ module Straddle
|
|
|
33
39
|
|
|
34
40
|
def to_hash: -> {
|
|
35
41
|
correlation_id: String,
|
|
42
|
+
idempotency_key: String,
|
|
36
43
|
request_id: String,
|
|
37
44
|
straddle_account_id: String,
|
|
38
45
|
request_options: Straddle::RequestOptions
|
|
@@ -166,14 +166,13 @@ module Straddle
|
|
|
166
166
|
def self?.values: -> ::Array[Straddle::Models::CustomerListParams::status]
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
type type_ = :individual | :business
|
|
169
|
+
type type_ = :individual | :business
|
|
170
170
|
|
|
171
171
|
module Type
|
|
172
172
|
extend Straddle::Internal::Type::Enum
|
|
173
173
|
|
|
174
174
|
INDIVIDUAL: :individual
|
|
175
175
|
BUSINESS: :business
|
|
176
|
-
UNKNOWN: :unknown
|
|
177
176
|
|
|
178
177
|
def self?.values: -> ::Array[Straddle::Models::CustomerListParams::type_]
|
|
179
178
|
end
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
type customer_refresh_review_params =
|
|
4
4
|
{
|
|
5
5
|
correlation_id: String,
|
|
6
|
+
idempotency_key: String,
|
|
6
7
|
request_id: String,
|
|
7
8
|
straddle_account_id: String
|
|
8
9
|
}
|
|
@@ -16,6 +17,10 @@ module Straddle
|
|
|
16
17
|
|
|
17
18
|
def correlation_id=: (String) -> String
|
|
18
19
|
|
|
20
|
+
attr_reader idempotency_key: String?
|
|
21
|
+
|
|
22
|
+
def idempotency_key=: (String) -> String
|
|
23
|
+
|
|
19
24
|
attr_reader request_id: String?
|
|
20
25
|
|
|
21
26
|
def request_id=: (String) -> String
|
|
@@ -26,6 +31,7 @@ module Straddle
|
|
|
26
31
|
|
|
27
32
|
def initialize: (
|
|
28
33
|
?correlation_id: String,
|
|
34
|
+
?idempotency_key: String,
|
|
29
35
|
?request_id: String,
|
|
30
36
|
?straddle_account_id: String,
|
|
31
37
|
?request_options: Straddle::request_opts
|
|
@@ -33,6 +39,7 @@ module Straddle
|
|
|
33
39
|
|
|
34
40
|
def to_hash: -> {
|
|
35
41
|
correlation_id: String,
|
|
42
|
+
idempotency_key: String,
|
|
36
43
|
request_id: String,
|
|
37
44
|
straddle_account_id: String,
|
|
38
45
|
request_options: Straddle::RequestOptions
|
|
@@ -96,14 +96,13 @@ module Straddle
|
|
|
96
96
|
def self?.values: -> ::Array[Straddle::Models::CustomerSummaryPagedV1::Data::status]
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
type type_ = :individual | :business
|
|
99
|
+
type type_ = :individual | :business
|
|
100
100
|
|
|
101
101
|
module Type
|
|
102
102
|
extend Straddle::Internal::Type::Enum
|
|
103
103
|
|
|
104
104
|
INDIVIDUAL: :individual
|
|
105
105
|
BUSINESS: :business
|
|
106
|
-
UNKNOWN: :unknown
|
|
107
106
|
|
|
108
107
|
def self?.values: -> ::Array[Straddle::Models::CustomerSummaryPagedV1::Data::type_]
|
|
109
108
|
end
|
|
@@ -127,14 +127,13 @@ module Straddle
|
|
|
127
127
|
def self?.values: -> ::Array[Straddle::Models::CustomerUnmaskedV1::Data::status]
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
-
type type_ = :individual | :business
|
|
130
|
+
type type_ = :individual | :business
|
|
131
131
|
|
|
132
132
|
module Type
|
|
133
133
|
extend Straddle::Internal::Type::Enum
|
|
134
134
|
|
|
135
135
|
INDIVIDUAL: :individual
|
|
136
136
|
BUSINESS: :business
|
|
137
|
-
UNKNOWN: :unknown
|
|
138
137
|
|
|
139
138
|
def self?.values: -> ::Array[Straddle::Models::CustomerUnmaskedV1::Data::type_]
|
|
140
139
|
end
|
|
@@ -12,6 +12,7 @@ module Straddle
|
|
|
12
12
|
external_id: String?,
|
|
13
13
|
metadata: ::Hash[Symbol, String]?,
|
|
14
14
|
correlation_id: String,
|
|
15
|
+
idempotency_key: String,
|
|
15
16
|
request_id: String,
|
|
16
17
|
straddle_account_id: String
|
|
17
18
|
}
|
|
@@ -43,6 +44,10 @@ module Straddle
|
|
|
43
44
|
|
|
44
45
|
def correlation_id=: (String) -> String
|
|
45
46
|
|
|
47
|
+
attr_reader idempotency_key: String?
|
|
48
|
+
|
|
49
|
+
def idempotency_key=: (String) -> String
|
|
50
|
+
|
|
46
51
|
attr_reader request_id: String?
|
|
47
52
|
|
|
48
53
|
def request_id=: (String) -> String
|
|
@@ -62,6 +67,7 @@ module Straddle
|
|
|
62
67
|
?external_id: String?,
|
|
63
68
|
?metadata: ::Hash[Symbol, String]?,
|
|
64
69
|
?correlation_id: String,
|
|
70
|
+
?idempotency_key: String,
|
|
65
71
|
?request_id: String,
|
|
66
72
|
?straddle_account_id: String,
|
|
67
73
|
?request_options: Straddle::request_opts
|
|
@@ -78,6 +84,7 @@ module Straddle
|
|
|
78
84
|
external_id: String?,
|
|
79
85
|
metadata: ::Hash[Symbol, String]?,
|
|
80
86
|
correlation_id: String,
|
|
87
|
+
idempotency_key: String,
|
|
81
88
|
request_id: String,
|
|
82
89
|
straddle_account_id: String,
|
|
83
90
|
request_options: Straddle::RequestOptions
|
|
@@ -129,14 +129,13 @@ module Straddle
|
|
|
129
129
|
def self?.values: -> ::Array[Straddle::Models::CustomerV1::Data::status]
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
type type_ = :individual | :business
|
|
132
|
+
type type_ = :individual | :business
|
|
133
133
|
|
|
134
134
|
module Type
|
|
135
135
|
extend Straddle::Internal::Type::Enum
|
|
136
136
|
|
|
137
137
|
INDIVIDUAL: :individual
|
|
138
138
|
BUSINESS: :business
|
|
139
|
-
UNKNOWN: :unknown
|
|
140
139
|
|
|
141
140
|
def self?.values: -> ::Array[Straddle::Models::CustomerV1::Data::type_]
|
|
142
141
|
end
|
|
@@ -157,14 +157,13 @@ module Straddle
|
|
|
157
157
|
def self?.values: -> ::Array[Straddle::Models::Customers::CustomerReviewV1::Data::CustomerDetails::status]
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
-
type type_ = :individual | :business
|
|
160
|
+
type type_ = :individual | :business
|
|
161
161
|
|
|
162
162
|
module Type
|
|
163
163
|
extend Straddle::Internal::Type::Enum
|
|
164
164
|
|
|
165
165
|
INDIVIDUAL: :individual
|
|
166
166
|
BUSINESS: :business
|
|
167
|
-
UNKNOWN: :unknown
|
|
168
167
|
|
|
169
168
|
def self?.values: -> ::Array[Straddle::Models::Customers::CustomerReviewV1::Data::CustomerDetails::type_]
|
|
170
169
|
end
|
|
@@ -965,7 +964,6 @@ module Straddle
|
|
|
965
964
|
| :potential_match
|
|
966
965
|
| :likely_match
|
|
967
966
|
| :high_confidence
|
|
968
|
-
| :unknown
|
|
969
967
|
|
|
970
968
|
module Correlation
|
|
971
969
|
extend Straddle::Internal::Type::Enum
|
|
@@ -974,7 +972,6 @@ module Straddle
|
|
|
974
972
|
POTENTIAL_MATCH: :potential_match
|
|
975
973
|
LIKELY_MATCH: :likely_match
|
|
976
974
|
HIGH_CONFIDENCE: :high_confidence
|
|
977
|
-
UNKNOWN: :unknown
|
|
978
975
|
|
|
979
976
|
def self?.values: -> ::Array[Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList::Match::correlation]
|
|
980
977
|
end
|
|
@@ -46,11 +46,7 @@ module Straddle
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
type correlation =
|
|
49
|
-
:low_confidence
|
|
50
|
-
| :potential_match
|
|
51
|
-
| :likely_match
|
|
52
|
-
| :high_confidence
|
|
53
|
-
| :unknown
|
|
49
|
+
:low_confidence | :potential_match | :likely_match | :high_confidence
|
|
54
50
|
|
|
55
51
|
module Correlation
|
|
56
52
|
extend Straddle::Internal::Type::Enum
|
|
@@ -59,7 +55,6 @@ module Straddle
|
|
|
59
55
|
POTENTIAL_MATCH: :potential_match
|
|
60
56
|
LIKELY_MATCH: :likely_match
|
|
61
57
|
HIGH_CONFIDENCE: :high_confidence
|
|
62
|
-
UNKNOWN: :unknown
|
|
63
58
|
|
|
64
59
|
def self?.values: -> ::Array[Straddle::Models::Customers::IdentityVerificationBreakdownV1::correlation]
|
|
65
60
|
end
|
|
@@ -5,6 +5,7 @@ module Straddle
|
|
|
5
5
|
{
|
|
6
6
|
status: Straddle::Models::Customers::ReviewDecisionParams::status,
|
|
7
7
|
correlation_id: String,
|
|
8
|
+
idempotency_key: String,
|
|
8
9
|
request_id: String,
|
|
9
10
|
straddle_account_id: String
|
|
10
11
|
}
|
|
@@ -20,6 +21,10 @@ module Straddle
|
|
|
20
21
|
|
|
21
22
|
def correlation_id=: (String) -> String
|
|
22
23
|
|
|
24
|
+
attr_reader idempotency_key: String?
|
|
25
|
+
|
|
26
|
+
def idempotency_key=: (String) -> String
|
|
27
|
+
|
|
23
28
|
attr_reader request_id: String?
|
|
24
29
|
|
|
25
30
|
def request_id=: (String) -> String
|
|
@@ -31,6 +36,7 @@ module Straddle
|
|
|
31
36
|
def initialize: (
|
|
32
37
|
status: Straddle::Models::Customers::ReviewDecisionParams::status,
|
|
33
38
|
?correlation_id: String,
|
|
39
|
+
?idempotency_key: String,
|
|
34
40
|
?request_id: String,
|
|
35
41
|
?straddle_account_id: String,
|
|
36
42
|
?request_options: Straddle::request_opts
|
|
@@ -39,6 +45,7 @@ module Straddle
|
|
|
39
45
|
def to_hash: -> {
|
|
40
46
|
status: Straddle::Models::Customers::ReviewDecisionParams::status,
|
|
41
47
|
correlation_id: String,
|
|
48
|
+
idempotency_key: String,
|
|
42
49
|
request_id: String,
|
|
43
50
|
straddle_account_id: String,
|
|
44
51
|
request_options: Straddle::RequestOptions
|
|
@@ -10,6 +10,7 @@ module Straddle
|
|
|
10
10
|
external_id: String?,
|
|
11
11
|
metadata: ::Hash[Symbol, String?]?,
|
|
12
12
|
correlation_id: String,
|
|
13
|
+
idempotency_key: String,
|
|
13
14
|
request_id: String
|
|
14
15
|
}
|
|
15
16
|
& Straddle::Internal::Type::request_parameters
|
|
@@ -34,6 +35,10 @@ module Straddle
|
|
|
34
35
|
|
|
35
36
|
def correlation_id=: (String) -> String
|
|
36
37
|
|
|
38
|
+
attr_reader idempotency_key: String?
|
|
39
|
+
|
|
40
|
+
def idempotency_key=: (String) -> String
|
|
41
|
+
|
|
37
42
|
attr_reader request_id: String?
|
|
38
43
|
|
|
39
44
|
def request_id=: (String) -> String
|
|
@@ -46,6 +51,7 @@ module Straddle
|
|
|
46
51
|
?external_id: String?,
|
|
47
52
|
?metadata: ::Hash[Symbol, String?]?,
|
|
48
53
|
?correlation_id: String,
|
|
54
|
+
?idempotency_key: String,
|
|
49
55
|
?request_id: String,
|
|
50
56
|
?request_options: Straddle::request_opts
|
|
51
57
|
) -> void
|
|
@@ -58,6 +64,7 @@ module Straddle
|
|
|
58
64
|
external_id: String?,
|
|
59
65
|
metadata: ::Hash[Symbol, String?]?,
|
|
60
66
|
correlation_id: String,
|
|
67
|
+
idempotency_key: String,
|
|
61
68
|
request_id: String,
|
|
62
69
|
request_options: Straddle::RequestOptions
|
|
63
70
|
}
|
|
@@ -73,13 +80,12 @@ module Straddle
|
|
|
73
80
|
def self?.values: -> ::Array[Straddle::Models::Embed::AccountCreateParams::access_level]
|
|
74
81
|
end
|
|
75
82
|
|
|
76
|
-
type account_type = :business
|
|
83
|
+
type account_type = :business
|
|
77
84
|
|
|
78
85
|
module AccountType
|
|
79
86
|
extend Straddle::Internal::Type::Enum
|
|
80
87
|
|
|
81
88
|
BUSINESS: :business
|
|
82
|
-
UNKNOWN: :unknown
|
|
83
89
|
|
|
84
90
|
def self?.values: -> ::Array[Straddle::Models::Embed::AccountCreateParams::account_type]
|
|
85
91
|
end
|
|
@@ -5,6 +5,7 @@ module Straddle
|
|
|
5
5
|
{
|
|
6
6
|
terms_of_service: Straddle::Embed::TermsOfServiceV1,
|
|
7
7
|
correlation_id: String,
|
|
8
|
+
idempotency_key: String,
|
|
8
9
|
request_id: String
|
|
9
10
|
}
|
|
10
11
|
& Straddle::Internal::Type::request_parameters
|
|
@@ -19,6 +20,10 @@ module Straddle
|
|
|
19
20
|
|
|
20
21
|
def correlation_id=: (String) -> String
|
|
21
22
|
|
|
23
|
+
attr_reader idempotency_key: String?
|
|
24
|
+
|
|
25
|
+
def idempotency_key=: (String) -> String
|
|
26
|
+
|
|
22
27
|
attr_reader request_id: String?
|
|
23
28
|
|
|
24
29
|
def request_id=: (String) -> String
|
|
@@ -26,6 +31,7 @@ module Straddle
|
|
|
26
31
|
def initialize: (
|
|
27
32
|
terms_of_service: Straddle::Embed::TermsOfServiceV1,
|
|
28
33
|
?correlation_id: String,
|
|
34
|
+
?idempotency_key: String,
|
|
29
35
|
?request_id: String,
|
|
30
36
|
?request_options: Straddle::request_opts
|
|
31
37
|
) -> void
|
|
@@ -33,6 +39,7 @@ module Straddle
|
|
|
33
39
|
def to_hash: -> {
|
|
34
40
|
terms_of_service: Straddle::Embed::TermsOfServiceV1,
|
|
35
41
|
correlation_id: String,
|
|
42
|
+
idempotency_key: String,
|
|
36
43
|
request_id: String,
|
|
37
44
|
request_options: Straddle::RequestOptions
|
|
38
45
|
}
|