lockstep_rails 0.3.52 → 0.3.53
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/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,118 @@
|
|
1
|
+
class Schema::PaymentResponse < 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
|
+
|
117
|
+
|
118
|
+
end
|
@@ -5,9 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
-
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
-
#
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
@@ -39,6 +39,10 @@ end
|
|
39
39
|
# @format: date
|
40
40
|
field :payment_date
|
41
41
|
|
42
|
+
# The currency code of the payment.
|
43
|
+
# @type: string
|
44
|
+
field :currency_code
|
45
|
+
|
42
46
|
# Total amount of this payment.
|
43
47
|
# @type: number
|
44
48
|
# @format: double
|
@@ -49,7 +53,21 @@ end
|
|
49
53
|
# @format: double
|
50
54
|
field :unapplied_amount
|
51
55
|
|
52
|
-
#
|
56
|
+
# The base currency code of the group.
|
57
|
+
# @type: string
|
58
|
+
field :base_currency_code
|
59
|
+
|
60
|
+
# The payment amount in the group's base currency.
|
61
|
+
# @type: number
|
62
|
+
# @format: double
|
63
|
+
field :base_currency_payment_amount
|
64
|
+
|
65
|
+
# The unapplied amount in the group's base currency.
|
66
|
+
# @type: number
|
67
|
+
# @format: double
|
68
|
+
field :base_currency_unapplied_amount
|
69
|
+
|
70
|
+
# True if this payment includes some unassigned amount that has not yet been applied to an invoice. If this
|
53
71
|
# value is true, the field `UnappliedAmount` will be nonzero.
|
54
72
|
# @type: boolean
|
55
73
|
field :is_open
|
@@ -81,7 +99,7 @@ end
|
|
81
99
|
# @type: string
|
82
100
|
field :payment_company_name
|
83
101
|
|
84
|
-
# Specific payments have support for pdf retrieval from their respective erp. When this flag is true, an additional
|
102
|
+
# Specific payments have support for pdf retrieval from their respective erp. When this flag is true, an additional
|
85
103
|
# call to Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
|
86
104
|
# @type: boolean
|
87
105
|
field :supports_erp_pdf_retrieval
|
@@ -102,24 +120,6 @@ end
|
|
102
120
|
# @type: array
|
103
121
|
field :company_names
|
104
122
|
|
105
|
-
# The group's currency code.
|
106
|
-
# @type: string
|
107
|
-
field :currency_code
|
108
|
-
|
109
|
-
# The base currency code of the group.
|
110
|
-
# @type: string
|
111
|
-
field :base_currency_code
|
112
|
-
|
113
|
-
# The payment amount in the group's base currency.
|
114
|
-
# @type: number
|
115
|
-
# @format: double
|
116
|
-
field :base_currency_payment_amount
|
117
|
-
|
118
|
-
# The unapplied amount in the group's base currency.
|
119
|
-
# @type: number
|
120
|
-
# @format: double
|
121
|
-
field :base_currency_unapplied_amount
|
122
|
-
|
123
123
|
# The modified date of the payment
|
124
124
|
# @type: string
|
125
125
|
# @format: date-time
|
@@ -5,6 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# Indicates what action to take when an existing object has been found during the sync process.
|
9
|
+
field :on_match_action
|
10
|
+
|
8
11
|
# This is the primary key of the Payment record. For this field, you should use whatever the payment's unique
|
9
12
|
# identifying number is in the originating system. Search for a unique, non-changing number within the
|
10
13
|
# originating financial system for this record.
|
@@ -64,12 +67,12 @@ end
|
|
64
67
|
# @format: date-time
|
65
68
|
field :post_date, Types::Params::DateTime
|
66
69
|
|
67
|
-
# Total amount of this payment.
|
70
|
+
# Total amount of this payment in the payment's currency.
|
68
71
|
# @type: number
|
69
72
|
# @format: double
|
70
73
|
field :payment_amount
|
71
74
|
|
72
|
-
# Unapplied balance of this payment. If this amount is nonzero, the field `IsOpen` will be true.
|
75
|
+
# Unapplied balance of this payment in the payment's currency. If this amount is nonzero, the field `IsOpen` will be true.
|
73
76
|
# @type: number
|
74
77
|
# @format: double
|
75
78
|
field :unapplied_amount
|
@@ -113,6 +116,16 @@ end
|
|
113
116
|
# @format: double
|
114
117
|
field :currency_rate
|
115
118
|
|
119
|
+
# Total amount of this payment in the erp's base currency.
|
120
|
+
# @type: number
|
121
|
+
# @format: double
|
122
|
+
field :base_currency_payment_amount
|
123
|
+
|
124
|
+
# Unapplied balance of this payment in the erp's base currency. If this amount is nonzero, the field `IsOpen` will be true.
|
125
|
+
# @type: number
|
126
|
+
# @format: double
|
127
|
+
field :base_currency_unapplied_amount
|
128
|
+
|
116
129
|
|
117
130
|
|
118
131
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class Schema::RemittanceInformation < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Reference, assigned by the creditor, to unambiguously refer to the payment transaction. For example, Invoice ID.
|
9
|
+
# @type: string
|
10
|
+
field :reference
|
11
|
+
|
12
|
+
# Unstructured text, describes the invoice.
|
13
|
+
# @type: string
|
14
|
+
field :description
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class Schema::ReportingAmount < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Amount of the payment.
|
9
|
+
field :amount
|
10
|
+
|
11
|
+
# The currency ISO-4217 code.
|
12
|
+
# @type: string
|
13
|
+
field :currency
|
14
|
+
|
15
|
+
# Rate used to convert instructedAmount to reportingAmount.
|
16
|
+
# @type: number
|
17
|
+
# @format: double
|
18
|
+
field :conversion_rate
|
19
|
+
|
20
|
+
# Reporting Date.
|
21
|
+
# @type: string
|
22
|
+
field :date_time
|
23
|
+
|
24
|
+
# Date the funds will be made available.
|
25
|
+
# @type: string
|
26
|
+
field :funds_available_date_time
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class Schema::RiskInformation < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Enum: "person-to-person" "e-commerce-goods" "e-commerce-services" "bill-payment" "other"
|
9
|
+
# Payment Context Code.
|
10
|
+
# @type: string
|
11
|
+
field :payment_context_code
|
12
|
+
|
13
|
+
# Category code confirming to ISO 18245, related to the type of services or goods the merchant provides for the transaction.
|
14
|
+
# @type: string
|
15
|
+
field :merchant_category_code
|
16
|
+
|
17
|
+
# Address of a Company, Provider or Customer
|
18
|
+
field :delivery_address
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
end
|
@@ -13,6 +13,10 @@ end
|
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
+
# The base currency code of the group.
|
17
|
+
# @type: string
|
18
|
+
field :base_currency_code
|
19
|
+
|
16
20
|
# The month the risk rate was calculated for
|
17
21
|
# @type: string
|
18
22
|
# @format: date-time
|
@@ -32,7 +36,7 @@ end
|
|
32
36
|
# @format: int32
|
33
37
|
field :total_invoice_count
|
34
38
|
|
35
|
-
# The sum of the total amount for invoices in the calculation month
|
39
|
+
# The sum of the total amount for invoices in the calculation month in the group's base currency.
|
36
40
|
# @type: number
|
37
41
|
# @format: double
|
38
42
|
field :total_invoice_amount
|
@@ -42,7 +46,7 @@ end
|
|
42
46
|
# @format: int32
|
43
47
|
field :at_risk_count
|
44
48
|
|
45
|
-
# The sum of the outstanding balance of open invoices over 90 days from the calculation month
|
49
|
+
# The sum of the outstanding balance of open invoices over 90 days from the calculation month in the group's base currency.
|
46
50
|
# @type: number
|
47
51
|
# @format: double
|
48
52
|
field :at_risk_amount
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class Schema::SettlementDiscount < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The absolute amount to be discounted if this discount is applied. Not required if discountPercentage is provided.
|
9
|
+
# @type: number
|
10
|
+
# @format: double
|
11
|
+
field :discount_amount
|
12
|
+
|
13
|
+
# The relative amount to be discounted if this discount is applied. Not required if discountAmount is provided.
|
14
|
+
# @type: number
|
15
|
+
# @format: double
|
16
|
+
field :discount_percentage
|
17
|
+
|
18
|
+
# The date until the discount is valid.
|
19
|
+
# @type: string
|
20
|
+
# @format: date-time
|
21
|
+
field :until_date_time, Types::Params::DateTime
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class Schema::SettlementDiscountsInfo < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Value: "beforeTax"
|
9
|
+
# How taxes are calculated.
|
10
|
+
# @type: string
|
11
|
+
field :discount_scheme
|
12
|
+
|
13
|
+
# Tax amount being paid in this payment.
|
14
|
+
# @type: number
|
15
|
+
# @format: double
|
16
|
+
field :tax_amount
|
17
|
+
|
18
|
+
|
19
|
+
has_many :settlement_discounts, {:class_name=>"Schema::SettlementDiscount", :included=>true}
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
class Schema::SfAccountResponse < 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 account.
|
9
|
+
# @type: string
|
10
|
+
field :account_id
|
11
|
+
|
12
|
+
# The unique identifier for company.
|
13
|
+
# @type: string
|
14
|
+
field :company_id
|
15
|
+
|
16
|
+
# The unique identifier for servicer.
|
17
|
+
# @type: string
|
18
|
+
field :servicer_id
|
19
|
+
|
20
|
+
# Servicer name for the given connected account.
|
21
|
+
# @type: string
|
22
|
+
field :servicer_name
|
23
|
+
|
24
|
+
# User name of the account (typically an email address).
|
25
|
+
# @type: string
|
26
|
+
field :account_username
|
27
|
+
|
28
|
+
# ISO 4217 currency code.
|
29
|
+
# @type: string
|
30
|
+
field :currency
|
31
|
+
|
32
|
+
# Nickname of the account assigned by the account owner.
|
33
|
+
# @type: string
|
34
|
+
field :nickname
|
35
|
+
|
36
|
+
# Enum: "PENDING" "ACTIVE" "CANCELLED" "AUTH_REQUIRED" "AWAITING_VERIFICATION"
|
37
|
+
# @type: string
|
38
|
+
field :status
|
39
|
+
|
40
|
+
# Enum: "SYNC_IN_PROGRESS" "SYNC_COMPLETE"
|
41
|
+
# If the account supports synchronisation, for example, it is a GoCardless account and supports importing mandates,
|
42
|
+
# then this field may be set to one of the two below.
|
43
|
+
# @type: string
|
44
|
+
field :sync_status
|
45
|
+
|
46
|
+
# Whether the connected account is enabled or not.
|
47
|
+
# @type: boolean
|
48
|
+
field :is_enabled
|
49
|
+
|
50
|
+
# API key for the given connected account.
|
51
|
+
# @type: string
|
52
|
+
field :publishable_key
|
53
|
+
|
54
|
+
# Items Enum: "card" "direct-debit"
|
55
|
+
# An array of payment types supported by the provider in the company's country.
|
56
|
+
# @type: array
|
57
|
+
field :capabilities
|
58
|
+
|
59
|
+
# Optional information that can be used to complete account activation at the servicer.
|
60
|
+
field :authorisation
|
61
|
+
|
62
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
63
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
64
|
+
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Schema::SfCompanyRequest < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Name for the company.
|
9
|
+
# @type: string
|
10
|
+
field :name
|
11
|
+
|
12
|
+
# Unique external ID of the company.
|
13
|
+
# @type: string
|
14
|
+
field :external_id
|
15
|
+
|
16
|
+
# Company tax number. The value you should use as a company tax number depends on your country.
|
17
|
+
# @type: string
|
18
|
+
field :tax_number
|
19
|
+
|
20
|
+
# Standard Industrial Classification (SIC) code for the company.
|
21
|
+
# @type: string
|
22
|
+
field :standard_industrial_code
|
23
|
+
|
24
|
+
# Contact telephone number of the company.
|
25
|
+
# @type: string
|
26
|
+
field :contact_tel_no
|
27
|
+
|
28
|
+
# Contact email of the company.
|
29
|
+
# @type: string
|
30
|
+
# @format: email
|
31
|
+
field :contact_email
|
32
|
+
|
33
|
+
# Postal address.
|
34
|
+
field :address
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
class Schema::SfCompanyResponse < 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 company.
|
9
|
+
# @type: string
|
10
|
+
field :company_id
|
11
|
+
|
12
|
+
# Unique ID of the organisation to which the company belongs.
|
13
|
+
# @type: string
|
14
|
+
field :organisation_id
|
15
|
+
|
16
|
+
# Name for the company.
|
17
|
+
# @type: string
|
18
|
+
field :name
|
19
|
+
|
20
|
+
# Access URL for the company logo image, if a logo image has been uploaded.
|
21
|
+
# @type: string
|
22
|
+
field :logo_url
|
23
|
+
|
24
|
+
# Postal address.
|
25
|
+
field :address
|
26
|
+
|
27
|
+
# Company tax number. The value you should use as a company tax number depends on your country.
|
28
|
+
# @type: string
|
29
|
+
field :tax_number
|
30
|
+
|
31
|
+
# Standard Industrial Classification (SIC) code for the company.
|
32
|
+
# @type: string
|
33
|
+
field :standard_industrial_code
|
34
|
+
|
35
|
+
# Unique external ID of the company.
|
36
|
+
# @type: string
|
37
|
+
field :external_id
|
38
|
+
|
39
|
+
# Contact telephone number of the company.
|
40
|
+
# @type: string
|
41
|
+
field :contact_tel_no
|
42
|
+
|
43
|
+
# Contact email of the company.
|
44
|
+
# @type: string
|
45
|
+
field :contact_email
|
46
|
+
|
47
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
48
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
49
|
+
|
50
|
+
|
51
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
class Schema::SfCustomerRequest < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The external identifier of this customer.
|
9
|
+
# @type: string
|
10
|
+
field :external_id
|
11
|
+
|
12
|
+
# Country (based on 3-char ISO/DI-3166 country code)
|
13
|
+
# @type: string
|
14
|
+
field :country
|
15
|
+
|
16
|
+
# Currency of the customer account as an ISO 4217 currency code.
|
17
|
+
# @type: string
|
18
|
+
field :currency
|
19
|
+
|
20
|
+
# The first name of the customer.
|
21
|
+
# @type: string
|
22
|
+
field :first_name
|
23
|
+
|
24
|
+
# The last name of the customer.
|
25
|
+
# @type: string
|
26
|
+
field :last_name
|
27
|
+
|
28
|
+
# The name of the company if this customer is a company.
|
29
|
+
# @type: string
|
30
|
+
field :company_name
|
31
|
+
|
32
|
+
# The email address of the customer. If an empty string, this will be mapped to null.
|
33
|
+
# @type: string
|
34
|
+
# @format: email
|
35
|
+
field :email_address
|
36
|
+
|
37
|
+
# The telephone number of the customer.
|
38
|
+
# @type: string
|
39
|
+
field :contact_tel_no
|
40
|
+
|
41
|
+
# The tax number for the customer; this may be a VAT number for a company,
|
42
|
+
# or some other form of ID number for an individual.
|
43
|
+
# @type: string
|
44
|
+
field :tax_number
|
45
|
+
|
46
|
+
# Address of a Company, Provider or Customer.
|
47
|
+
# All fields are optional; without address line 1, city or country some operations may not be supported.
|
48
|
+
field :address
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
class Schema::SfCustomerResponse < 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 customer.
|
9
|
+
# @type: string
|
10
|
+
field :customer_id
|
11
|
+
|
12
|
+
# The identifier of the company that this customer is a customer of.
|
13
|
+
# @type: string
|
14
|
+
field :company_id
|
15
|
+
|
16
|
+
# The external identifier of this customer.
|
17
|
+
# @type: string
|
18
|
+
field :external_id
|
19
|
+
|
20
|
+
# Enum: "ACTIVE" "DELETED" "NOT_ASSIGNED" "DELETED_MANUAL_MERGE"
|
21
|
+
# The status of the customer.
|
22
|
+
# @type: string
|
23
|
+
field :status
|
24
|
+
|
25
|
+
# Status if the customer is automatched with provider.
|
26
|
+
# @type: boolean
|
27
|
+
field :auto_matched
|
28
|
+
|
29
|
+
# Country (based on 3-char ISO/DI-3166 country code)
|
30
|
+
# @type: string
|
31
|
+
field :primary_country
|
32
|
+
|
33
|
+
# Currency of the customer account as an ISO 4217 currency code.
|
34
|
+
# @type: string
|
35
|
+
field :currency
|
36
|
+
|
37
|
+
# The first name of the customer.
|
38
|
+
# @type: string
|
39
|
+
field :first_name
|
40
|
+
|
41
|
+
# The last name of the customer.
|
42
|
+
# @type: string
|
43
|
+
field :last_name
|
44
|
+
|
45
|
+
# The name of the company if this customer is a company.
|
46
|
+
# @type: string
|
47
|
+
field :company_name
|
48
|
+
|
49
|
+
# The email address of the customer.
|
50
|
+
# @type: string
|
51
|
+
field :email_address
|
52
|
+
|
53
|
+
# The telephone number of the customer.
|
54
|
+
# @type: string
|
55
|
+
field :contact_tel_no
|
56
|
+
|
57
|
+
# The tax number for the customer. This may be a VAT number for a company,
|
58
|
+
# or some other form of ID number for an individual.
|
59
|
+
# @type: string
|
60
|
+
field :tax_number
|
61
|
+
|
62
|
+
# Date the customer record was created. ISO 8601 date format.
|
63
|
+
# @type: string
|
64
|
+
# @format: date-time
|
65
|
+
field :created_date_time, Types::Params::DateTime
|
66
|
+
|
67
|
+
# Date the customer was last updated. ISO 8601 date format.
|
68
|
+
# Customers may be updated by WPB or external servicers.
|
69
|
+
# @type: string
|
70
|
+
# @format: date-time
|
71
|
+
field :updated_date_time, Types::Params::DateTime
|
72
|
+
|
73
|
+
# Address of a Company, Provider or Customer. All fields are optional;
|
74
|
+
# without address line 1, city or country some operations may not be supported.
|
75
|
+
field :address
|
76
|
+
|
77
|
+
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
78
|
+
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
79
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
80
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
81
|
+
|
82
|
+
has_many :payment_instruments, {:class_name=>"Schema::PaymentInstrument", :included=>true}
|
83
|
+
|
84
|
+
end
|