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.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/models/lockstep/sf_payment_request.rb +7 -0
  4. data/app/platform_api/schema/account_authorisation.rb +14 -0
  5. data/app/platform_api/schema/accounting_profile.rb +6 -11
  6. data/app/platform_api/schema/accounting_profile_contact.rb +4 -0
  7. data/app/platform_api/schema/accounting_profile_contact_result.rb +166 -0
  8. data/app/platform_api/schema/accounting_profile_contact_result_fetch_result.rb +26 -0
  9. data/app/platform_api/schema/accounting_profile_request.rb +108 -0
  10. data/app/platform_api/schema/address.rb +38 -0
  11. data/app/platform_api/schema/amount.rb +20 -0
  12. data/app/platform_api/schema/ap_header_info.rb +4 -0
  13. data/app/platform_api/schema/app_enrollment.rb +4 -0
  14. data/app/platform_api/schema/app_enrollment_reconnect_info.rb +5 -1
  15. data/app/platform_api/schema/application.rb +0 -11
  16. data/app/platform_api/schema/ar_header_info.rb +4 -0
  17. data/app/platform_api/schema/at_risk_invoice_summary.rb +18 -0
  18. data/app/platform_api/schema/attachment.rb +0 -18
  19. data/app/platform_api/schema/attachment_link.rb +59 -0
  20. data/app/platform_api/schema/attachment_link_fetch_result.rb +26 -0
  21. data/app/platform_api/schema/base_currency_sync.rb +16 -0
  22. data/app/platform_api/schema/batch_sync.rb +10 -0
  23. data/app/platform_api/schema/company.rb +35 -0
  24. data/app/platform_api/schema/company_details.rb +6 -2
  25. data/app/platform_api/schema/company_details_payment.rb +8 -0
  26. data/app/platform_api/schema/company_sync.rb +5 -1
  27. data/app/platform_api/schema/contact_sync.rb +3 -0
  28. data/app/platform_api/schema/credit_memo_applied_sync.rb +3 -0
  29. data/app/platform_api/schema/credit_memo_invoice.rb +23 -0
  30. data/app/platform_api/schema/creditor_account.rb +32 -0
  31. data/app/platform_api/schema/custom_field_sync.rb +3 -0
  32. data/app/platform_api/schema/debtor_account.rb +33 -0
  33. data/app/platform_api/schema/debtor_agent_account.rb +26 -0
  34. data/app/platform_api/schema/developer_account_submit.rb +0 -4
  35. data/app/platform_api/schema/dpo_summary.rb +5 -1
  36. data/app/platform_api/schema/dpo_summary_group_total.rb +5 -1
  37. data/app/platform_api/schema/financial_account_sync.rb +3 -0
  38. data/app/platform_api/schema/group_account.rb +4 -0
  39. data/app/platform_api/schema/instructed_amount.rb +19 -0
  40. data/app/platform_api/schema/invoice.rb +41 -41
  41. data/app/platform_api/schema/invoice_line_sync.rb +3 -0
  42. data/app/platform_api/schema/invoice_payment_detail.rb +23 -0
  43. data/app/platform_api/schema/invoice_summary.rb +24 -24
  44. data/app/platform_api/schema/invoice_sync.rb +27 -4
  45. data/app/platform_api/schema/magic_link.rb +5 -5
  46. data/app/platform_api/schema/magic_link_status.rb +10 -0
  47. data/app/platform_api/schema/metadata.rb +14 -0
  48. data/app/platform_api/schema/payables_coming_due.rb +18 -14
  49. data/app/platform_api/schema/payables_coming_due_header.rb +5 -1
  50. data/app/platform_api/schema/payables_coming_due_widget.rb +5 -1
  51. data/app/platform_api/schema/payables_summary_report.rb +6 -2
  52. data/app/platform_api/schema/payment.rb +41 -37
  53. data/app/platform_api/schema/payment_applied_sync.rb +3 -0
  54. data/app/platform_api/schema/payment_detail.rb +18 -0
  55. data/app/platform_api/schema/payment_detail_header.rb +6 -2
  56. data/app/platform_api/schema/payment_instrument.rb +37 -0
  57. data/app/platform_api/schema/payment_response.rb +118 -0
  58. data/app/platform_api/schema/payment_summary.rb +23 -23
  59. data/app/platform_api/schema/payment_sync.rb +15 -2
  60. data/app/platform_api/schema/remittance_information.rb +18 -0
  61. data/app/platform_api/schema/reporting_amount.rb +30 -0
  62. data/app/platform_api/schema/risk_information.rb +22 -0
  63. data/app/platform_api/schema/risk_rate.rb +6 -2
  64. data/app/platform_api/schema/settlement_discount.rb +25 -0
  65. data/app/platform_api/schema/settlement_discounts_info.rb +21 -0
  66. data/app/platform_api/schema/sf_account_response.rb +66 -0
  67. data/app/platform_api/schema/sf_company_request.rb +38 -0
  68. data/app/platform_api/schema/sf_company_response.rb +51 -0
  69. data/app/platform_api/schema/sf_customer_request.rb +52 -0
  70. data/app/platform_api/schema/sf_customer_response.rb +84 -0
  71. data/app/platform_api/schema/sf_enroll_request.rb +16 -0
  72. data/app/platform_api/schema/sf_enroll_response.rb +16 -0
  73. data/app/platform_api/schema/sf_organisation_request.rb +38 -0
  74. data/app/platform_api/schema/sf_organisation_response.rb +44 -0
  75. data/app/platform_api/schema/sf_payment_query_response.rb +31 -0
  76. data/app/platform_api/schema/sf_payment_request.rb +67 -0
  77. data/app/platform_api/schema/sf_payment_response.rb +132 -0
  78. data/app/platform_api/schema/sf_servicer_response.rb +58 -0
  79. data/app/platform_api/schema/sf_servicers_auth_request.rb +32 -0
  80. data/app/platform_api/schema/sf_servicers_auth_response.rb +14 -0
  81. data/app/platform_api/schema/sf_submit_payment_info.rb +55 -0
  82. data/app/platform_api/schema/status.rb +15 -4
  83. data/app/platform_api/schema/support_access.rb +19 -0
  84. data/app/platform_api/schema/support_access_request.rb +15 -0
  85. data/app/platform_api/schema/sync_request.rb +7 -4
  86. data/app/platform_api/schema/transaction.rb +18 -0
  87. data/app/platform_api/schema/transaction_detail.rb +18 -0
  88. data/app/platform_api/schema/transcription_request_submit.rb +6 -1
  89. data/app/platform_api/schema/transcription_validation_request_item_fetch_result.rb +26 -0
  90. data/app/platform_api/schema/webhook.rb +1 -2
  91. data/app/platform_api/swagger.json +12909 -7941
  92. data/lib/lockstep_rails/version.rb +1 -1
  93. metadata +43 -2
