straddle 0.3.0 → 0.4.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 +74 -0
- data/README.md +10 -1
- data/lib/straddle/client.rb +34 -0
- data/lib/straddle/internal/transport/pooled_net_requester.rb +13 -11
- data/lib/straddle/internal/util.rb +39 -3
- data/lib/straddle/models/bridge/link_create_paykey_response.rb +8 -0
- data/lib/straddle/models/bridge/link_create_tan_response.rb +8 -0
- data/lib/straddle/models/charge_cancel_params.rb +8 -1
- data/lib/straddle/models/charge_create_params.rb +20 -4
- data/lib/straddle/models/charge_get_params.rb +7 -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_unmask_params.rb +7 -1
- data/lib/straddle/models/charge_unmask_response.rb +59 -5
- data/lib/straddle/models/charge_update_params.rb +11 -4
- data/lib/straddle/models/charge_v1.rb +59 -5
- data/lib/straddle/models/customer_delete_params.rb +7 -1
- data/lib/straddle/models/customer_get_params.rb +7 -1
- data/lib/straddle/models/customer_unmasked_params.rb +7 -1
- data/lib/straddle/models/customer_update_params.rb +8 -1
- data/lib/straddle/models/customers/review_decision_params.rb +8 -1
- data/lib/straddle/models/customers/review_get_params.rb +7 -1
- data/lib/straddle/models/customers/review_refresh_review_params.rb +7 -1
- data/lib/straddle/models/embed/account_get_params.rb +11 -1
- data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
- data/lib/straddle/models/embed/account_paged_v1.rb +4 -0
- 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 +4 -0
- data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_list_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +9 -1
- data/lib/straddle/models/embed/address_v1.rb +14 -38
- data/lib/straddle/models/embed/linked_bank_account_cancel_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_get_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_unmask_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_update_params.rb +8 -1
- data/lib/straddle/models/embed/organization_get_params.rb +7 -1
- data/lib/straddle/models/embed/representative_get_params.rb +7 -1
- data/lib/straddle/models/embed/representative_unmask_params.rb +7 -1
- data/lib/straddle/models/embed/representative_update_params.rb +8 -1
- data/lib/straddle/models/funding_event_get_params.rb +7 -1
- data/lib/straddle/models/funding_event_list_params.rb +105 -1
- data/lib/straddle/models/funding_event_summary_item_v1.rb +128 -1
- data/lib/straddle/models/funding_event_summary_paged_v1.rb +128 -1
- data/lib/straddle/models/paykey_cancel_params.rb +7 -1
- data/lib/straddle/models/paykey_get_params.rb +7 -1
- data/lib/straddle/models/paykey_list_params.rb +24 -1
- data/lib/straddle/models/paykey_reveal_params.rb +7 -1
- data/lib/straddle/models/paykey_reveal_response.rb +8 -0
- data/lib/straddle/models/paykey_summary_paged_v1.rb +19 -1
- data/lib/straddle/models/paykey_unmasked_params.rb +7 -1
- data/lib/straddle/models/paykey_unmasked_v1.rb +8 -0
- data/lib/straddle/models/paykey_update_balance_params.rb +7 -1
- data/lib/straddle/models/paykey_v1.rb +19 -1
- data/lib/straddle/models/paykeys/review_decision_params.rb +7 -1
- data/lib/straddle/models/paykeys/review_get_params.rb +7 -1
- data/lib/straddle/models/paykeys/review_get_response.rb +19 -4
- data/lib/straddle/models/paykeys/review_refresh_review_params.rb +7 -1
- data/lib/straddle/models/payment_list_params.rb +17 -1
- data/lib/straddle/models/payment_summary_paged_v1.rb +13 -4
- data/lib/straddle/models/payout_cancel_params.rb +8 -1
- data/lib/straddle/models/payout_create_params.rb +20 -4
- data/lib/straddle/models/payout_get_params.rb +7 -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_unmask_params.rb +7 -1
- data/lib/straddle/models/payout_unmask_response.rb +59 -5
- data/lib/straddle/models/payout_update_params.rb +11 -4
- data/lib/straddle/models/payout_v1.rb +59 -5
- data/lib/straddle/models/status_details_v1.rb +7 -0
- data/lib/straddle/resources/bridge/link.rb +12 -6
- data/lib/straddle/resources/bridge.rb +13 -1
- data/lib/straddle/resources/charges.rb +13 -8
- data/lib/straddle/resources/customers/review.rb +7 -1
- data/lib/straddle/resources/customers.rb +23 -10
- data/lib/straddle/resources/embed/accounts/capability_requests.rb +9 -4
- data/lib/straddle/resources/embed/accounts.rb +25 -14
- data/lib/straddle/resources/embed/linked_bank_accounts.rb +11 -6
- data/lib/straddle/resources/embed/organizations.rb +7 -2
- data/lib/straddle/resources/embed/representatives.rb +15 -8
- data/lib/straddle/resources/embed.rb +19 -0
- data/lib/straddle/resources/funding_events.rb +22 -3
- data/lib/straddle/resources/paykeys/review.rb +7 -2
- data/lib/straddle/resources/paykeys.rb +36 -11
- data/lib/straddle/resources/payments.rb +12 -6
- data/lib/straddle/resources/payouts.rb +11 -7
- data/lib/straddle/version.rb +1 -1
- data/lib/straddle.rb +1 -0
- data/manifest.yaml +1 -0
- data/rbi/straddle/client.rbi +34 -0
- data/rbi/straddle/internal/util.rbi +21 -1
- data/rbi/straddle/models/bridge/link_create_paykey_response.rbi +40 -0
- data/rbi/straddle/models/bridge/link_create_tan_response.rbi +40 -0
- data/rbi/straddle/models/charge_cancel_params.rbi +6 -0
- data/rbi/straddle/models/charge_create_params.rbi +19 -3
- data/rbi/straddle/models/charge_get_params.rbi +6 -0
- data/rbi/straddle/models/charge_hold_params.rbi +6 -0
- data/rbi/straddle/models/charge_release_params.rbi +6 -0
- data/rbi/straddle/models/charge_unmask_params.rbi +6 -0
- data/rbi/straddle/models/charge_unmask_response.rbi +143 -6
- data/rbi/straddle/models/charge_update_params.rbi +9 -3
- data/rbi/straddle/models/charge_v1.rbi +135 -6
- data/rbi/straddle/models/customer_delete_params.rbi +6 -0
- data/rbi/straddle/models/customer_get_params.rbi +6 -0
- data/rbi/straddle/models/customer_unmasked_params.rbi +6 -0
- data/rbi/straddle/models/customer_update_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_decision_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_get_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_refresh_review_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_get_params.rbi +13 -1
- data/rbi/straddle/models/embed/account_onboard_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_paged_v1.rbi +20 -0
- data/rbi/straddle/models/embed/account_simulate_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_update_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_v1.rbi +20 -0
- data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +6 -0
- data/rbi/straddle/models/embed/accounts/capability_request_list_params.rbi +6 -0
- data/rbi/straddle/models/embed/accounts/capability_request_paged_v1.rbi +8 -0
- data/rbi/straddle/models/embed/address_v1.rbi +18 -42
- data/rbi/straddle/models/embed/linked_bank_account_cancel_params.rbi +6 -0
- data/rbi/straddle/models/embed/linked_bank_account_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/linked_bank_account_unmask_params.rbi +11 -1
- data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +6 -0
- data/rbi/straddle/models/embed/organization_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_unmask_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_update_params.rbi +6 -0
- data/rbi/straddle/models/funding_event_get_params.rbi +6 -0
- data/rbi/straddle/models/funding_event_list_params.rbi +333 -0
- data/rbi/straddle/models/funding_event_summary_item_v1.rbi +392 -0
- data/rbi/straddle/models/funding_event_summary_paged_v1.rbi +393 -0
- data/rbi/straddle/models/paykey_cancel_params.rbi +6 -0
- data/rbi/straddle/models/paykey_get_params.rbi +6 -0
- data/rbi/straddle/models/paykey_list_params.rbi +30 -0
- data/rbi/straddle/models/paykey_reveal_params.rbi +6 -0
- data/rbi/straddle/models/paykey_reveal_response.rbi +40 -0
- data/rbi/straddle/models/paykey_summary_paged_v1.rbi +55 -3
- data/rbi/straddle/models/paykey_unmasked_params.rbi +6 -0
- data/rbi/straddle/models/paykey_unmasked_v1.rbi +40 -0
- data/rbi/straddle/models/paykey_update_balance_params.rbi +6 -0
- data/rbi/straddle/models/paykey_v1.rbi +52 -3
- data/rbi/straddle/models/paykeys/review_decision_params.rbi +6 -0
- data/rbi/straddle/models/paykeys/review_get_params.rbi +6 -0
- data/rbi/straddle/models/paykeys/review_get_response.rbi +55 -18
- data/rbi/straddle/models/paykeys/review_refresh_review_params.rbi +6 -0
- data/rbi/straddle/models/payment_list_params.rbi +51 -0
- data/rbi/straddle/models/payment_summary_paged_v1.rbi +16 -3
- data/rbi/straddle/models/payout_cancel_params.rbi +6 -0
- data/rbi/straddle/models/payout_create_params.rbi +19 -3
- data/rbi/straddle/models/payout_get_params.rbi +6 -0
- data/rbi/straddle/models/payout_hold_params.rbi +6 -0
- data/rbi/straddle/models/payout_release_params.rbi +6 -0
- data/rbi/straddle/models/payout_unmask_params.rbi +6 -0
- data/rbi/straddle/models/payout_unmask_response.rbi +140 -3
- data/rbi/straddle/models/payout_update_params.rbi +9 -3
- data/rbi/straddle/models/payout_v1.rbi +132 -3
- data/rbi/straddle/models/status_details_v1.rbi +29 -0
- data/rbi/straddle/resources/bridge/link.rbi +12 -6
- data/rbi/straddle/resources/bridge.rbi +13 -1
- data/rbi/straddle/resources/charges.rbi +13 -8
- data/rbi/straddle/resources/customers/review.rbi +7 -1
- data/rbi/straddle/resources/customers.rbi +20 -8
- data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +6 -2
- data/rbi/straddle/resources/embed/accounts.rbi +19 -10
- data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +8 -4
- data/rbi/straddle/resources/embed/organizations.rbi +4 -0
- data/rbi/straddle/resources/embed/representatives.rbi +12 -6
- data/rbi/straddle/resources/embed.rbi +19 -0
- data/rbi/straddle/resources/funding_events.rbi +27 -0
- data/rbi/straddle/resources/paykeys/review.rbi +7 -2
- data/rbi/straddle/resources/paykeys.rbi +26 -8
- data/rbi/straddle/resources/payments.rbi +8 -3
- data/rbi/straddle/resources/payouts.rbi +11 -7
- data/sig/straddle/internal/util.rbs +10 -0
- data/sig/straddle/models/bridge/link_create_paykey_response.rbs +17 -1
- data/sig/straddle/models/bridge/link_create_tan_response.rbs +17 -1
- data/sig/straddle/models/charge_cancel_params.rbs +5 -0
- data/sig/straddle/models/charge_create_params.rbs +14 -4
- data/sig/straddle/models/charge_get_params.rbs +5 -0
- data/sig/straddle/models/charge_hold_params.rbs +5 -0
- data/sig/straddle/models/charge_release_params.rbs +5 -0
- data/sig/straddle/models/charge_unmask_params.rbs +5 -0
- data/sig/straddle/models/charge_unmask_response.rbs +57 -7
- data/sig/straddle/models/charge_update_params.rbs +9 -4
- data/sig/straddle/models/charge_v1.rbs +57 -7
- data/sig/straddle/models/customer_delete_params.rbs +5 -0
- data/sig/straddle/models/customer_get_params.rbs +5 -0
- data/sig/straddle/models/customer_unmasked_params.rbs +5 -0
- data/sig/straddle/models/customer_update_params.rbs +5 -0
- data/sig/straddle/models/customers/review_decision_params.rbs +5 -0
- data/sig/straddle/models/customers/review_get_params.rbs +5 -0
- data/sig/straddle/models/customers/review_refresh_review_params.rbs +5 -0
- data/sig/straddle/models/embed/account_get_params.rbs +5 -1
- data/sig/straddle/models/embed/account_onboard_params.rbs +5 -0
- data/sig/straddle/models/embed/account_paged_v1.rbs +18 -2
- data/sig/straddle/models/embed/account_simulate_params.rbs +5 -0
- data/sig/straddle/models/embed/account_update_params.rbs +5 -0
- data/sig/straddle/models/embed/account_v1.rbs +18 -2
- data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +5 -0
- data/sig/straddle/models/embed/accounts/capability_request_list_params.rbs +5 -0
- data/sig/straddle/models/embed/accounts/capability_request_paged_v1.rbs +5 -0
- data/sig/straddle/models/embed/address_v1.rbs +12 -27
- data/sig/straddle/models/embed/linked_bank_account_cancel_params.rbs +10 -1
- data/sig/straddle/models/embed/linked_bank_account_get_params.rbs +9 -1
- data/sig/straddle/models/embed/linked_bank_account_unmask_params.rbs +9 -1
- data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +5 -0
- data/sig/straddle/models/embed/organization_get_params.rbs +5 -1
- data/sig/straddle/models/embed/representative_get_params.rbs +9 -1
- data/sig/straddle/models/embed/representative_unmask_params.rbs +9 -1
- data/sig/straddle/models/embed/representative_update_params.rbs +5 -0
- data/sig/straddle/models/funding_event_get_params.rbs +5 -0
- data/sig/straddle/models/funding_event_list_params.rbs +125 -0
- data/sig/straddle/models/funding_event_summary_item_v1.rbs +164 -0
- data/sig/straddle/models/funding_event_summary_paged_v1.rbs +164 -0
- data/sig/straddle/models/paykey_cancel_params.rbs +5 -0
- data/sig/straddle/models/paykey_get_params.rbs +5 -0
- data/sig/straddle/models/paykey_list_params.rbs +17 -1
- data/sig/straddle/models/paykey_reveal_params.rbs +5 -0
- data/sig/straddle/models/paykey_reveal_response.rbs +17 -1
- data/sig/straddle/models/paykey_summary_paged_v1.rbs +25 -4
- data/sig/straddle/models/paykey_unmasked_params.rbs +5 -0
- data/sig/straddle/models/paykey_unmasked_v1.rbs +17 -1
- data/sig/straddle/models/paykey_update_balance_params.rbs +5 -0
- data/sig/straddle/models/paykey_v1.rbs +25 -4
- data/sig/straddle/models/paykeys/review_decision_params.rbs +5 -0
- data/sig/straddle/models/paykeys/review_get_params.rbs +5 -0
- data/sig/straddle/models/paykeys/review_get_response.rbs +28 -10
- data/sig/straddle/models/paykeys/review_refresh_review_params.rbs +5 -0
- data/sig/straddle/models/payment_list_params.rbs +23 -0
- data/sig/straddle/models/payment_summary_paged_v1.rbs +11 -4
- data/sig/straddle/models/payout_cancel_params.rbs +5 -0
- data/sig/straddle/models/payout_create_params.rbs +14 -4
- data/sig/straddle/models/payout_get_params.rbs +5 -0
- data/sig/straddle/models/payout_hold_params.rbs +5 -0
- data/sig/straddle/models/payout_release_params.rbs +5 -0
- data/sig/straddle/models/payout_unmask_params.rbs +5 -0
- data/sig/straddle/models/payout_unmask_response.rbs +54 -4
- data/sig/straddle/models/payout_update_params.rbs +9 -4
- data/sig/straddle/models/payout_v1.rbs +54 -4
- data/sig/straddle/models/status_details_v1.rbs +14 -0
- data/sig/straddle/resources/charges.rbs +2 -2
- data/sig/straddle/resources/funding_events.rbs +4 -0
- data/sig/straddle/resources/paykeys.rbs +2 -0
- data/sig/straddle/resources/payments.rbs +1 -0
- data/sig/straddle/resources/payouts.rbs +2 -2
- metadata +16 -2
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -22,7 +27,8 @@ module Straddle
|
|
|
22
27
|
# @return [String, nil]
|
|
23
28
|
optional :straddle_account_id, String
|
|
24
29
|
|
|
25
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
30
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @param id [String]
|
|
26
32
|
# @param correlation_id [String]
|
|
27
33
|
# @param request_id [String]
|
|
28
34
|
# @param straddle_account_id [String]
|
|
@@ -25,6 +25,12 @@ module Straddle
|
|
|
25
25
|
# @return [Integer, nil]
|
|
26
26
|
optional :page_size, Integer
|
|
27
27
|
|
|
28
|
+
# @!attribute search_text
|
|
29
|
+
# General search term to filter paykeys.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :search_text, String
|
|
33
|
+
|
|
28
34
|
# @!attribute sort_by
|
|
29
35
|
#
|
|
30
36
|
# @return [Symbol, Straddle::Models::PaykeyListParams::SortBy, nil]
|
|
@@ -47,6 +53,15 @@ module Straddle
|
|
|
47
53
|
# @return [Array<Symbol, Straddle::Models::PaykeyListParams::Status>, nil]
|
|
48
54
|
optional :status, -> { Straddle::Internal::Type::ArrayOf[enum: Straddle::PaykeyListParams::Status] }
|
|
49
55
|
|
|
56
|
+
# @!attribute unblock_eligible
|
|
57
|
+
# Filter paykeys by unblock eligibility. When true, returns only blocked paykeys
|
|
58
|
+
# eligible for client-initiated unblocking (blocked due to R29 returns and not
|
|
59
|
+
# previously unblocked). When false, returns only blocked paykeys that are not
|
|
60
|
+
# eligible for unblocking.
|
|
61
|
+
#
|
|
62
|
+
# @return [Boolean, nil]
|
|
63
|
+
optional :unblock_eligible, Straddle::Internal::Type::Boolean
|
|
64
|
+
|
|
50
65
|
# @!attribute correlation_id
|
|
51
66
|
#
|
|
52
67
|
# @return [String, nil]
|
|
@@ -62,13 +77,18 @@ module Straddle
|
|
|
62
77
|
# @return [String, nil]
|
|
63
78
|
optional :straddle_account_id, String
|
|
64
79
|
|
|
65
|
-
# @!method initialize(customer_id: nil, page_number: nil, page_size: nil, sort_by: nil, sort_order: nil, source: nil, status: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
80
|
+
# @!method initialize(customer_id: nil, page_number: nil, page_size: nil, search_text: nil, sort_by: nil, sort_order: nil, source: nil, status: nil, unblock_eligible: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
81
|
+
# Some parameter documentations has been truncated, see
|
|
82
|
+
# {Straddle::Models::PaykeyListParams} for more details.
|
|
83
|
+
#
|
|
66
84
|
# @param customer_id [String] Filter paykeys by related customer ID.
|
|
67
85
|
#
|
|
68
86
|
# @param page_number [Integer] Page number for paginated results. Starts at 1.
|
|
69
87
|
#
|
|
70
88
|
# @param page_size [Integer] Number of results per page. Maximum: 1000.
|
|
71
89
|
#
|
|
90
|
+
# @param search_text [String] General search term to filter paykeys.
|
|
91
|
+
#
|
|
72
92
|
# @param sort_by [Symbol, Straddle::Models::PaykeyListParams::SortBy]
|
|
73
93
|
#
|
|
74
94
|
# @param sort_order [Symbol, Straddle::Models::PaykeyListParams::SortOrder]
|
|
@@ -77,6 +97,8 @@ module Straddle
|
|
|
77
97
|
#
|
|
78
98
|
# @param status [Array<Symbol, Straddle::Models::PaykeyListParams::Status>] Filter paykeys by their current status.
|
|
79
99
|
#
|
|
100
|
+
# @param unblock_eligible [Boolean] Filter paykeys by unblock eligibility. When true, returns only blocked paykeys e
|
|
101
|
+
#
|
|
80
102
|
# @param correlation_id [String]
|
|
81
103
|
#
|
|
82
104
|
# @param request_id [String]
|
|
@@ -128,6 +150,7 @@ module Straddle
|
|
|
128
150
|
INACTIVE = :inactive
|
|
129
151
|
REJECTED = :rejected
|
|
130
152
|
REVIEW = :review
|
|
153
|
+
BLOCKED = :blocked
|
|
131
154
|
|
|
132
155
|
# @!method self.values
|
|
133
156
|
# @return [Array<Symbol>]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -22,7 +27,8 @@ module Straddle
|
|
|
22
27
|
# @return [String, nil]
|
|
23
28
|
optional :straddle_account_id, String
|
|
24
29
|
|
|
25
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
30
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @param id [String]
|
|
26
32
|
# @param correlation_id [String]
|
|
27
33
|
# @param request_id [String]
|
|
28
34
|
# @param straddle_account_id [String]
|
|
@@ -237,6 +237,7 @@ module Straddle
|
|
|
237
237
|
INACTIVE = :inactive
|
|
238
238
|
REJECTED = :rejected
|
|
239
239
|
REVIEW = :review
|
|
240
|
+
BLOCKED = :blocked
|
|
240
241
|
|
|
241
242
|
# @!method self.values
|
|
242
243
|
# @return [Array<Symbol>]
|
|
@@ -388,6 +389,13 @@ module Straddle
|
|
|
388
389
|
OK = :ok
|
|
389
390
|
OTHER_NETWORK_RETURN = :other_network_return
|
|
390
391
|
PAYOUT_REFUSED = :payout_refused
|
|
392
|
+
CANCEL_REQUEST = :cancel_request
|
|
393
|
+
FAILED_VERIFICATION = :failed_verification
|
|
394
|
+
REQUIRE_REVIEW = :require_review
|
|
395
|
+
BLOCKED_BY_SYSTEM = :blocked_by_system
|
|
396
|
+
WATCHTOWER_REVIEW = :watchtower_review
|
|
397
|
+
VALIDATING = :validating
|
|
398
|
+
AUTO_HOLD = :auto_hold
|
|
391
399
|
|
|
392
400
|
# @!method self.values
|
|
393
401
|
# @return [Array<Symbol>]
|
|
@@ -118,7 +118,15 @@ module Straddle
|
|
|
118
118
|
# @return [Straddle::Models::PaykeySummaryPagedV1::Data::StatusDetails, nil]
|
|
119
119
|
optional :status_details, -> { Straddle::PaykeySummaryPagedV1::Data::StatusDetails }
|
|
120
120
|
|
|
121
|
-
# @!
|
|
121
|
+
# @!attribute unblock_eligible
|
|
122
|
+
# Indicates whether this paykey is eligible for client-initiated unblocking. Only
|
|
123
|
+
# present for blocked paykeys. True when blocked due to R29 returns and not
|
|
124
|
+
# previously unblocked, false otherwise. Null when paykey is not blocked.
|
|
125
|
+
#
|
|
126
|
+
# @return [Boolean, nil]
|
|
127
|
+
optional :unblock_eligible, Straddle::Internal::Type::Boolean, nil?: true
|
|
128
|
+
|
|
129
|
+
# @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, bank_data: nil, customer_id: nil, expires_at: nil, external_id: nil, institution_name: nil, status_details: nil, unblock_eligible: nil)
|
|
122
130
|
# Some parameter documentations has been truncated, see
|
|
123
131
|
# {Straddle::Models::PaykeySummaryPagedV1::Data} for more details.
|
|
124
132
|
#
|
|
@@ -149,6 +157,8 @@ module Straddle
|
|
|
149
157
|
# @param institution_name [String, nil] Name of the financial institution.
|
|
150
158
|
#
|
|
151
159
|
# @param status_details [Straddle::Models::PaykeySummaryPagedV1::Data::StatusDetails]
|
|
160
|
+
#
|
|
161
|
+
# @param unblock_eligible [Boolean, nil] Indicates whether this paykey is eligible for client-initiated unblocking. Only
|
|
152
162
|
|
|
153
163
|
# @see Straddle::Models::PaykeySummaryPagedV1::Data#config
|
|
154
164
|
class Config < Straddle::Internal::Type::BaseModel
|
|
@@ -216,6 +226,7 @@ module Straddle
|
|
|
216
226
|
INACTIVE = :inactive
|
|
217
227
|
REJECTED = :rejected
|
|
218
228
|
REVIEW = :review
|
|
229
|
+
BLOCKED = :blocked
|
|
219
230
|
|
|
220
231
|
# @!method self.values
|
|
221
232
|
# @return [Array<Symbol>]
|
|
@@ -328,6 +339,13 @@ module Straddle
|
|
|
328
339
|
OK = :ok
|
|
329
340
|
OTHER_NETWORK_RETURN = :other_network_return
|
|
330
341
|
PAYOUT_REFUSED = :payout_refused
|
|
342
|
+
CANCEL_REQUEST = :cancel_request
|
|
343
|
+
FAILED_VERIFICATION = :failed_verification
|
|
344
|
+
REQUIRE_REVIEW = :require_review
|
|
345
|
+
BLOCKED_BY_SYSTEM = :blocked_by_system
|
|
346
|
+
WATCHTOWER_REVIEW = :watchtower_review
|
|
347
|
+
VALIDATING = :validating
|
|
348
|
+
AUTO_HOLD = :auto_hold
|
|
331
349
|
|
|
332
350
|
# @!method self.values
|
|
333
351
|
# @return [Array<Symbol>]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -22,7 +27,8 @@ module Straddle
|
|
|
22
27
|
# @return [String, nil]
|
|
23
28
|
optional :straddle_account_id, String
|
|
24
29
|
|
|
25
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
30
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @param id [String]
|
|
26
32
|
# @param correlation_id [String]
|
|
27
33
|
# @param request_id [String]
|
|
28
34
|
# @param straddle_account_id [String]
|
|
@@ -234,6 +234,7 @@ module Straddle
|
|
|
234
234
|
INACTIVE = :inactive
|
|
235
235
|
REJECTED = :rejected
|
|
236
236
|
REVIEW = :review
|
|
237
|
+
BLOCKED = :blocked
|
|
237
238
|
|
|
238
239
|
# @!method self.values
|
|
239
240
|
# @return [Array<Symbol>]
|
|
@@ -381,6 +382,13 @@ module Straddle
|
|
|
381
382
|
OK = :ok
|
|
382
383
|
OTHER_NETWORK_RETURN = :other_network_return
|
|
383
384
|
PAYOUT_REFUSED = :payout_refused
|
|
385
|
+
CANCEL_REQUEST = :cancel_request
|
|
386
|
+
FAILED_VERIFICATION = :failed_verification
|
|
387
|
+
REQUIRE_REVIEW = :require_review
|
|
388
|
+
BLOCKED_BY_SYSTEM = :blocked_by_system
|
|
389
|
+
WATCHTOWER_REVIEW = :watchtower_review
|
|
390
|
+
VALIDATING = :validating
|
|
391
|
+
AUTO_HOLD = :auto_hold
|
|
384
392
|
|
|
385
393
|
# @!method self.values
|
|
386
394
|
# @return [Array<Symbol>]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -27,7 +32,8 @@ module Straddle
|
|
|
27
32
|
# @return [String, nil]
|
|
28
33
|
optional :straddle_account_id, String
|
|
29
34
|
|
|
30
|
-
# @!method initialize(correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
35
|
+
# @!method initialize(id:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
36
|
+
# @param id [String]
|
|
31
37
|
# @param correlation_id [String]
|
|
32
38
|
# @param idempotency_key [String]
|
|
33
39
|
# @param request_id [String]
|
|
@@ -132,7 +132,15 @@ module Straddle
|
|
|
132
132
|
# @return [Straddle::Models::PaykeyV1::Data::StatusDetails, nil]
|
|
133
133
|
optional :status_details, -> { Straddle::PaykeyV1::Data::StatusDetails }
|
|
134
134
|
|
|
135
|
-
# @!
|
|
135
|
+
# @!attribute unblock_eligible
|
|
136
|
+
# Indicates whether this paykey is eligible for client-initiated unblocking. Only
|
|
137
|
+
# present for blocked paykeys. True when blocked due to R29 returns and not
|
|
138
|
+
# previously unblocked, false otherwise. Null when paykey is not blocked.
|
|
139
|
+
#
|
|
140
|
+
# @return [Boolean, nil]
|
|
141
|
+
optional :unblock_eligible, Straddle::Internal::Type::Boolean, nil?: true
|
|
142
|
+
|
|
143
|
+
# @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, external_id: nil, institution_name: nil, metadata: nil, status_details: nil, unblock_eligible: nil)
|
|
136
144
|
# Some parameter documentations has been truncated, see
|
|
137
145
|
# {Straddle::Models::PaykeyV1::Data} for more details.
|
|
138
146
|
#
|
|
@@ -167,6 +175,8 @@ module Straddle
|
|
|
167
175
|
# @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
168
176
|
#
|
|
169
177
|
# @param status_details [Straddle::Models::PaykeyV1::Data::StatusDetails]
|
|
178
|
+
#
|
|
179
|
+
# @param unblock_eligible [Boolean, nil] Indicates whether this paykey is eligible for client-initiated unblocking. Only
|
|
170
180
|
|
|
171
181
|
# @see Straddle::Models::PaykeyV1::Data#config
|
|
172
182
|
class Config < Straddle::Internal::Type::BaseModel
|
|
@@ -234,6 +244,7 @@ module Straddle
|
|
|
234
244
|
INACTIVE = :inactive
|
|
235
245
|
REJECTED = :rejected
|
|
236
246
|
REVIEW = :review
|
|
247
|
+
BLOCKED = :blocked
|
|
237
248
|
|
|
238
249
|
# @!method self.values
|
|
239
250
|
# @return [Array<Symbol>]
|
|
@@ -385,6 +396,13 @@ module Straddle
|
|
|
385
396
|
OK = :ok
|
|
386
397
|
OTHER_NETWORK_RETURN = :other_network_return
|
|
387
398
|
PAYOUT_REFUSED = :payout_refused
|
|
399
|
+
CANCEL_REQUEST = :cancel_request
|
|
400
|
+
FAILED_VERIFICATION = :failed_verification
|
|
401
|
+
REQUIRE_REVIEW = :require_review
|
|
402
|
+
BLOCKED_BY_SYSTEM = :blocked_by_system
|
|
403
|
+
WATCHTOWER_REVIEW = :watchtower_review
|
|
404
|
+
VALIDATING = :validating
|
|
405
|
+
AUTO_HOLD = :auto_hold
|
|
388
406
|
|
|
389
407
|
# @!method self.values
|
|
390
408
|
# @return [Array<Symbol>]
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute status
|
|
12
17
|
#
|
|
13
18
|
# @return [Symbol, Straddle::Models::Paykeys::ReviewDecisionParams::Status]
|
|
@@ -33,7 +38,8 @@ module Straddle
|
|
|
33
38
|
# @return [String, nil]
|
|
34
39
|
optional :straddle_account_id, String
|
|
35
40
|
|
|
36
|
-
# @!method initialize(status:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
41
|
+
# @!method initialize(id:, status:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
42
|
+
# @param id [String]
|
|
37
43
|
# @param status [Symbol, Straddle::Models::Paykeys::ReviewDecisionParams::Status]
|
|
38
44
|
# @param correlation_id [String]
|
|
39
45
|
# @param idempotency_key [String]
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute correlation_id
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
@@ -23,7 +28,8 @@ module Straddle
|
|
|
23
28
|
# @return [String, nil]
|
|
24
29
|
optional :straddle_account_id, String
|
|
25
30
|
|
|
26
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
32
|
+
# @param id [String]
|
|
27
33
|
# @param correlation_id [String]
|
|
28
34
|
# @param request_id [String]
|
|
29
35
|
# @param straddle_account_id [String]
|
|
@@ -151,7 +151,15 @@ module Straddle
|
|
|
151
151
|
optional :status_details,
|
|
152
152
|
-> { Straddle::Models::Paykeys::ReviewGetResponse::Data::PaykeyDetails::StatusDetails }
|
|
153
153
|
|
|
154
|
-
# @!
|
|
154
|
+
# @!attribute unblock_eligible
|
|
155
|
+
# Indicates whether this paykey is eligible for client-initiated unblocking. Only
|
|
156
|
+
# present for blocked paykeys. True when blocked due to R29 returns and not
|
|
157
|
+
# previously unblocked, false otherwise. Null when paykey is not blocked.
|
|
158
|
+
#
|
|
159
|
+
# @return [Boolean, nil]
|
|
160
|
+
optional :unblock_eligible, Straddle::Internal::Type::Boolean, nil?: true
|
|
161
|
+
|
|
162
|
+
# @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, external_id: nil, institution_name: nil, metadata: nil, status_details: nil, unblock_eligible: nil)
|
|
155
163
|
# Some parameter documentations has been truncated, see
|
|
156
164
|
# {Straddle::Models::Paykeys::ReviewGetResponse::Data::PaykeyDetails} for more
|
|
157
165
|
# details.
|
|
@@ -187,6 +195,8 @@ module Straddle
|
|
|
187
195
|
# @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
188
196
|
#
|
|
189
197
|
# @param status_details [Straddle::Models::Paykeys::ReviewGetResponse::Data::PaykeyDetails::StatusDetails]
|
|
198
|
+
#
|
|
199
|
+
# @param unblock_eligible [Boolean, nil] Indicates whether this paykey is eligible for client-initiated unblocking. Only
|
|
190
200
|
|
|
191
201
|
# @see Straddle::Models::Paykeys::ReviewGetResponse::Data::PaykeyDetails#config
|
|
192
202
|
class Config < Straddle::Internal::Type::BaseModel
|
|
@@ -256,6 +266,7 @@ module Straddle
|
|
|
256
266
|
INACTIVE = :inactive
|
|
257
267
|
REJECTED = :rejected
|
|
258
268
|
REVIEW = :review
|
|
269
|
+
BLOCKED = :blocked
|
|
259
270
|
|
|
260
271
|
# @!method self.values
|
|
261
272
|
# @return [Array<Symbol>]
|
|
@@ -412,6 +423,13 @@ module Straddle
|
|
|
412
423
|
OK = :ok
|
|
413
424
|
OTHER_NETWORK_RETURN = :other_network_return
|
|
414
425
|
PAYOUT_REFUSED = :payout_refused
|
|
426
|
+
CANCEL_REQUEST = :cancel_request
|
|
427
|
+
FAILED_VERIFICATION = :failed_verification
|
|
428
|
+
REQUIRE_REVIEW = :require_review
|
|
429
|
+
BLOCKED_BY_SYSTEM = :blocked_by_system
|
|
430
|
+
WATCHTOWER_REVIEW = :watchtower_review
|
|
431
|
+
VALIDATING = :validating
|
|
432
|
+
AUTO_HOLD = :auto_hold
|
|
415
433
|
|
|
416
434
|
# @!method self.values
|
|
417
435
|
# @return [Array<Symbol>]
|
|
@@ -529,7 +547,6 @@ module Straddle
|
|
|
529
547
|
module Decision
|
|
530
548
|
extend Straddle::Internal::Type::Enum
|
|
531
549
|
|
|
532
|
-
UNKNOWN = :unknown
|
|
533
550
|
ACCEPT = :accept
|
|
534
551
|
REJECT = :reject
|
|
535
552
|
REVIEW = :review
|
|
@@ -590,7 +607,6 @@ module Straddle
|
|
|
590
607
|
module Decision
|
|
591
608
|
extend Straddle::Internal::Type::Enum
|
|
592
609
|
|
|
593
|
-
UNKNOWN = :unknown
|
|
594
610
|
ACCEPT = :accept
|
|
595
611
|
REJECT = :reject
|
|
596
612
|
REVIEW = :review
|
|
@@ -605,7 +621,6 @@ module Straddle
|
|
|
605
621
|
module Decision
|
|
606
622
|
extend Straddle::Internal::Type::Enum
|
|
607
623
|
|
|
608
|
-
UNKNOWN = :unknown
|
|
609
624
|
ACCEPT = :accept
|
|
610
625
|
REJECT = :reject
|
|
611
626
|
REVIEW = :review
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute correlation_id
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
@@ -28,7 +33,8 @@ module Straddle
|
|
|
28
33
|
# @return [String, nil]
|
|
29
34
|
optional :straddle_account_id, String
|
|
30
35
|
|
|
31
|
-
# @!method initialize(correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
36
|
+
# @!method initialize(id:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
37
|
+
# @param id [String]
|
|
32
38
|
# @param correlation_id [String]
|
|
33
39
|
# @param idempotency_key [String]
|
|
34
40
|
# @param request_id [String]
|
|
@@ -41,6 +41,12 @@ module Straddle
|
|
|
41
41
|
# @return [String, nil]
|
|
42
42
|
optional :funding_id, String
|
|
43
43
|
|
|
44
|
+
# @!attribute include_metadata
|
|
45
|
+
# Include the metadata for payments in the returned data.
|
|
46
|
+
#
|
|
47
|
+
# @return [Boolean, nil]
|
|
48
|
+
optional :include_metadata, Straddle::Internal::Type::Boolean
|
|
49
|
+
|
|
44
50
|
# @!attribute max_amount
|
|
45
51
|
# Search using a maximum `amount` of a `charge` or `payout`.
|
|
46
52
|
#
|
|
@@ -179,7 +185,7 @@ module Straddle
|
|
|
179
185
|
# @return [String, nil]
|
|
180
186
|
optional :straddle_account_id, String
|
|
181
187
|
|
|
182
|
-
# @!method initialize(customer_id: nil, default_page_size: nil, default_sort: nil, default_sort_order: nil, external_id: nil, funding_id: nil, max_amount: nil, max_created_at: nil, max_effective_at: nil, max_payment_date: nil, min_amount: nil, min_created_at: nil, min_effective_at: nil, min_payment_date: nil, page_number: nil, page_size: nil, paykey: nil, paykey_id: nil, payment_id: nil, payment_status: nil, payment_type: nil, search_text: nil, sort_by: nil, sort_order: nil, status_reason: nil, status_source: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
188
|
+
# @!method initialize(customer_id: nil, default_page_size: nil, default_sort: nil, default_sort_order: nil, external_id: nil, funding_id: nil, include_metadata: nil, max_amount: nil, max_created_at: nil, max_effective_at: nil, max_payment_date: nil, min_amount: nil, min_created_at: nil, min_effective_at: nil, min_payment_date: nil, page_number: nil, page_size: nil, paykey: nil, paykey_id: nil, payment_id: nil, payment_status: nil, payment_type: nil, search_text: nil, sort_by: nil, sort_order: nil, status_reason: nil, status_source: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
183
189
|
# @param customer_id [String] Search using the `customer_id` of a `charge` or `payout`.
|
|
184
190
|
#
|
|
185
191
|
# @param default_page_size [Integer]
|
|
@@ -192,6 +198,8 @@ module Straddle
|
|
|
192
198
|
#
|
|
193
199
|
# @param funding_id [String] Search using the `funding_id` of a `charge` or `payout`.
|
|
194
200
|
#
|
|
201
|
+
# @param include_metadata [Boolean] Include the metadata for payments in the returned data.
|
|
202
|
+
#
|
|
195
203
|
# @param max_amount [Integer] Search using a maximum `amount` of a `charge` or `payout`.
|
|
196
204
|
#
|
|
197
205
|
# @param max_created_at [Time] Search using the latest `created_at` date of a `charge` or `payout`.
|
|
@@ -276,6 +284,7 @@ module Straddle
|
|
|
276
284
|
PENDING = :pending
|
|
277
285
|
PAID = :paid
|
|
278
286
|
REVERSED = :reversed
|
|
287
|
+
VALIDATING = :validating
|
|
279
288
|
|
|
280
289
|
# @!method self.values
|
|
281
290
|
# @return [Array<Symbol>]
|
|
@@ -339,6 +348,13 @@ module Straddle
|
|
|
339
348
|
OK = :ok
|
|
340
349
|
OTHER_NETWORK_RETURN = :other_network_return
|
|
341
350
|
PAYOUT_REFUSED = :payout_refused
|
|
351
|
+
CANCEL_REQUEST = :cancel_request
|
|
352
|
+
FAILED_VERIFICATION = :failed_verification
|
|
353
|
+
REQUIRE_REVIEW = :require_review
|
|
354
|
+
BLOCKED_BY_SYSTEM = :blocked_by_system
|
|
355
|
+
WATCHTOWER_REVIEW = :watchtower_review
|
|
356
|
+
VALIDATING = :validating
|
|
357
|
+
AUTO_HOLD = :auto_hold
|
|
342
358
|
|
|
343
359
|
# @!method self.values
|
|
344
360
|
# @return [Array<Symbol>]
|
|
@@ -63,8 +63,8 @@ module Straddle
|
|
|
63
63
|
# @!attribute description
|
|
64
64
|
# An arbitrary description for the `charge` or `payout`.
|
|
65
65
|
#
|
|
66
|
-
# @return [String]
|
|
67
|
-
required :description, String
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
required :description, String, nil?: true
|
|
68
68
|
|
|
69
69
|
# @!attribute external_id
|
|
70
70
|
# Unique identifier for the `charge` or `payout` in your database. This value must
|
|
@@ -144,13 +144,19 @@ module Straddle
|
|
|
144
144
|
# @return [String, nil]
|
|
145
145
|
optional :funding_id, String, nil?: true
|
|
146
146
|
|
|
147
|
+
# @!attribute metadata
|
|
148
|
+
# Metadata for payment - only included if requested.
|
|
149
|
+
#
|
|
150
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
151
|
+
optional :metadata, Straddle::Internal::Type::HashOf[String], nil?: true
|
|
152
|
+
|
|
147
153
|
# @!attribute paykey_details
|
|
148
154
|
# Information about the paykey used for the `charge` or `payout`.
|
|
149
155
|
#
|
|
150
156
|
# @return [Straddle::Models::PaykeyDetailsV1, nil]
|
|
151
157
|
optional :paykey_details, -> { Straddle::PaykeyDetailsV1 }
|
|
152
158
|
|
|
153
|
-
# @!method initialize(id:, amount:, created_at:, currency:, description:, external_id:, funding_ids:, paykey:, payment_date:, payment_type:, status:, status_details:, trace_ids:, updated_at:, customer_details: nil, effective_at: nil, funding_id: nil, paykey_details: nil)
|
|
159
|
+
# @!method initialize(id:, amount:, created_at:, currency:, description:, external_id:, funding_ids:, paykey:, payment_date:, payment_type:, status:, status_details:, trace_ids:, updated_at:, customer_details: nil, effective_at: nil, funding_id: nil, metadata: nil, paykey_details: nil)
|
|
154
160
|
# Some parameter documentations has been truncated, see
|
|
155
161
|
# {Straddle::Models::PaymentSummaryPagedV1::Data} for more details.
|
|
156
162
|
#
|
|
@@ -162,7 +168,7 @@ module Straddle
|
|
|
162
168
|
#
|
|
163
169
|
# @param currency [String] The currency of the `charge` or `payout`. Only USD is supported.
|
|
164
170
|
#
|
|
165
|
-
# @param description [String] An arbitrary description for the `charge` or `payout`.
|
|
171
|
+
# @param description [String, nil] An arbitrary description for the `charge` or `payout`.
|
|
166
172
|
#
|
|
167
173
|
# @param external_id [String] Unique identifier for the `charge` or `payout` in your database. This value must
|
|
168
174
|
#
|
|
@@ -188,6 +194,8 @@ module Straddle
|
|
|
188
194
|
#
|
|
189
195
|
# @param funding_id [String, nil] Unique identifier for the funding event associated with the `charge` or `payout`
|
|
190
196
|
#
|
|
197
|
+
# @param metadata [Hash{Symbol=>String}, nil] Metadata for payment - only included if requested.
|
|
198
|
+
#
|
|
191
199
|
# @param paykey_details [Straddle::Models::PaykeyDetailsV1] Information about the paykey used for the `charge` or `payout`.
|
|
192
200
|
|
|
193
201
|
# The type of payment. Valid values are `charge` or `payout`.
|
|
@@ -217,6 +225,7 @@ module Straddle
|
|
|
217
225
|
PENDING = :pending
|
|
218
226
|
PAID = :paid
|
|
219
227
|
REVERSED = :reversed
|
|
228
|
+
VALIDATING = :validating
|
|
220
229
|
|
|
221
230
|
# @!method self.values
|
|
222
231
|
# @return [Array<Symbol>]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute reason
|
|
11
16
|
# Details about why the payout status was updated.
|
|
12
17
|
#
|
|
@@ -33,7 +38,9 @@ module Straddle
|
|
|
33
38
|
# @return [String, nil]
|
|
34
39
|
optional :straddle_account_id, String
|
|
35
40
|
|
|
36
|
-
# @!method initialize(reason:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
41
|
+
# @!method initialize(id:, reason:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
42
|
+
# @param id [String]
|
|
43
|
+
#
|
|
37
44
|
# @param reason [String] Details about why the payout status was updated.
|
|
38
45
|
#
|
|
39
46
|
# @param correlation_id [String]
|
|
@@ -22,8 +22,8 @@ module Straddle
|
|
|
22
22
|
# @!attribute description
|
|
23
23
|
# An arbitrary description for the payout.
|
|
24
24
|
#
|
|
25
|
-
# @return [String]
|
|
26
|
-
required :description, String
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
required :description, String, nil?: true
|
|
27
27
|
|
|
28
28
|
# @!attribute device
|
|
29
29
|
# Information about the device used when the customer authorized the payout.
|
|
@@ -91,7 +91,7 @@ module Straddle
|
|
|
91
91
|
#
|
|
92
92
|
# @param currency [String] The currency of the payout. Only USD is supported.
|
|
93
93
|
#
|
|
94
|
-
# @param description [String] An arbitrary description for the payout.
|
|
94
|
+
# @param description [String, nil] An arbitrary description for the payout.
|
|
95
95
|
#
|
|
96
96
|
# @param device [Straddle::Models::DeviceInfoV1] Information about the device used when the customer authorized the payout.
|
|
97
97
|
#
|
|
@@ -116,13 +116,29 @@ module Straddle
|
|
|
116
116
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
117
117
|
|
|
118
118
|
class Config < Straddle::Internal::Type::BaseModel
|
|
119
|
+
# @!attribute auto_hold
|
|
120
|
+
# Defines whether to automatically place this charge on hold after being created.
|
|
121
|
+
#
|
|
122
|
+
# @return [Boolean, nil]
|
|
123
|
+
optional :auto_hold, Straddle::Internal::Type::Boolean, nil?: true
|
|
124
|
+
|
|
125
|
+
# @!attribute auto_hold_message
|
|
126
|
+
# The reason the payout is being automatically held on creation.
|
|
127
|
+
#
|
|
128
|
+
# @return [String, nil]
|
|
129
|
+
optional :auto_hold_message, String, nil?: true
|
|
130
|
+
|
|
119
131
|
# @!attribute sandbox_outcome
|
|
120
132
|
# Payment will simulate processing if not Standard.
|
|
121
133
|
#
|
|
122
134
|
# @return [Symbol, Straddle::Models::PayoutCreateParams::Config::SandboxOutcome, nil]
|
|
123
135
|
optional :sandbox_outcome, enum: -> { Straddle::PayoutCreateParams::Config::SandboxOutcome }
|
|
124
136
|
|
|
125
|
-
# @!method initialize(sandbox_outcome: nil)
|
|
137
|
+
# @!method initialize(auto_hold: nil, auto_hold_message: nil, sandbox_outcome: nil)
|
|
138
|
+
# @param auto_hold [Boolean, nil] Defines whether to automatically place this charge on hold after being created.
|
|
139
|
+
#
|
|
140
|
+
# @param auto_hold_message [String, nil] The reason the payout is being automatically held on creation.
|
|
141
|
+
#
|
|
126
142
|
# @param sandbox_outcome [Symbol, Straddle::Models::PayoutCreateParams::Config::SandboxOutcome] Payment will simulate processing if not Standard.
|
|
127
143
|
|
|
128
144
|
# Payment will simulate processing if not Standard.
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -22,7 +27,8 @@ module Straddle
|
|
|
22
27
|
# @return [String, nil]
|
|
23
28
|
optional :straddle_account_id, String
|
|
24
29
|
|
|
25
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
30
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @param id [String]
|
|
26
32
|
# @param correlation_id [String]
|
|
27
33
|
# @param request_id [String]
|
|
28
34
|
# @param straddle_account_id [String]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute reason
|
|
11
16
|
# Details about why the payout status was updated.
|
|
12
17
|
#
|
|
@@ -33,7 +38,9 @@ module Straddle
|
|
|
33
38
|
# @return [String, nil]
|
|
34
39
|
optional :straddle_account_id, String
|
|
35
40
|
|
|
36
|
-
# @!method initialize(reason:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
41
|
+
# @!method initialize(id:, reason:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
42
|
+
# @param id [String]
|
|
43
|
+
#
|
|
37
44
|
# @param reason [String] Details about why the payout status was updated.
|
|
38
45
|
#
|
|
39
46
|
# @param correlation_id [String]
|