lockstep_rails 0.3.52 → 0.3.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/models/lockstep/sf_payment_request.rb +7 -0
- data/app/platform_api/schema/account_authorisation.rb +14 -0
- data/app/platform_api/schema/accounting_profile.rb +6 -11
- data/app/platform_api/schema/accounting_profile_contact.rb +4 -0
- data/app/platform_api/schema/accounting_profile_contact_result.rb +166 -0
- data/app/platform_api/schema/accounting_profile_contact_result_fetch_result.rb +26 -0
- data/app/platform_api/schema/accounting_profile_request.rb +108 -0
- data/app/platform_api/schema/address.rb +38 -0
- data/app/platform_api/schema/amount.rb +20 -0
- data/app/platform_api/schema/ap_header_info.rb +4 -0
- data/app/platform_api/schema/app_enrollment.rb +4 -0
- data/app/platform_api/schema/app_enrollment_reconnect_info.rb +5 -1
- data/app/platform_api/schema/application.rb +0 -11
- data/app/platform_api/schema/ar_header_info.rb +4 -0
- data/app/platform_api/schema/at_risk_invoice_summary.rb +18 -0
- data/app/platform_api/schema/attachment.rb +0 -18
- data/app/platform_api/schema/attachment_link.rb +59 -0
- data/app/platform_api/schema/attachment_link_fetch_result.rb +26 -0
- data/app/platform_api/schema/base_currency_sync.rb +16 -0
- data/app/platform_api/schema/batch_sync.rb +10 -0
- data/app/platform_api/schema/company.rb +35 -0
- data/app/platform_api/schema/company_details.rb +6 -2
- data/app/platform_api/schema/company_details_payment.rb +8 -0
- data/app/platform_api/schema/company_sync.rb +5 -1
- data/app/platform_api/schema/contact_sync.rb +3 -0
- data/app/platform_api/schema/credit_memo_applied_sync.rb +3 -0
- data/app/platform_api/schema/credit_memo_invoice.rb +23 -0
- data/app/platform_api/schema/creditor_account.rb +32 -0
- data/app/platform_api/schema/custom_field_sync.rb +3 -0
- data/app/platform_api/schema/debtor_account.rb +33 -0
- data/app/platform_api/schema/debtor_agent_account.rb +26 -0
- data/app/platform_api/schema/developer_account_submit.rb +0 -4
- data/app/platform_api/schema/dpo_summary.rb +5 -1
- data/app/platform_api/schema/dpo_summary_group_total.rb +5 -1
- data/app/platform_api/schema/financial_account_sync.rb +3 -0
- data/app/platform_api/schema/group_account.rb +4 -0
- data/app/platform_api/schema/instructed_amount.rb +19 -0
- data/app/platform_api/schema/invoice.rb +41 -41
- data/app/platform_api/schema/invoice_line_sync.rb +3 -0
- data/app/platform_api/schema/invoice_payment_detail.rb +23 -0
- data/app/platform_api/schema/invoice_summary.rb +24 -24
- data/app/platform_api/schema/invoice_sync.rb +27 -4
- data/app/platform_api/schema/magic_link.rb +5 -5
- data/app/platform_api/schema/magic_link_status.rb +10 -0
- data/app/platform_api/schema/metadata.rb +14 -0
- data/app/platform_api/schema/payables_coming_due.rb +18 -14
- data/app/platform_api/schema/payables_coming_due_header.rb +5 -1
- data/app/platform_api/schema/payables_coming_due_widget.rb +5 -1
- data/app/platform_api/schema/payables_summary_report.rb +6 -2
- data/app/platform_api/schema/payment.rb +41 -37
- data/app/platform_api/schema/payment_applied_sync.rb +3 -0
- data/app/platform_api/schema/payment_detail.rb +18 -0
- data/app/platform_api/schema/payment_detail_header.rb +6 -2
- data/app/platform_api/schema/payment_instrument.rb +37 -0
- data/app/platform_api/schema/payment_response.rb +118 -0
- data/app/platform_api/schema/payment_summary.rb +23 -23
- data/app/platform_api/schema/payment_sync.rb +15 -2
- data/app/platform_api/schema/remittance_information.rb +18 -0
- data/app/platform_api/schema/reporting_amount.rb +30 -0
- data/app/platform_api/schema/risk_information.rb +22 -0
- data/app/platform_api/schema/risk_rate.rb +6 -2
- data/app/platform_api/schema/settlement_discount.rb +25 -0
- data/app/platform_api/schema/settlement_discounts_info.rb +21 -0
- data/app/platform_api/schema/sf_account_response.rb +66 -0
- data/app/platform_api/schema/sf_company_request.rb +38 -0
- data/app/platform_api/schema/sf_company_response.rb +51 -0
- data/app/platform_api/schema/sf_customer_request.rb +52 -0
- data/app/platform_api/schema/sf_customer_response.rb +84 -0
- data/app/platform_api/schema/sf_enroll_request.rb +16 -0
- data/app/platform_api/schema/sf_enroll_response.rb +16 -0
- data/app/platform_api/schema/sf_organisation_request.rb +38 -0
- data/app/platform_api/schema/sf_organisation_response.rb +44 -0
- data/app/platform_api/schema/sf_payment_query_response.rb +31 -0
- data/app/platform_api/schema/sf_payment_request.rb +67 -0
- data/app/platform_api/schema/sf_payment_response.rb +132 -0
- data/app/platform_api/schema/sf_servicer_response.rb +58 -0
- data/app/platform_api/schema/sf_servicers_auth_request.rb +32 -0
- data/app/platform_api/schema/sf_servicers_auth_response.rb +14 -0
- data/app/platform_api/schema/sf_submit_payment_info.rb +55 -0
- data/app/platform_api/schema/status.rb +15 -4
- data/app/platform_api/schema/support_access.rb +19 -0
- data/app/platform_api/schema/support_access_request.rb +15 -0
- data/app/platform_api/schema/sync_request.rb +7 -4
- data/app/platform_api/schema/transaction.rb +18 -0
- data/app/platform_api/schema/transaction_detail.rb +18 -0
- data/app/platform_api/schema/transcription_request_submit.rb +6 -1
- data/app/platform_api/schema/transcription_validation_request_item_fetch_result.rb +26 -0
- data/app/platform_api/schema/webhook.rb +1 -2
- data/app/platform_api/swagger.json +12909 -7941
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +43 -2
@@ -0,0 +1,16 @@
|
|
1
|
+
class Schema::SfEnrollRequest < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Organisation request object.
|
9
|
+
field :organisation_request
|
10
|
+
|
11
|
+
# Company request object.
|
12
|
+
field :company_request
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Schema::SfEnrollResponse < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Organisation response object.
|
9
|
+
field :organisation_response
|
10
|
+
|
11
|
+
# Company response object.
|
12
|
+
field :company_response
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Schema::SfOrganisationRequest < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Optional name of Service Fabric org
|
9
|
+
# @type: string
|
10
|
+
field :name
|
11
|
+
|
12
|
+
# This will be your GroupKey
|
13
|
+
# @type: string
|
14
|
+
field :sage_crm_id
|
15
|
+
|
16
|
+
# Your country in the ISO 3166-1 Alpha-3 format.
|
17
|
+
# @type: string
|
18
|
+
field :primary_country
|
19
|
+
|
20
|
+
# Contact email of the app administrator.
|
21
|
+
# Make sure you specify a valid email - you'll need it later.
|
22
|
+
# @type: string
|
23
|
+
# @format: email
|
24
|
+
field :admin_email
|
25
|
+
|
26
|
+
# Default language of your organisation in the ISO 639-1 format.
|
27
|
+
# This default value is used when a user specifies no language
|
28
|
+
# or if the specified language isn't supported.
|
29
|
+
# @type: string
|
30
|
+
field :default_language
|
31
|
+
|
32
|
+
# This will be your GroupKey
|
33
|
+
# @type: string
|
34
|
+
field :external_id
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
class Schema::SfOrganisationResponse < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Unique ID of the organisation.
|
9
|
+
# @type: string
|
10
|
+
field :organisation_id
|
11
|
+
|
12
|
+
# Name of the organisation.
|
13
|
+
# @type: string
|
14
|
+
field :name
|
15
|
+
|
16
|
+
# Equivalent to GroupKey.
|
17
|
+
# @type: string
|
18
|
+
field :sage_crm_id
|
19
|
+
|
20
|
+
# Contact email of the app administrator.
|
21
|
+
# @type: string
|
22
|
+
field :admin_email
|
23
|
+
|
24
|
+
# Your country in the ISO 3166-1 Alpha-3 format.
|
25
|
+
# @type: string
|
26
|
+
field :primary_country
|
27
|
+
|
28
|
+
# Default language of your organisation in the ISO 639-1 format.
|
29
|
+
# This default value is used when a user specifies no language or if the specified language isn't supported.
|
30
|
+
# Example: EN
|
31
|
+
# @type: string
|
32
|
+
field :default_language
|
33
|
+
|
34
|
+
# External ID of your organisation. The ID can contain alphanumeric characters.
|
35
|
+
# @type: string
|
36
|
+
field :external_id
|
37
|
+
|
38
|
+
# Key for signing requests. This key is only returned for the first 10 minutes after the organisation was created.
|
39
|
+
# @type: string
|
40
|
+
field :signing_key
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
class Schema::SfPaymentQueryResponse < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The total of elements on the response (not in the current page).
|
9
|
+
# @type: integer
|
10
|
+
# @format: int32
|
11
|
+
field :total_elements
|
12
|
+
|
13
|
+
# The total of pages on the response.
|
14
|
+
# @type: integer
|
15
|
+
# @format: int32
|
16
|
+
field :total_pages
|
17
|
+
|
18
|
+
# The size of the current page.
|
19
|
+
# @type: integer
|
20
|
+
# @format: int32
|
21
|
+
field :size
|
22
|
+
|
23
|
+
# The page number between 0 and the totalPages property.
|
24
|
+
# @type: integer
|
25
|
+
# @format: int32
|
26
|
+
field :page_number
|
27
|
+
|
28
|
+
|
29
|
+
has_many :payments, {:class_name=>"Schema::SfPaymentResponse", :included=>true}
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
class Schema::SfPaymentRequest < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# A unique identifier assigned by the payment initiator to unambiguously identify the payment.
|
9
|
+
# The identifier is passed on, unchanged, throughout the entire end-to-end chain.
|
10
|
+
# @type: string
|
11
|
+
field :end_to_end_identifier
|
12
|
+
|
13
|
+
# A flag to enable or disable partial payments against this payment. False by default.
|
14
|
+
# @type: boolean
|
15
|
+
field :partial_payment
|
16
|
+
|
17
|
+
# The date when the real-world payment request was initiated
|
18
|
+
# (for example, date upon which an invoice was created), ISO-8601 format.
|
19
|
+
# If before 1st January, 1970, initiatedDateTime will be set to null.
|
20
|
+
# @type: string
|
21
|
+
# @format: date-time
|
22
|
+
field :initiated_date_time, Types::Params::DateTime
|
23
|
+
|
24
|
+
# Date the payment is due in ISO 8601 date format. If before 1st January, 1970, dueDate will be set to null.
|
25
|
+
# @type: string
|
26
|
+
# @format: date-time
|
27
|
+
field :due_date, Types::Params::DateTime
|
28
|
+
|
29
|
+
# An object that represents an amount of money in a specific currency.
|
30
|
+
field :instructed_amount
|
31
|
+
|
32
|
+
# An object that represents all the discounts available for a given payment.
|
33
|
+
field :settlement_discounts_info
|
34
|
+
|
35
|
+
# Array of payment methods which the debtor can choose from in order to pay.
|
36
|
+
# Primarily used to populate the PayNow options page (for example, card, PayPal, ACH).
|
37
|
+
# @type: array
|
38
|
+
field :debtor_payment_methods
|
39
|
+
|
40
|
+
# The details about the debtor receiving the payment request.
|
41
|
+
field :debtor_account
|
42
|
+
|
43
|
+
# The details about the creditor requesting the payment.
|
44
|
+
field :creditor_account
|
45
|
+
|
46
|
+
# Information supplied to enable the matching of an entry with the items that the transfer is intended to settle,
|
47
|
+
# such as a commercial invoice.
|
48
|
+
field :remittance_information
|
49
|
+
|
50
|
+
# Information related to the risk of the payment.
|
51
|
+
field :risk
|
52
|
+
|
53
|
+
# Success redirect url.
|
54
|
+
# @type: string
|
55
|
+
field :success_redirect_url
|
56
|
+
|
57
|
+
# Failure redirect url.
|
58
|
+
# @type: string
|
59
|
+
field :failure_redirect_url
|
60
|
+
|
61
|
+
# An arbitrary dictionary of key-value data to be sent to the payment provider. May be null or empty.
|
62
|
+
# @type: object
|
63
|
+
field :prepare_data
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
class Schema::SfPaymentResponse < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The unique identifier of the payment.
|
9
|
+
# @type: string
|
10
|
+
field :payment_id
|
11
|
+
|
12
|
+
# Date the orginal request was created in ISO 8601 date format.
|
13
|
+
# @type: string
|
14
|
+
# @format: date-time
|
15
|
+
field :create_date_time, Types::Params::DateTime
|
16
|
+
|
17
|
+
# The payment status
|
18
|
+
# Values: "UNAUTHORISED" "PENDING" "PAID" "PAID_OFFLINE" "FAILED" "CANCELLED" "REJECTED" "REFUNDED" "PARTIALLY" "PARTIALLY_REFUNDED"
|
19
|
+
# @type: string
|
20
|
+
field :status
|
21
|
+
|
22
|
+
# A boolean field indicating whether the payment is in a state that can be cancelled.
|
23
|
+
# All PENDING payments can be cancelled, but other statuses are provider-dependent.
|
24
|
+
# @type: boolean
|
25
|
+
field :cancellable
|
26
|
+
|
27
|
+
# Date the request was last updated in ISO 8601 date format.
|
28
|
+
# @type: string
|
29
|
+
# @format: date-time
|
30
|
+
field :update_date_time, Types::Params::DateTime
|
31
|
+
|
32
|
+
# The date when the real-world payment request was initiated
|
33
|
+
# (for example, date upon which an invoice was created), ISO-8601 format.
|
34
|
+
# If before 1st January, 1970, initiatedDateTime will be set to null.
|
35
|
+
# @type: string
|
36
|
+
# @format: date-time
|
37
|
+
field :initiated_date_time, Types::Params::DateTime
|
38
|
+
|
39
|
+
# Date the payment is due in ISO 8601 date format. If before 1st January, 1970, dueDate will be set to null.
|
40
|
+
# @type: string
|
41
|
+
# @format: date-time
|
42
|
+
field :due_date, Types::Params::DateTime
|
43
|
+
|
44
|
+
# The method that was used to pay an invoice outside of Payments Acceptance.
|
45
|
+
# Values: "CASH" "CHEQUE" "DIRECT_CREDIT" "DIRECT_DEBIT" "CARD" "VOUCHER" "CREDIT_NOTE" "UNKNOWN" "OTHER"
|
46
|
+
# @type: string
|
47
|
+
field :offline_method
|
48
|
+
|
49
|
+
# A free text field for describing offline payment methods not covered by the offlineMethod property.
|
50
|
+
# Should only be used with the OTHER offline method.
|
51
|
+
# @type: string
|
52
|
+
field :other_offline_method
|
53
|
+
|
54
|
+
# Unique identifier assigned by the payment initiator to unambiguously identify the payment.
|
55
|
+
# The identifier is passed on, unchanged, throughout the entire end-to-end chain.
|
56
|
+
# @type: string
|
57
|
+
field :end_to_end_identifier
|
58
|
+
|
59
|
+
# An object that represents an amount of money in a specific currency.
|
60
|
+
field :instructed_amount
|
61
|
+
|
62
|
+
# The fee levied by the payment provider for the payment, in minor units of the invoice currency.
|
63
|
+
# This will only be available for paid or partially paid invoices.
|
64
|
+
# Not all providers will be able to provide fee information, so this field may be null even for paid invoices.
|
65
|
+
# Where provided, this field will be non-negative.
|
66
|
+
# @type: integer
|
67
|
+
# @format: int32
|
68
|
+
field :fee
|
69
|
+
|
70
|
+
# Net amount and fees as converted into servicer account currency.
|
71
|
+
field :reporting_amount
|
72
|
+
|
73
|
+
# Amount of the payment that has been paid until now.
|
74
|
+
# @type: integer
|
75
|
+
# @format: int32
|
76
|
+
field :paid_to_date
|
77
|
+
|
78
|
+
# Amount of the payment still outstanding (excluding fees/charges). Maximum value is instructed amount.
|
79
|
+
# @type: string
|
80
|
+
field :outstanding_amount
|
81
|
+
|
82
|
+
# Amount of the payment that has been refunded. Maximum value is instructed amount.
|
83
|
+
# @type: string
|
84
|
+
field :refunded_amount
|
85
|
+
|
86
|
+
# Array of payment methods which the debtor can choose from in order to pay.
|
87
|
+
# Primarily used to populate the PayNow options page (for example, card, PayPal, ACH).
|
88
|
+
# @type: array
|
89
|
+
field :debtor_payment_methods
|
90
|
+
|
91
|
+
# Details about the creditor requesting the payment.
|
92
|
+
field :creditor_account
|
93
|
+
|
94
|
+
# The details about the debtor receiving the payment request.
|
95
|
+
field :debtor_account
|
96
|
+
|
97
|
+
# Information supplied to enable the matching of an entry with the items that the transfer is intended to settle,
|
98
|
+
# such as a commercial invoice.
|
99
|
+
field :remittance_information
|
100
|
+
|
101
|
+
# Information related to the risk of the payment.
|
102
|
+
field :risk
|
103
|
+
|
104
|
+
# Base64 encoded strings that when decoded, can be added to html emails to provider markup in supported email clients.
|
105
|
+
field :metadata
|
106
|
+
|
107
|
+
# Flag of whether this is a partial payment
|
108
|
+
# @type: boolean
|
109
|
+
field :partial_payment
|
110
|
+
|
111
|
+
# The type of the payment.
|
112
|
+
# Values: "INVOICE" "STATEMENT" "PAY_ON_ACCOUNT"
|
113
|
+
# @type: string
|
114
|
+
field :type
|
115
|
+
|
116
|
+
# The payment session ID returned in the POST /payments/{paymentId}/prepare response.
|
117
|
+
# When the prepare response includes a paymentSessionId it is mandatory to include it as part of this payload.
|
118
|
+
# Otherwise, the request will fail with a 400 error.
|
119
|
+
# @type: string
|
120
|
+
field :payment_session_id
|
121
|
+
|
122
|
+
# The redirect uri for the payment.
|
123
|
+
# @type: string
|
124
|
+
field :redirect_uri
|
125
|
+
|
126
|
+
# An arbitrary dictionary of key-value data to be sent to the payment provider. May be null or empty.
|
127
|
+
# @type: object
|
128
|
+
field :prepare_data
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
class Schema::SfServicerResponse < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The unique identifier for servicer.
|
9
|
+
# @type: string
|
10
|
+
field :servicer_id
|
11
|
+
|
12
|
+
# Name of the servicer organisation.
|
13
|
+
# @type: string
|
14
|
+
field :name
|
15
|
+
|
16
|
+
# URL for the dashboard of the servicer.
|
17
|
+
# @type: string
|
18
|
+
field :dashboard_url
|
19
|
+
|
20
|
+
# Items Enum: "card" "direct-debit"
|
21
|
+
# An array of payment types supported by the provider in the companys country.
|
22
|
+
# @type: array
|
23
|
+
field :capabilities
|
24
|
+
|
25
|
+
# Whether this provider supports an OAuth style flow for linking accounts.
|
26
|
+
# @type: boolean
|
27
|
+
field :account_linking_supported
|
28
|
+
|
29
|
+
# Whether this provider supports direct creation of an account without user intervention.
|
30
|
+
# @type: boolean
|
31
|
+
field :account_creation_supported
|
32
|
+
|
33
|
+
# Boolean field indicating whether the servicer supports reusable payment instruments
|
34
|
+
# (for example, card tokens and direct debit mandates).
|
35
|
+
# @type: boolean
|
36
|
+
field :payment_instruments_supported
|
37
|
+
|
38
|
+
# An integer >= 0 indicating the ordering of the provider. Lower numbers mean a higher priority.
|
39
|
+
# @type: integer
|
40
|
+
# @format: int32
|
41
|
+
field :rank
|
42
|
+
|
43
|
+
# Countries where this Servicer operates.
|
44
|
+
# @type: array
|
45
|
+
field :operating_countries
|
46
|
+
|
47
|
+
# Enum: "AUTH_CODE" "CLIENT_REFERRAL"
|
48
|
+
# Represents an oauth type
|
49
|
+
# @type: string
|
50
|
+
field :oauth_type
|
51
|
+
|
52
|
+
# Endpoint for the given connector API.
|
53
|
+
# @type: string
|
54
|
+
field :api_endpoint
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
class Schema::SfServicersAuthRequest < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The unique identifier of the servicer to integrate with.
|
9
|
+
# @type: string
|
10
|
+
field :servicer_id
|
11
|
+
|
12
|
+
# Enum: "signup" "login"
|
13
|
+
# The initial integration page to display. This may be ignored, depending on the integration.
|
14
|
+
# @type: string
|
15
|
+
field :landing_page_type
|
16
|
+
|
17
|
+
# An optional field specifing the URI that the browser will be redirected to at the end of the OAuth flow.
|
18
|
+
# If not specified, the browser will be redirected to the Payments Acceptance Service marketplace UI.
|
19
|
+
# @type: string
|
20
|
+
field :success_redirect_uri
|
21
|
+
|
22
|
+
# An optional field that the browser will be redirect to at the end of the OAuth flow.
|
23
|
+
# If a success redirect URI is included but no failure URI, the browser will be redirected
|
24
|
+
# to the success URI in case of errors. A failureReason query parameters will be included
|
25
|
+
# in case of errors; see above for possible values. Including a failure URI but no
|
26
|
+
# success URI will generate a 400 error.
|
27
|
+
# @type: string
|
28
|
+
field :failure_redirect_uri
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
class Schema::SfSubmitPaymentInfo < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The unique identifier of the payment submission transaction.
|
9
|
+
# @type: string
|
10
|
+
field :payment_submission_id
|
11
|
+
|
12
|
+
# The unique identifier of the payment.
|
13
|
+
# @type: string
|
14
|
+
field :payment_id
|
15
|
+
|
16
|
+
# Date the original request was created in ISO 8601 date format.
|
17
|
+
# @type: string
|
18
|
+
# @format: date-time
|
19
|
+
field :create_date_time, Types::Params::DateTime
|
20
|
+
|
21
|
+
# Enum: "SUCCEEDED" "PENDING" "DECLINED" "FAILED" "SUBMITTED" "PROCESSING" "DISPUTED" "CANCELLED" "UNKNOWN"
|
22
|
+
# Status of the payment submission.
|
23
|
+
# @type: string
|
24
|
+
field :status
|
25
|
+
|
26
|
+
# Payment method used.
|
27
|
+
# @type: string
|
28
|
+
field :payment_method_used
|
29
|
+
|
30
|
+
# Reason why the payment submission failed or was rejected.
|
31
|
+
# @type: string
|
32
|
+
field :failure_reason
|
33
|
+
|
34
|
+
# An object that represents an amount of money in a specific currency.
|
35
|
+
field :instructed_amount
|
36
|
+
|
37
|
+
# The fee levied by the payment provider for the payment submission, in minor units of the invoice currency.
|
38
|
+
# Not all providers will be able to provide fee information, so this field may be null even for successful payments.
|
39
|
+
# Where provided, this field will be non-negative.
|
40
|
+
# @type: integer
|
41
|
+
# @format: int32
|
42
|
+
field :fee
|
43
|
+
|
44
|
+
# Net amount and fees as converted into servicer account currency.
|
45
|
+
field :reporting_amount
|
46
|
+
|
47
|
+
# The details about the debtor receiving the payment request.
|
48
|
+
field :debtor_account
|
49
|
+
|
50
|
+
# The details about the creditor requesting the payment.
|
51
|
+
field :creditor_account
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
end
|
@@ -70,6 +70,14 @@ end
|
|
70
70
|
# @type: boolean
|
71
71
|
field :onboarding_scheduled
|
72
72
|
|
73
|
+
# Base Currency of the group
|
74
|
+
# @type: string
|
75
|
+
field :base_currency_code
|
76
|
+
|
77
|
+
# Country code of the group
|
78
|
+
# @type: string
|
79
|
+
field :country_code
|
80
|
+
|
73
81
|
# The id of the Magic link used to authenticate.
|
74
82
|
# @type: string
|
75
83
|
# @format: uuid
|
@@ -83,15 +91,18 @@ end
|
|
83
91
|
# Magic link information about the user
|
84
92
|
field :magic_link
|
85
93
|
|
94
|
+
# Information allowing Lockstep to offer direct support to the user
|
95
|
+
field :support_access
|
96
|
+
|
97
|
+
# True if the user is being impersonated by the Lockstep support team.
|
98
|
+
# @type: boolean
|
99
|
+
field :is_impersonated
|
100
|
+
|
86
101
|
# Statuses for the dependencies of this api.
|
87
102
|
# OK if the dependency is working.
|
88
103
|
# @type: object
|
89
104
|
field :dependencies
|
90
105
|
|
91
|
-
# Base Currency of the group
|
92
|
-
# @type: string
|
93
|
-
field :base_currency_code
|
94
|
-
|
95
106
|
|
96
107
|
has_many :user_groups, {:class_name=>"Schema::UserGroup", :included=>true}
|
97
108
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class Schema::SupportAccess < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The code required to assist the user.
|
9
|
+
# @type: string
|
10
|
+
field :code
|
11
|
+
|
12
|
+
# The UTC date and time when the support access will expire.
|
13
|
+
# @type: string
|
14
|
+
# @format: date-time
|
15
|
+
field :expires_at, Types::Params::DateTime
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Schema::SupportAccessRequest < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The UTC date and time when support access should expire.
|
9
|
+
# @type: string
|
10
|
+
# @format: date-time
|
11
|
+
field :expires_at, Types::Params::DateTime
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
end
|
@@ -36,18 +36,21 @@ end
|
|
36
36
|
# @type: string
|
37
37
|
field :operation_type_name
|
38
38
|
|
39
|
-
#
|
40
|
-
# @type: integer
|
41
|
-
# @format: int32
|
39
|
+
# Possible operation types for a SyncRequest
|
42
40
|
field :operation_type
|
43
41
|
|
44
42
|
# Message containing information about the sync request results
|
45
43
|
# @type: string
|
46
44
|
field :process_result_message
|
47
45
|
|
46
|
+
# The number of times this Sync Request has failed
|
47
|
+
# @type: integer
|
48
|
+
# @format: int32
|
49
|
+
field :failure_count
|
50
|
+
|
48
51
|
# A boolean indicating whether a sync from an ERP system should process all the data from the ERP
|
49
52
|
# as opposed to just the delta of changes since the previous sync run
|
50
|
-
# @type:
|
53
|
+
# @type: boolean
|
51
54
|
field :run_full_sync
|
52
55
|
|
53
56
|
# The AppEnrollmentId of the AppEnrollment object that executed this sync request
|
@@ -10,6 +10,10 @@ end
|
|
10
10
|
# @format: uuid
|
11
11
|
field :group_key
|
12
12
|
|
13
|
+
# The base currency code of the group.
|
14
|
+
# @type: string
|
15
|
+
field :base_currency_code
|
16
|
+
|
13
17
|
# An additional reference number that is sometimes used to identify a transaction.
|
14
18
|
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
15
19
|
# @type: string
|
@@ -65,6 +69,10 @@ end
|
|
65
69
|
# @format: int32
|
66
70
|
field :days_past_due
|
67
71
|
|
72
|
+
# The currency code of the transaction.
|
73
|
+
# @type: string
|
74
|
+
field :currency_code
|
75
|
+
|
68
76
|
# The total value of this transaction, inclusive or all taxes and line items.
|
69
77
|
# @type: number
|
70
78
|
# @format: double
|
@@ -75,6 +83,16 @@ end
|
|
75
83
|
# @format: double
|
76
84
|
field :outstanding_amount
|
77
85
|
|
86
|
+
# The total value of this transaction, inclusive or all taxes and line items in the group's base currency.
|
87
|
+
# @type: number
|
88
|
+
# @format: double
|
89
|
+
field :base_currency_transaction_amount
|
90
|
+
|
91
|
+
# The remaining balance of this transaction in the group's base currency.
|
92
|
+
# @type: number
|
93
|
+
# @format: double
|
94
|
+
field :base_currency_outstanding_amount
|
95
|
+
|
78
96
|
# The count of items associated to the transaction.
|
79
97
|
#
|
80
98
|
# Examples:
|
@@ -10,6 +10,10 @@ end
|
|
10
10
|
# @format: uuid
|
11
11
|
field :group_key
|
12
12
|
|
13
|
+
# The base currency code of the group.
|
14
|
+
# @type: string
|
15
|
+
field :base_currency_code
|
16
|
+
|
13
17
|
# An additional reference number that is sometimes used to identify a transaction detail.
|
14
18
|
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
15
19
|
# @type: string
|
@@ -58,6 +62,10 @@ end
|
|
58
62
|
# @format: date-time
|
59
63
|
field :transaction_invoice_date, Types::Params::DateTime
|
60
64
|
|
65
|
+
# The currency code of the transaction.
|
66
|
+
# @type: string
|
67
|
+
field :currency_code
|
68
|
+
|
61
69
|
# The total value of this transaction detail, inclusive or all taxes and line items.
|
62
70
|
# @type: number
|
63
71
|
# @format: double
|
@@ -68,6 +76,16 @@ end
|
|
68
76
|
# @format: double
|
69
77
|
field :outstanding_amount
|
70
78
|
|
79
|
+
# The total value of this transaction detail, inclusive or all taxes and line items in the group's base currency.
|
80
|
+
# @type: number
|
81
|
+
# @format: double
|
82
|
+
field :base_currency_transaction_amount
|
83
|
+
|
84
|
+
# The remaining balance of this transaction detail in the group's base currency.
|
85
|
+
# @type: number
|
86
|
+
# @format: double
|
87
|
+
field :base_currency_outstanding_amount
|
88
|
+
|
71
89
|
# Specific transactions have support for pdf retrieval from their respective erp. When this flag is true, an additional
|
72
90
|
# call to Invoices/{id}/pdf or Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
|
73
91
|
# @type: boolean
|