@@ -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
@@ -23,7 +23,7 @@ end
23
23
  # @format: uuid
24
24
  field :invoice_id
25
25
 
26
- # A reference code that is used to identify this invoice.
26
+ # A reference code that is used to identify this invoice.
27
27
  # The meaning of this field is specific to the ERP or accounting system used by the user.
28
28
  # @type: string
29
29
  field :invoice_number
@@ -33,7 +33,7 @@ end
33
33
  # @format: date
34
34
  field :invoice_date
35
35
 
36
- # The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
36
+ # The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
37
37
  # services.
38
38
  # @type: string
39
39
  # @format: date
@@ -52,6 +52,10 @@ end
52
52
  # @format: date
53
53
  field :payment_due_date
54
54
 
55
+ # The currency code for the invoice.
56
+ # @type: string
57
+ field :currency_code
58
+
55
59
  # The total amount of the Invoice.
56
60
  # @type: number
57
61
  # @format: double
@@ -62,6 +66,20 @@ end
62
66
  # @format: double
63
67
  field :outstanding_balance
64
68
 
69
+ # The group's base currency code.
70
+ # @type: string
71
+ field :base_currency_code
72
+
73
+ # The invoice amount in the group's base currency
74
+ # @type: number
75
+ # @format: double
76
+ field :base_currency_invoice_amount
77
+
78
+ # The outstanding balance amount in the group's base currency
79
+ # @type: number
80
+ # @format: double
81
+ field :base_currency_outstanding_balance
82
+
65
83
  # A code identifying the type of this Invoice.
66
84
  # @type: string
67
85
  field :invoice_type_code
@@ -81,7 +99,7 @@ end
81
99
  # @format: int32
82
100
  field :payment_count
83
101
 
84
- # Specific invoices have support for pdf retrieval from their respective erp. When this flag is true, an additional
102
+ # Specific invoices have support for pdf retrieval from their respective erp. When this flag is true, an additional
85
103
  # call to Invoices/{id}/pdf can be made to retrieve a pdf directly from the erp.
