payabli 3.0.13 → 3.0.15
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/.fern/metadata.json +4 -4
- data/lib/payabli/client.rb +1 -1
- data/lib/payabli/money_out/client.rb +4 -0
- data/lib/payabli/notificationlogs/client.rb +5 -5
- data/lib/payabli/query/client.rb +3 -3
- data/lib/payabli/token_storage/client.rb +2 -2
- data/lib/payabli/types/add_method_response.rb +2 -0
- data/lib/payabli/types/add_method_response_response_data.rb +8 -0
- data/lib/payabli/types/bill_out_data.rb +1 -1
- data/lib/payabli/types/bill_pay_out_data.rb +1 -1
- data/lib/payabli/types/bill_pay_out_data_request.rb +1 -1
- data/lib/payabli/types/bill_response_data.rb +1 -1
- data/lib/payabli/types/get_method_response_response_data.rb +2 -0
- data/lib/payabli/types/get_method_response_response_data_customers_item.rb +38 -33
- data/lib/payabli/types/notification_log.rb +18 -1
- data/lib/payabli/types/notification_log_base.rb +40 -0
- data/lib/payabli/types/notification_log_detail.rb +14 -4
- data/lib/payabli/types/notification_retry_response.rb +9 -0
- data/lib/payabli/types/ocr_result_data.rb +4 -0
- data/lib/payabli/types/user_data.rb +1 -1
- data/lib/payabli/types/user_query_record.rb +1 -1
- data/lib/payabli/types/v_card_get_response_associated_vendor.rb +1 -1
- data/lib/payabli/types/vendor_query_record.rb +53 -53
- data/lib/payabli/version.rb +1 -1
- data/lib/payabli.rb +8 -6
- data/reference.md +15 -13
- data/wiremock/wiremock-mappings.json +28 -28
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d12141d2f16c743d39455869141df8b9c7a0d86a43cfcca30413bcbc9e278c0
|
|
4
|
+
data.tar.gz: d5c7acd5e29adf978adf824ff64f0d36bd1e21c9928049fe00eae5b486f1046b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fb60dff74018e7d8c7ea4771ee5696950d130fd99def890e9f03e6fc76100789071cbe469fc51f87c09a2ca61e9905d6ea28b68dbf3dc8b2b1e20e45aea4d0e
|
|
7
|
+
data.tar.gz: cd2f0776b6bf4e04aee493d6e33813ffe21352bf48fee61da81d3faa53f826d709df0521fcee8b8b9966aa88483f08ddb36ae8223fd47d2cd44ae4ec3bd42953
|
data/.fern/metadata.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cliVersion": "5.
|
|
2
|
+
"cliVersion": "5.128.3",
|
|
3
3
|
"generatorName": "fernapi/fern-ruby-sdk",
|
|
4
4
|
"generatorVersion": "1.24.0",
|
|
5
5
|
"generatorConfig": {
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"rubocopVariableNumberStyle": "snake_case",
|
|
8
8
|
"respectOptionalRequestBody": true
|
|
9
9
|
},
|
|
10
|
-
"originGitCommit": "
|
|
10
|
+
"originGitCommit": "0566725547b6e687f9adb28dcf875097c4989bc1",
|
|
11
11
|
"originGitCommitIsDirty": true,
|
|
12
12
|
"invokedBy": "ci",
|
|
13
|
-
"requestedVersion": "3.0.
|
|
13
|
+
"requestedVersion": "3.0.15",
|
|
14
14
|
"ciProvider": "github",
|
|
15
|
-
"sdkVersion": "3.0.
|
|
15
|
+
"sdkVersion": "3.0.15"
|
|
16
16
|
}
|
data/lib/payabli/client.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Payabli
|
|
|
32
32
|
@raw_client = Payabli::Internal::Http::RawClient.new(
|
|
33
33
|
base_url: base_url || Payabli::Environment::SANDBOX,
|
|
34
34
|
headers: {
|
|
35
|
-
"User-Agent" => "payabli/3.0.
|
|
35
|
+
"User-Agent" => "payabli/3.0.15",
|
|
36
36
|
"X-Fern-Language" => "Ruby"
|
|
37
37
|
},
|
|
38
38
|
auth_provider: Payabli::Internal::RoutingAuthProvider.new(
|
|
@@ -682,6 +682,10 @@ module Payabli
|
|
|
682
682
|
# The new transaction goes through the standard authorize-and-capture flow automatically. Both the original and
|
|
683
683
|
# new transactions are linked through their event histories for audit purposes.
|
|
684
684
|
#
|
|
685
|
+
# The reissue request doesn't accept a service fee. Payabli always charges the fee configured in the paypoint's
|
|
686
|
+
# ACH payout pricing, even when the pricing allows fee overrides. The new transaction keeps the original payout's
|
|
687
|
+
# total amount. The vendor receives that amount minus the configured fee.
|
|
688
|
+
#
|
|
685
689
|
# @param request_options [Hash]
|
|
686
690
|
# @param params [Payabli::MoneyOut::Types::ReissueOutRequest]
|
|
687
691
|
# @option request_options [String] :base_url
|
|
@@ -31,7 +31,7 @@ module Payabli
|
|
|
31
31
|
# page_size: 20,
|
|
32
32
|
# start_date: "2024-01-01T00:00:00Z",
|
|
33
33
|
# end_date: "2024-01-31T23:59:59Z",
|
|
34
|
-
# notification_event: "
|
|
34
|
+
# notification_event: "approvedpayment",
|
|
35
35
|
# succeeded: true,
|
|
36
36
|
# org_id: 123
|
|
37
37
|
# )
|
|
@@ -125,7 +125,7 @@ module Payabli
|
|
|
125
125
|
# @example
|
|
126
126
|
# client.notificationlogs.retry_notification_log(uuid: "550e8400-e29b-41d4-a716-446655440000")
|
|
127
127
|
#
|
|
128
|
-
# @return [Payabli::Types::
|
|
128
|
+
# @return [Payabli::Types::NotificationRetryResponse]
|
|
129
129
|
def retry_notification_log(request_options: {}, **params)
|
|
130
130
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
131
131
|
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
@@ -143,7 +143,7 @@ module Payabli
|
|
|
143
143
|
end
|
|
144
144
|
code = response.code.to_i
|
|
145
145
|
if code.between?(200, 299)
|
|
146
|
-
Payabli::Types::
|
|
146
|
+
Payabli::Types::NotificationRetryResponse.load(response.body)
|
|
147
147
|
else
|
|
148
148
|
error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
|
|
149
149
|
raise error_class.new(response.body, code: code)
|
|
@@ -164,9 +164,9 @@ module Payabli
|
|
|
164
164
|
# @option request_options [Integer] :timeout_in_seconds
|
|
165
165
|
#
|
|
166
166
|
# @example
|
|
167
|
-
# client.notificationlogs.bulk_retry_notification_logs(request: %w[
|
|
167
|
+
# client.notificationlogs.bulk_retry_notification_logs(request: %w[string string])
|
|
168
168
|
#
|
|
169
|
-
# @return [
|
|
169
|
+
# @return [String]
|
|
170
170
|
def bulk_retry_notification_logs(request_options: {}, **params)
|
|
171
171
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
172
172
|
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
data/lib/payabli/query/client.rb
CHANGED
|
@@ -592,8 +592,8 @@ module Payabli
|
|
|
592
592
|
end
|
|
593
593
|
end
|
|
594
594
|
|
|
595
|
-
# Returns a list of cloud devices for a single paypoint. Use filters to limit results. Include the
|
|
596
|
-
# query parameter to return the results as a file instead of a JSON response.
|
|
595
|
+
# Returns a list of cloud and AXIUM devices for a single paypoint. Use filters to limit results. Include the
|
|
596
|
+
# `exportFormat` query parameter to return the results as a file instead of a JSON response.
|
|
597
597
|
#
|
|
598
598
|
# @param request_options [Hash]
|
|
599
599
|
# @param params [Hash]
|
|
@@ -650,7 +650,7 @@ module Payabli
|
|
|
650
650
|
end
|
|
651
651
|
end
|
|
652
652
|
|
|
653
|
-
# Returns a list of cloud devices for a single organization. Use filters to limit results. Include the
|
|
653
|
+
# Returns a list of cloud and AXIUM devices for a single organization. Use filters to limit results. Include the
|
|
654
654
|
# `exportFormat` query parameter to return the results as a file instead of a JSON response.
|
|
655
655
|
#
|
|
656
656
|
# @param request_options [Hash]
|
|
@@ -11,8 +11,8 @@ module Payabli
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
# Saves a payment method for reuse. This call exchanges sensitive payment information for a token that can be used
|
|
14
|
-
# to process future transactions. The `
|
|
15
|
-
# transactions.
|
|
14
|
+
# to process future transactions. The `referenceId` value in the response is the `storedMethodId` to use with
|
|
15
|
+
# transactions, and the `methodId` to use when you manage the saved payment method.
|
|
16
16
|
#
|
|
17
17
|
# @param request_options [Hash]
|
|
18
18
|
# @param params [Payabli::Types::RequestTokenStorage]
|
|
@@ -7,6 +7,8 @@ module Payabli
|
|
|
7
7
|
|
|
8
8
|
field :response_text, -> { String }, optional: false, nullable: false, api_name: "responseText"
|
|
9
9
|
|
|
10
|
+
field :page_identifier, -> { String }, optional: true, nullable: false, api_name: "pageIdentifier"
|
|
11
|
+
|
|
10
12
|
field :response_data, -> { Payabli::Types::AddMethodResponseResponseData }, optional: true, nullable: false, api_name: "responseData"
|
|
11
13
|
end
|
|
12
14
|
end
|
|
@@ -11,6 +11,14 @@ module Payabli
|
|
|
11
11
|
|
|
12
12
|
field :customer_id, -> { Integer }, optional: true, nullable: false, api_name: "customerId"
|
|
13
13
|
|
|
14
|
+
field :auth_code, -> { String }, optional: true, nullable: false, api_name: "authCode"
|
|
15
|
+
|
|
16
|
+
field :avs_response_text, -> { String }, optional: true, nullable: false, api_name: "avsResponseText"
|
|
17
|
+
|
|
18
|
+
field :cvv_response_text, -> { String }, optional: true, nullable: false, api_name: "cvvResponseText"
|
|
19
|
+
|
|
20
|
+
field :vendor_id, -> { Integer }, optional: true, nullable: false, api_name: "vendorId"
|
|
21
|
+
|
|
14
22
|
field :method_reference_id, -> { String }, optional: true, nullable: false, api_name: "methodReferenceId"
|
|
15
23
|
end
|
|
16
24
|
end
|
|
@@ -8,7 +8,7 @@ module Payabli
|
|
|
8
8
|
|
|
9
9
|
field :accounting_field_2, -> { String }, optional: true, nullable: false, api_name: "accountingField2"
|
|
10
10
|
|
|
11
|
-
field :additional_data, -> { String }, optional: true, nullable: false, api_name: "additionalData"
|
|
11
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "additionalData"
|
|
12
12
|
|
|
13
13
|
field :attachments, -> { Internal::Types::Array[Payabli::Types::FileContent] }, optional: true, nullable: false
|
|
14
14
|
|
|
@@ -13,7 +13,7 @@ module Payabli
|
|
|
13
13
|
|
|
14
14
|
field :terms, -> { Payabli::Types::Terms }, optional: true, nullable: false, api_name: "Terms"
|
|
15
15
|
|
|
16
|
-
field :additional_data, -> { String }, optional:
|
|
16
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: true, api_name: "AdditionalData"
|
|
17
17
|
|
|
18
18
|
field :attachments, -> { Internal::Types::Array[Payabli::Types::FileContent] }, optional: true, nullable: false
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ module Payabli
|
|
|
23
23
|
|
|
24
24
|
field :accounting_field_2, -> { String }, optional: true, nullable: false, api_name: "accountingField2"
|
|
25
25
|
|
|
26
|
-
field :additional_data, -> { String }, optional: true, nullable: false, api_name: "additionalData"
|
|
26
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "additionalData"
|
|
27
27
|
|
|
28
28
|
field :attachments, -> { Internal::Types::Array[Payabli::Types::FileContent] }, optional: true, nullable: false
|
|
29
29
|
end
|
|
@@ -41,7 +41,7 @@ module Payabli
|
|
|
41
41
|
|
|
42
42
|
field :source, -> { String }, optional: true, nullable: false, api_name: "Source"
|
|
43
43
|
|
|
44
|
-
field :additional_data, -> { String }, optional:
|
|
44
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: true, api_name: "AdditionalData"
|
|
45
45
|
|
|
46
46
|
field :vendor, -> { Payabli::Types::VendorDataResponse }, optional: true, nullable: false, api_name: "Vendor"
|
|
47
47
|
|
|
@@ -38,6 +38,8 @@ module Payabli
|
|
|
38
38
|
field :postal_code, -> { String }, optional: true, nullable: false, api_name: "postalCode"
|
|
39
39
|
|
|
40
40
|
field :vendors, -> { Internal::Types::Array[Payabli::Types::GetMethodResponseResponseDataVendorsItem] }, optional: true, nullable: false
|
|
41
|
+
|
|
42
|
+
field :wallet_type, -> { String }, optional: true, nullable: false, api_name: "walletType"
|
|
41
43
|
end
|
|
42
44
|
end
|
|
43
45
|
end
|
|
@@ -2,54 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
module Payabli
|
|
4
4
|
module Types
|
|
5
|
+
# The customer record that owns the stored payment method.
|
|
5
6
|
class GetMethodResponseResponseDataCustomersItem < Internal::Types::Model
|
|
6
|
-
field :
|
|
7
|
+
field :additional_fields, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "additionalFields"
|
|
7
8
|
|
|
8
|
-
field :
|
|
9
|
+
field :address, -> { String }, optional: true, nullable: false
|
|
9
10
|
|
|
10
|
-
field :
|
|
11
|
+
field :address_1, -> { String }, optional: true, nullable: false, api_name: "address1"
|
|
11
12
|
|
|
12
|
-
field :
|
|
13
|
+
field :balance, -> { Integer }, optional: true, nullable: false
|
|
13
14
|
|
|
14
|
-
field :
|
|
15
|
+
field :city, -> { String }, optional: true, nullable: false
|
|
15
16
|
|
|
16
|
-
field :
|
|
17
|
+
field :company, -> { String }, optional: true, nullable: false
|
|
17
18
|
|
|
18
|
-
field :
|
|
19
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
19
20
|
|
|
20
|
-
field :
|
|
21
|
+
field :created, -> { String }, optional: true, nullable: false
|
|
21
22
|
|
|
22
|
-
field :
|
|
23
|
+
field :customer_consent, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false, api_name: "customerConsent"
|
|
23
24
|
|
|
24
|
-
field :
|
|
25
|
+
field :customer_events, -> { Internal::Types::Array[Object] }, optional: true, nullable: false, api_name: "customerEvents"
|
|
25
26
|
|
|
26
27
|
field :customer_id, -> { Integer }, optional: true, nullable: false, api_name: "customerId"
|
|
27
28
|
|
|
28
29
|
field :customer_number, -> { String }, optional: true, nullable: false, api_name: "customerNumber"
|
|
29
30
|
|
|
30
|
-
field :
|
|
31
|
-
|
|
32
|
-
field :identifier_fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "identifierFields"
|
|
33
|
-
|
|
34
|
-
field :last_name, -> { String }, optional: true, nullable: false, api_name: "lastName"
|
|
35
|
-
|
|
36
|
-
field :shipping_address_1, -> { String }, optional: true, nullable: false, api_name: "shippingAddress1"
|
|
37
|
-
|
|
38
|
-
field :shipping_address_2, -> { String }, optional: true, nullable: false, api_name: "shippingAddress2"
|
|
39
|
-
|
|
40
|
-
field :shipping_city, -> { String }, optional: true, nullable: false, api_name: "shippingCity"
|
|
41
|
-
|
|
42
|
-
field :shipping_country, -> { String }, optional: true, nullable: false, api_name: "shippingCountry"
|
|
43
|
-
|
|
44
|
-
field :shipping_state, -> { String }, optional: true, nullable: false, api_name: "shippingState"
|
|
45
|
-
|
|
46
|
-
field :shipping_zip, -> { String }, optional: true, nullable: false, api_name: "shippingZip"
|
|
47
|
-
|
|
48
|
-
field :balance, -> { Integer }, optional: true, nullable: false
|
|
49
|
-
|
|
50
|
-
field :created, -> { String }, optional: true, nullable: false
|
|
51
|
-
|
|
52
|
-
field :customer_consent, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false, api_name: "customerConsent"
|
|
31
|
+
field :customer_portal, -> { String }, optional: true, nullable: false, api_name: "customerPortal"
|
|
53
32
|
|
|
54
33
|
field :customer_status, -> { Integer }, optional: true, nullable: false, api_name: "customerStatus"
|
|
55
34
|
|
|
@@ -57,8 +36,16 @@ module Payabli
|
|
|
57
36
|
|
|
58
37
|
field :customer_username, -> { String }, optional: true, nullable: false, api_name: "customerUsername"
|
|
59
38
|
|
|
39
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
40
|
+
|
|
60
41
|
field :external_paypoint_id, -> { String }, optional: true, nullable: false, api_name: "externalPaypointID"
|
|
61
42
|
|
|
43
|
+
field :firstname, -> { String }, optional: true, nullable: false
|
|
44
|
+
|
|
45
|
+
field :identifier_fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "identifierFields"
|
|
46
|
+
|
|
47
|
+
field :lastname, -> { String }, optional: true, nullable: false
|
|
48
|
+
|
|
62
49
|
field :last_updated, -> { String }, optional: true, nullable: false, api_name: "lastUpdated"
|
|
63
50
|
|
|
64
51
|
field :mfa, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -77,17 +64,35 @@ module Payabli
|
|
|
77
64
|
|
|
78
65
|
field :paypoint_legalname, -> { String }, optional: true, nullable: false, api_name: "paypointLegalname"
|
|
79
66
|
|
|
67
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
68
|
+
|
|
69
|
+
field :shipping_address, -> { String }, optional: true, nullable: false, api_name: "shippingAddress"
|
|
70
|
+
|
|
71
|
+
field :shipping_address_1, -> { String }, optional: true, nullable: false, api_name: "shippingAddress1"
|
|
72
|
+
|
|
73
|
+
field :shipping_city, -> { String }, optional: true, nullable: false, api_name: "shippingCity"
|
|
74
|
+
|
|
75
|
+
field :shipping_country, -> { String }, optional: true, nullable: false, api_name: "shippingCountry"
|
|
76
|
+
|
|
77
|
+
field :shipping_state, -> { String }, optional: true, nullable: false, api_name: "shippingState"
|
|
78
|
+
|
|
79
|
+
field :shipping_zip, -> { String }, optional: true, nullable: false, api_name: "shippingZip"
|
|
80
|
+
|
|
80
81
|
field :sn_data, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false, api_name: "snData"
|
|
81
82
|
|
|
82
83
|
field :sn_identifier, -> { String }, optional: true, nullable: false, api_name: "snIdentifier"
|
|
83
84
|
|
|
84
85
|
field :sn_provider, -> { String }, optional: true, nullable: false, api_name: "snProvider"
|
|
85
86
|
|
|
87
|
+
field :state, -> { String }, optional: true, nullable: false
|
|
88
|
+
|
|
86
89
|
field :stored_methods, -> { Internal::Types::Array[Payabli::Types::MethodQueryRecords] }, optional: true, nullable: false, api_name: "storedMethods"
|
|
87
90
|
|
|
88
91
|
field :subscriptions, -> { Internal::Types::Array[Payabli::Types::SubscriptionQueryRecords] }, optional: true, nullable: false
|
|
89
92
|
|
|
90
93
|
field :time_zone, -> { Integer }, optional: true, nullable: false, api_name: "timeZone"
|
|
94
|
+
|
|
95
|
+
field :zip, -> { String }, optional: true, nullable: false
|
|
91
96
|
end
|
|
92
97
|
end
|
|
93
98
|
end
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module Payabli
|
|
4
4
|
module Types
|
|
5
|
+
# A notification log entry returned by the search endpoint.
|
|
5
6
|
class NotificationLog < Internal::Types::Model
|
|
7
|
+
field :organization_name, -> { String }, optional: false, nullable: false, api_name: "organizationName"
|
|
8
|
+
|
|
9
|
+
field :paypoint_name, -> { String }, optional: false, nullable: false, api_name: "paypointName"
|
|
10
|
+
|
|
11
|
+
field :request_id, -> { String }, optional: false, nullable: false, api_name: "requestId"
|
|
12
|
+
|
|
6
13
|
field :id, -> { String }, optional: false, nullable: false
|
|
7
14
|
|
|
8
15
|
field :org_id, -> { Integer }, optional: false, nullable: true, api_name: "orgId"
|
|
@@ -13,7 +20,9 @@ module Payabli
|
|
|
13
20
|
|
|
14
21
|
field :target, -> { String }, optional: false, nullable: true
|
|
15
22
|
|
|
16
|
-
field :
|
|
23
|
+
field :response_status_code, -> { Integer }, optional: false, nullable: false, api_name: "responseStatusCode"
|
|
24
|
+
|
|
25
|
+
field :response_status, -> { String }, optional: false, nullable: false, api_name: "responseStatus"
|
|
17
26
|
|
|
18
27
|
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
19
28
|
|
|
@@ -26,6 +35,14 @@ module Payabli
|
|
|
26
35
|
field :last_failed_date, -> { String }, optional: false, nullable: true, api_name: "lastFailedDate"
|
|
27
36
|
|
|
28
37
|
field :is_in_progress, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isInProgress"
|
|
38
|
+
|
|
39
|
+
field :organization_logo, -> { String }, optional: false, nullable: false, api_name: "organizationLogo"
|
|
40
|
+
|
|
41
|
+
field :organization_fav_icon, -> { String }, optional: false, nullable: false, api_name: "organizationFavIcon"
|
|
42
|
+
|
|
43
|
+
field :paypoint_logo, -> { String }, optional: false, nullable: false, api_name: "paypointLogo"
|
|
44
|
+
|
|
45
|
+
field :notification_type, -> { Integer }, optional: false, nullable: false, api_name: "notificationType"
|
|
29
46
|
end
|
|
30
47
|
end
|
|
31
48
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
# Fields shared by the search and detail responses for a notification log entry.
|
|
6
|
+
class NotificationLogBase < Internal::Types::Model
|
|
7
|
+
field :organization_name, -> { String }, optional: false, nullable: false, api_name: "organizationName"
|
|
8
|
+
|
|
9
|
+
field :paypoint_name, -> { String }, optional: false, nullable: false, api_name: "paypointName"
|
|
10
|
+
|
|
11
|
+
field :request_id, -> { String }, optional: false, nullable: false, api_name: "requestId"
|
|
12
|
+
|
|
13
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :org_id, -> { Integer }, optional: false, nullable: true, api_name: "orgId"
|
|
16
|
+
|
|
17
|
+
field :paypoint_id, -> { Integer }, optional: false, nullable: true, api_name: "paypointId"
|
|
18
|
+
|
|
19
|
+
field :notification_event, -> { String }, optional: false, nullable: true, api_name: "notificationEvent"
|
|
20
|
+
|
|
21
|
+
field :target, -> { String }, optional: false, nullable: true
|
|
22
|
+
|
|
23
|
+
field :response_status_code, -> { Integer }, optional: false, nullable: false, api_name: "responseStatusCode"
|
|
24
|
+
|
|
25
|
+
field :response_status, -> { String }, optional: false, nullable: false, api_name: "responseStatus"
|
|
26
|
+
|
|
27
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
28
|
+
|
|
29
|
+
field :job_data, -> { String }, optional: false, nullable: true, api_name: "jobData"
|
|
30
|
+
|
|
31
|
+
field :created_date, -> { String }, optional: false, nullable: false, api_name: "createdDate"
|
|
32
|
+
|
|
33
|
+
field :success_date, -> { String }, optional: false, nullable: true, api_name: "successDate"
|
|
34
|
+
|
|
35
|
+
field :last_failed_date, -> { String }, optional: false, nullable: true, api_name: "lastFailedDate"
|
|
36
|
+
|
|
37
|
+
field :is_in_progress, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isInProgress"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
module Payabli
|
|
4
4
|
module Types
|
|
5
|
+
# A notification log entry returned by the detail and retry endpoints, including the request and response captured
|
|
6
|
+
# for the delivery.
|
|
5
7
|
class NotificationLogDetail < Internal::Types::Model
|
|
8
|
+
field :organization_name, -> { String }, optional: false, nullable: false, api_name: "organizationName"
|
|
9
|
+
|
|
10
|
+
field :paypoint_name, -> { String }, optional: false, nullable: false, api_name: "paypointName"
|
|
11
|
+
|
|
12
|
+
field :request_id, -> { String }, optional: false, nullable: false, api_name: "requestId"
|
|
13
|
+
|
|
6
14
|
field :id, -> { String }, optional: false, nullable: false
|
|
7
15
|
|
|
8
16
|
field :org_id, -> { Integer }, optional: false, nullable: true, api_name: "orgId"
|
|
@@ -13,7 +21,9 @@ module Payabli
|
|
|
13
21
|
|
|
14
22
|
field :target, -> { String }, optional: false, nullable: true
|
|
15
23
|
|
|
16
|
-
field :
|
|
24
|
+
field :response_status_code, -> { Integer }, optional: false, nullable: false, api_name: "responseStatusCode"
|
|
25
|
+
|
|
26
|
+
field :response_status, -> { String }, optional: false, nullable: false, api_name: "responseStatus"
|
|
17
27
|
|
|
18
28
|
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
19
29
|
|
|
@@ -27,11 +37,11 @@ module Payabli
|
|
|
27
37
|
|
|
28
38
|
field :is_in_progress, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isInProgress"
|
|
29
39
|
|
|
30
|
-
field :web_headers, -> { Internal::Types::Array[Payabli::Types::StringStringKeyValuePair] }, optional:
|
|
40
|
+
field :web_headers, -> { Internal::Types::Array[Payabli::Types::StringStringKeyValuePair] }, optional: false, nullable: true, api_name: "webHeaders"
|
|
31
41
|
|
|
32
|
-
field :response_headers, -> { Internal::Types::Array[Payabli::Types::KeyValueArray] }, optional:
|
|
42
|
+
field :response_headers, -> { Internal::Types::Array[Payabli::Types::KeyValueArray] }, optional: false, nullable: true, api_name: "responseHeaders"
|
|
33
43
|
|
|
34
|
-
field :response_content, -> { String }, optional:
|
|
44
|
+
field :response_content, -> { String }, optional: false, nullable: false, api_name: "responseContent"
|
|
35
45
|
end
|
|
36
46
|
end
|
|
37
47
|
end
|
|
@@ -7,6 +7,10 @@ module Payabli
|
|
|
7
7
|
|
|
8
8
|
field :net_amount, -> { Integer }, optional: true, nullable: false, api_name: "netAmount"
|
|
9
9
|
|
|
10
|
+
field :discount, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :total_amount, -> { Integer }, optional: true, nullable: false, api_name: "totalAmount"
|
|
13
|
+
|
|
10
14
|
field :bill_date, -> { String }, optional: true, nullable: false, api_name: "billDate"
|
|
11
15
|
|
|
12
16
|
field :due_date, -> { String }, optional: true, nullable: false, api_name: "dueDate"
|
|
@@ -5,7 +5,7 @@ module Payabli
|
|
|
5
5
|
class UserData < Internal::Types::Model
|
|
6
6
|
field :access, -> { Internal::Types::Array[Payabli::Types::UsrAccess] }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
-
field :additional_data, -> { Internal::Types::Hash[String,
|
|
8
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "additionalData"
|
|
9
9
|
|
|
10
10
|
field :email, -> { String }, optional: true, nullable: false
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ module Payabli
|
|
|
5
5
|
class UserQueryRecord < Internal::Types::Model
|
|
6
6
|
field :access, -> { Internal::Types::Array[Payabli::Types::UsrAccess] }, optional: true, nullable: false, api_name: "Access"
|
|
7
7
|
|
|
8
|
-
field :additional_data, -> { String }, optional: true, nullable: false, api_name: "AdditionalData"
|
|
8
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "AdditionalData"
|
|
9
9
|
|
|
10
10
|
field :created_at, -> { String }, optional: true, nullable: false, api_name: "createdAt"
|
|
11
11
|
|
|
@@ -86,7 +86,7 @@ module Payabli
|
|
|
86
86
|
|
|
87
87
|
field :internal_reference_id, -> { Integer }, optional: true, nullable: false, api_name: "InternalReferenceId"
|
|
88
88
|
|
|
89
|
-
field :additional_data, -> { String }, optional:
|
|
89
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: true, api_name: "additionalData"
|
|
90
90
|
|
|
91
91
|
field :external_paypoint_id, -> { String }, optional: true, nullable: false, api_name: "externalPaypointID"
|
|
92
92
|
|