86
104
  # @type: boolean
87
105
  field :supports_erp_pdf_retrieval
@@ -94,24 +112,6 @@ end
94
112
  # @type: array
95
113
  field :payment_ids
96
114
 
97
- # The group's currency code.
98
- # @type: string
99
- field :currency_code
100
-
101
- # The group's base currency code.
102
- # @type: string
103
- field :base_currency_code
104
-
105
- # The invoice amount in the group's base currency.
106
- # @type: number
107
- # @format: double
108
- field :base_currency_invoice_amount
109
-
110
- # The outstanding balance amount in the group's base currency.
111
- # @type: number
112
- # @format: double
113
- field :base_currency_outstanding_balance
114
-
115
115
  # The modified date of the invoice.
116
116
  # @type: string
117
117
  # @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 Invoice record. For this field, you should use whatever the invoice'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.
@@ -89,22 +92,22 @@ end
89
92
  # @type: string
90
93
  field :currency_code
91
94
 
92
- # The total value of this invoice, inclusive of all taxes and line items.
95
+ # The total value of this invoice, inclusive of all taxes and line items in the invoice currency.
93
96
  # @type: number
94
97
  # @format: double
95
98
  field :total_amount
96
99
 
97
- # The total sales (or transactional) tax calculated for this invoice.
100
+ # The total sales (or transactional) tax calculated for this invoice in the invoice currency.
98
101
  # @type: number
99
102
  # @format: double
100
103
  field :sales_tax_amount
101
104
 
102
- # The total discounts given by the seller to the buyer on this invoice.
105
+ # The total discounts given by the seller to the buyer on this invoice in the invoice currency.
103
106
  # @type: number
104
107
  # @format: double
105
108
  field :discount_amount
106
109
 
107
- # The remaining balance value of this invoice.
110
+ # The remaining balance value of this invoice in the invoice currency.
108
111
  # @type: number
109
112
  # @format: double
110
113
  field :outstanding_balance_amount
@@ -285,6 +288,26 @@ end
285
288
  # @format: double
286
289
  field :currency_rate
287
290
 
291
+ # The total value of this invoice, inclusive of all taxes and line items in the erp's base currency.
292
+ # @type: number
293
+ # @format: double
294
+ field :base_currency_total_amount
295
+
296
+ # The total sales (or transactional) tax calculated for this invoice in the erp's base currency.
297
+ # @type: number
298
+ # @format: double
299
+ field :base_currency_sales_tax_amount
300
+
301
+ # The total discounts given by the seller to the buyer on this invoice in the erp's base currency.
302
+ # @type: number
303
+ # @format: double
304
+ field :base_currency_discount_amount
305
+
306
+ # The remaining balance value of this invoice in the erp's base currency.
307
+ # @type: number
308
+ # @format: double
309
+ field :base_currency_outstanding_balance_amount
310
+
288
311
 
289
312
 
290
313
  end
@@ -5,13 +5,13 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The unique ID of this record, automatically assigned by Lockstep when this record is
8
+ # The unique ID of this record, automatically assigned by Lockstep when this record is
9
9
  # added to the Lockstep platform.
10
10
  # @type: string
11
11
  # @format: uuid
12
12
  field :magic_link_id
13
13
 
14
- # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
14
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
15
15
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
16
16
  # @type: string
17
17
  # @format: uuid
@@ -72,18 +72,18 @@ end
72
72
  # @format: uuid
73
73
  field :accounting_profile_id
74
74
 
75
- # The created magic link URL. This will only be returned upon creation of the magic link.
75
+ # The created magic link URL. This will only be returned upon creation of the magic link.
76
76
  # All other times, this value will be `null`.
77
77
  # @type: string
78
78
  field :magic_link_url
79
79
 
80
- # The user associated with this magic link.
80
+ # The user associated with this magic link.
81
81
  # To retrieve this item, specify `User` in the "Include" parameter for your query.
82
82
  field :user
83
83
 
84
84
  belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
85
85
  belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
86
- belongs_to :company, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"company_id"}
86
+ belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
87
87
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
88
88
 
89
89
 
@@ -10,6 +10,11 @@ end
10
10
  # @format: uuid
11
11
  field :magic_link_id
12
12
 
13
+ # The id of the application for the Magic Link
14
+ # @type: string
15
+ # @format: uuid
16
+ field :application_id
17
+
13
18
  # The id of the target company for the Magic Link
14
19
  # @type: string
15
20
  # @format: uuid
@@ -20,6 +25,11 @@ end
20
25
  # @format: uuid
21
26
  field :accounting_profile_id
22
27
 
28
+ # The UTC date and time when this magic link expires.
29
+ # @type: string
30
+ # @format: date-time
31
+ field :expires, Types::Params::DateTime
32
+
23
33
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
24
34
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
25
35
 
@@ -0,0 +1,14 @@
1
+ class Schema::Metadata < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Markup for emails that will cause an Actionable Message Card to be presented in Outlook clients for this payment.
9
+ # @type: string
10
+ field :outlook
11
+
12
+
13
+
14
+ end
@@ -5,6 +5,12 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
+ # This model represents all the payables that are
9
+ # either already due or due within this date.
10
+ # @type: string
11
+ # @format: date-time
12
+ field :due_date, Types::Params::DateTime
13
+
8
14
  # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
9
15
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
16
  #
@@ -13,19 +19,19 @@ end
13
19
  # @format: uuid
14
20
  field :group_key
15
21
 
16
- # Number of bills due for this time period
17
- # @type: integer
18
- # @format: int32
19
- field :number_of_bills_due
22
+ # Name for this company
23
+ # @type: string
24
+ field :vendor_name
20
25
 
21
26
  # The unique Lockstep Id for the Vendor
22
27
  # @type: string
23
28
  # @format: uuid
24
29
  field :vendor_id
25
30
 
26
- # Name for this company
27
- # @type: string
28
- field :vendor_name
31
+ # Number of bills due for this time period
32
+ # @type: integer
33
+ # @format: int32
34
+ field :number_of_bills_due
29
35
 
30
36
  # Primary Contact for this company
31
37
  # @type: string
@@ -36,17 +42,15 @@ end
36
42
  # @format: double
37
43
  field :percentage_of_total
38
44
 
39
- # Total amount due for this time period
45
+ # The base currency code of the group
46
+ # @type: string
47
+ field :base_currency_code
48
+
49
+ # Total amount due for this time period at the group's base currency
40
50
  # @type: number
41
51
  # @format: double
42
52
  field :total_amount_due
43
53
 
44
- # This model represents all the payables that are
45
- # either already due or due within this date.
46
- # @type: string
47
- # @format: date-time
48
- field :due_date, Types::Params::DateTime
49
-
50
54
 
51
55
 
52
56
  end
@@ -28,7 +28,11 @@ end
28
28
  # @format: double
29
29
  field :percentage_of_total
30
30
 
31
- # Total amount due for this time period
31
+ # The group's base currency code.
32
+ # @type: string
33
+ field :base_currency_code
34
+
35
+ # Total amount due for this time period in the group's base currency.
32
36
  # @type: number
33
37
  # @format: double
34
38
  field :total_amount_due
@@ -19,7 +19,11 @@ end
19
19
  # @format: date-time
20
20
  field :date, Types::Params::DateTime
21
21
 
22
- # Total amount due for this time period
22
+ # The group's base currency code.
23
+ # @type: string
24
+ field :base_currency_code
25
+
26
+ # Total amount due for this time period at the group's base currency.
23
27
  # @type: number
24
28
  # @format: double
25
29
  field :amount_due
@@ -18,7 +18,11 @@ end
18
18
  # @format: int32
19
19
  field :timeframe
20
20
 
21
- # Amount of payments made based in the timeframe
21
+ # The base currency code of the group.
22
+ # @type: string
23
+ field :base_currency_code
24
+
25
+ # Amount of payments made based in the timeframe in the group's base currency.
22
26
  # @type: number
23
27
  # @format: double
24
28
  field :total_payments_amount
@@ -28,7 +32,7 @@ end
28
32
  # @format: int32
29
33
  field :total_payments_count
30
34
 
31
- # Amount of bills received based in the timeframe
35
+ # Amount of bills received based in the timeframe in the group's base currency.
32
36
  # @type: number
33
37
  # @format: double
34
38
  field :total_amount_billed
@@ -5,17 +5,17 @@ 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
14
14
  field :group_key
15
15
 
16
- # The unique ID of this record, automatically assigned by Lockstep when this record is
17
- # added to the Lockstep platform.
18
- #
16
+ # The unique ID of this record, automatically assigned by Lockstep when this record is
17
+ # added to the Lockstep platform.
18
+ #
19
19
  # For the ID of this record in its originating financial system, see `ErpKey`.
20
20
  # @type: string
21
21
  # @format: uuid
@@ -26,36 +26,36 @@ end
26
26
  # @format: uuid
27
27
  field :company_id
28
28
 
29
- # The unique ID of this record as it was known in its originating financial system.
30
- #
31
- # If this company record was imported from a financial system, it will have the value `ErpKey`
32
- # set to the original primary key number of the record as it was known in the originating financial
33
- # system. If this record was not imported, this value will be `null`.
34
- #
29
+ # The unique ID of this record as it was known in its originating financial system.
30
+ #
31
+ # If this company record was imported from a financial system, it will have the value `ErpKey`
32
+ # set to the original primary key number of the record as it was known in the originating financial
33
+ # system. If this record was not imported, this value will be `null`.
34
+ #
35
35
  # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
36
36
  # @type: string
37
37
  field :erp_key
38
38
 
39
- # The type of payment, AR Payment or AP Payment.
40
- #
41
- # Recognized PaymentType values are:
42
- # * `AR Payment` - A payment made by a Customer to the Company
39
+ # The type of payment, AR Payment or AP Payment.
40
+ #
41
+ # Recognized PaymentType values are:
42
+ # * `AR Payment` - A payment made by a Customer to the Company
43
43
  # * `AP Payment` - A payment made by the Company to a Vendor
44
44
  # @type: string
45
45
  field :payment_type
46
46
 
47
- # Cash, check, credit card, wire transfer.
48
- #
49
- # Recognized TenderType values are:
50
- # * `Cash` - A cash payment or other direct transfer.
51
- # * `Check` - A check payment.
52
- # * `Credit Card` - A payment made via a credit card.
53
- # * `Wire Transfer` - A payment made via wire transfer from another financial institution.
47
+ # Cash, check, credit card, wire transfer.
48
+ #
49
+ # Recognized TenderType values are:
50
+ # * `Cash` - A cash payment or other direct transfer.
51
+ # * `Check` - A check payment.
52
+ # * `Credit Card` - A payment made via a credit card.
53
+ # * `Wire Transfer` - A payment made via wire transfer from another financial institution.
54
54
  # * `Other` - A payment made via another method not listed above.
55
55
  # @type: string
56
56
  field :tender_type
57
57
 
58
- # True if this payment includes some unassigned amount that has not yet been applied to an invoice. If this
58
+ # True if this payment includes some unassigned amount that has not yet been applied to an invoice. If this
59
59
  # value is true, the field `UnappliedAmount` will be nonzero.
60
60
  # @type: boolean
61
61
  field :is_open
@@ -64,33 +64,33 @@ end
64
64
  # @type: string
65
65
  field :memo_text
66
66
 
67
- # The date when this payment was received. This typically is the date when an accounting employee recorded
68
- # that they received notification that the payment had occurred, whether they were notified by email, postal
67
+ # The date when this payment was received. This typically is the date when an accounting employee recorded
68
+ # that they received notification that the payment had occurred, whether they were notified by email, postal
69
69
  # mail, or financial transaction notification.
70
70
  # @type: string
71
71
  # @format: date
72
72
  field :payment_date
73
73
 
74
- # The date when a payment was posted to a ledger. This date is often determined by a company's accounting
75
- # practices and may be different than the date when the payment was received. This date may be affected by
74
+ # The date when a payment was posted to a ledger. This date is often determined by a company's accounting
75
+ # practices and may be different than the date when the payment was received. This date may be affected by
76
76
  # issues such as temporary holds on funds transferred, bank holidays, or other actions.
77
77
  # @type: string
78
78
  # @format: date
79
79
  field :post_date
80
80
 
81
- # Total amount of this payment.
81
+ # Total amount of this payment in it's received currency.
82
82
  # @type: number
83
83
  # @format: double
84
84
  field :payment_amount
85
85
 
86
- # Unapplied balance of this payment. If this amount is nonzero, the field `IsOpen` will be true.
86
+ # Unapplied balance of this payment in it's received currency. If this amount is nonzero, the field `IsOpen` will be true.
87
87
  # @type: number
88
88
  # @format: double
89
89
  field :unapplied_amount
90
90
 
91
- # The ISO 4217 currency code for this payment.
92
- #
93
- # For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/definitions/currencies data set
91
+ # The ISO 4217 currency code for this payment.
92
+ #
93
+ # For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies).
94
94
  # @type: string
95
95
  field :currency_code
96
96
 
@@ -118,9 +118,9 @@ end
118
118
  # @format: uuid
119
119
  field :modified_user_id
120
120
 
121
- # The AppEnrollmentId of the application that imported this record. For accounts
122
- # with more than one financial system connected, this field identifies the originating
123
- # financial system that produced this record. This value is null if this record
121
+ # The AppEnrollmentId of the application that imported this record. For accounts
122
+ # with more than one financial system connected, this field identifies the originating
123
+ # financial system that produced this record. This value is null if this record
124
124
  # was not loaded from an external ERP or financial system.
125
125
  # @type: string
126
126
  # @format: uuid
@@ -144,11 +144,15 @@ end
144
144
  # @format: double
145
145
  field :base_currency_payment_amount
146
146
 
147
- # Unapplied balance of this payment in the group's base currency. If this amount is nonzero, the field IsOpen will be true.
147
+ # Unapplied balance of this payment in the group's base currency. If this amount is nonzero, the field `IsOpen` will be true.
148
148
  # @type: number
149
149
  # @format: double
150
150
  field :base_currency_unapplied_amount
151
151
 
152
+ # The status of this payment within Service Fabric.
153
+ # "UNAUTHORISED" "PENDING" "PAID" "PAID_OFFLINE" "FAILED" "CANCELLED" "REJECTED" "REFUNDED" "PARTIALLY" "PARTIALLY_REFUNDED"
154
+ # @type: string
155
+ field :service_fabric_status
152
156
 
153
157
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
154
158
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
@@ -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 Application record. For this field, you should use whatever this
9
12
  # transaction's unique identifying number is in the originating system. Search for a unique, non-changing
10
13
  # number within the originating financial system for this record.
@@ -43,6 +43,10 @@ end
43
43
  # @type: string
44
44
  field :email
45
45
 
46
+ # The currency code of the payment.
47
+ # @type: string
48
+ field :currency_code
49
+
46
50
  # Total amount of this Payment.
47
51
  # @type: number
48
52
  # @format: double
@@ -53,6 +57,20 @@ end
53
57
  # @format: double
54
58
  field :unapplied_amount
55
59
 
60
+ # The base currency code of the group.
61
+ # @type: string
62
+ field :base_currency_code
63
+
64
+ # The payment amount in the group's base currency.
65
+ # @type: number
66
+ # @format: double
67
+ field :base_currency_payment_amount
68
+
69
+ # The payment amount in the group's base currency.
70
+ # @type: number
71
+ # @format: double
72
+ field :base_currency_unapplied_amount
73
+
56
74
  # The type of payment, AR Payment or AP Payment.
57
75
  #
58
76
  # Recognized PaymentType values are:
@@ -13,17 +13,21 @@ 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 total number of Customers.
17
21
  # @type: integer
18
22
  # @format: int32
19
23
  field :customer_count
20
24
 
21
- # The total amount collected.
25
+ # The total amount collected in the group's base currency.
22
26
  # @type: number
23
27
  # @format: double
24
28
  field :amount_collected
25
29
 
26
- # The total unapplied amount.
30
+ # The total unapplied amount in the group's base currency.
27
31
  # @type: number
28
32
  # @format: double
29
33
  field :unapplied_amount
@@ -0,0 +1,37 @@
1
+ class Schema::PaymentInstrument < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The WPB unique identifier for this instrument.
9
+ # @type: string
10
+ field :instrument_id
11
+
12
+ # The servicer account that this instrument belongs to.
13
+ # @type: string
14
+ field :servicer_account_id
15
+
16
+ # Enum: "CHARGEABLE" "PENDING" "CANCELLED" "EXPIRED" "FAILED"
17
+ # The status of this payment instrument. This should be used in conjunction with
18
+ # the availableForCharges property to establish the UI state of the instrument.
19
+ # Some instruments (for example, GoCardless mandates) may be chargeable in a PENDING state, while others may not.
20
+ field :instrument_status
21
+
22
+ # Whether the payment instrument can be used for billing customers.
23
+ # @type: boolean
24
+ field :available_for_charges
25
+
26
+ # Value: "DIRECT_DEBIT_MANDATE"
27
+ # The type of this instrument. DIRECT_DEBIT_MANDATE is the only type currently defined.
28
+ field :instrument_type
29
+
30
+ # An optional set of ISO 4217 currency codes that the instrument can accept.
31
+ # A null or empty value means there is no restriction.
32
+ # @type: array
33
+ field :allowed_currencies
34
+
35
+
36
+
37
+ end