lockstep_rails 0.3.36 → 0.3.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/concepts/lockstep/api_record.rb +4 -0
  4. data/app/concepts/lockstep/client.rb +16 -0
  5. data/app/concepts/lockstep/query.rb +7 -0
  6. data/app/models/lockstep/customer_summary.rb +5 -0
  7. data/app/models/lockstep/magic_link.rb +10 -0
  8. data/app/models/lockstep/vendor_summary.rb +5 -0
  9. data/app/platform_api/schema/ap_aging_header_info.rb +15 -12
  10. data/app/platform_api/schema/ap_header_info.rb +8 -8
  11. data/app/platform_api/schema/app_enrollment.rb +0 -3
  12. data/app/platform_api/schema/app_enrollment_reconnect_info.rb +30 -0
  13. data/app/platform_api/schema/application.rb +5 -0
  14. data/app/platform_api/schema/ar_aging_header_info.rb +16 -1
  15. data/app/platform_api/schema/ar_header_info.rb +40 -11
  16. data/app/platform_api/schema/at_risk_invoice_summary.rb +1 -1
  17. data/app/platform_api/schema/attachment.rb +34 -9
  18. data/app/platform_api/schema/batch_sync.rb +3 -0
  19. data/app/platform_api/schema/bulk_currency_conversion.rb +1 -1
  20. data/app/platform_api/schema/company.rb +17 -24
  21. data/app/platform_api/schema/company_details.rb +98 -0
  22. data/app/platform_api/schema/company_details_payment.rb +60 -0
  23. data/app/platform_api/schema/company_sync.rb +17 -2
  24. data/app/platform_api/schema/connector_info.rb +29 -0
  25. data/app/platform_api/schema/contact.rb +1 -1
  26. data/app/platform_api/schema/contact_sync.rb +7 -1
  27. data/app/platform_api/schema/credit_memo_applied.rb +6 -0
  28. data/app/platform_api/schema/credit_memo_invoice.rb +1 -1
  29. data/app/platform_api/schema/custom_field_sync.rb +4 -4
  30. data/app/platform_api/schema/custom_field_value.rb +12 -0
  31. data/app/platform_api/schema/customer_summary.rb +36 -1
  32. data/app/platform_api/schema/daily_payable_outstanding_report.rb +7 -4
  33. data/app/platform_api/schema/daily_sales_outstanding_report.rb +0 -5
  34. data/app/platform_api/schema/developer_account_submit.rb +8 -0
  35. data/app/platform_api/schema/dpo_summary.rb +46 -0
  36. data/app/platform_api/schema/dpo_summary_group_total.rb +38 -0
  37. data/app/platform_api/schema/feature_flags_request.rb +14 -0
  38. data/app/platform_api/schema/feature_flags_response.rb +14 -0
  39. data/app/platform_api/schema/financial_account.rb +1 -1
  40. data/app/platform_api/schema/financial_account_balance_history_sync.rb +56 -0
  41. data/app/platform_api/schema/financial_account_sync.rb +50 -0
  42. data/app/platform_api/schema/financial_report.rb +38 -0
  43. data/app/platform_api/schema/financial_report_cell.rb +14 -0
  44. data/app/platform_api/schema/financial_report_row.rb +20 -0
  45. data/app/platform_api/schema/financial_year_setting_sync.rb +28 -0
  46. data/app/platform_api/schema/group_account.rb +62 -0
  47. data/app/platform_api/schema/invoice.rb +8 -3
  48. data/app/platform_api/schema/invoice_fetch_result.rb +4 -4
  49. data/app/platform_api/schema/invoice_history.rb +1 -1
  50. data/app/platform_api/schema/invoice_line_sync.rb +3 -3
  51. data/app/platform_api/schema/invoice_payment_detail.rb +1 -1
  52. data/app/platform_api/schema/invoice_summary.rb +7 -1
  53. data/app/platform_api/schema/invoice_summary_invoice_summary_totals_summary_fetch_result.rb +30 -0
  54. data/app/platform_api/schema/invoice_summary_totals.rb +20 -0
  55. data/app/platform_api/schema/invoice_sync.rb +12 -7
  56. data/app/platform_api/schema/lead.rb +1 -0
  57. data/app/platform_api/schema/magic_link.rb +78 -0
  58. data/app/platform_api/schema/magic_link_fetch_result.rb +26 -0
  59. data/app/platform_api/schema/note.rb +24 -5
  60. data/app/platform_api/schema/payables_coming_due.rb +52 -0
  61. data/app/platform_api/schema/payables_coming_due_fetch_result.rb +26 -0
  62. data/app/platform_api/schema/payables_coming_due_header.rb +44 -0
  63. data/app/platform_api/schema/payables_coming_due_widget.rb +29 -0
  64. data/app/platform_api/schema/payables_summary_report.rb +43 -0
  65. data/app/platform_api/schema/payment.rb +6 -5
  66. data/app/platform_api/schema/payment_applied.rb +3 -0
  67. data/app/platform_api/schema/payment_detail.rb +17 -2
  68. data/app/platform_api/schema/payment_detail_header.rb +1 -1
  69. data/app/platform_api/schema/payment_summary.rb +32 -9
  70. data/app/platform_api/schema/payment_summary_payment_summary_totals_summary_fetch_result.rb +30 -0
  71. data/app/platform_api/schema/payment_summary_totals.rb +20 -0
  72. data/app/platform_api/schema/payment_sync.rb +6 -5
  73. data/app/platform_api/schema/public_company_profile.rb +37 -0
  74. data/app/platform_api/schema/public_company_profile_fetch_result.rb +26 -0
  75. data/app/platform_api/schema/risk_rate.rb +6 -1
  76. data/app/platform_api/schema/status.rb +10 -0
  77. data/app/platform_api/schema/summary_aging_totals.rb +19 -0
  78. data/app/platform_api/schema/sync_entity_result.rb +5 -0
  79. data/app/platform_api/schema/sync_request.rb +5 -0
  80. data/app/platform_api/schema/sync_submit.rb +6 -0
  81. data/app/platform_api/schema/transaction.rb +94 -0
  82. data/app/platform_api/schema/transaction_detail.rb +73 -0
  83. data/app/platform_api/schema/transaction_summary_total.rb +35 -0
  84. data/app/platform_api/schema/transaction_transaction_summary_total_summary_fetch_result.rb +30 -0
  85. data/app/platform_api/schema/user_account.rb +6 -2
  86. data/app/platform_api/schema/user_group.rb +30 -0
  87. data/app/platform_api/schema/user_role.rb +1 -1
  88. data/app/platform_api/schema/vendor_summary.rb +63 -10
  89. data/app/platform_api/schema/vendor_summary_fetch_result.rb +26 -0
  90. data/app/platform_api/schema/webhook.rb +6 -2
  91. data/app/platform_api/schema/webhook_history_table_storage.rb +12 -0
  92. data/app/platform_api/schema/webhook_rule.rb +79 -0
  93. data/app/platform_api/schema/webhook_rule_fetch_result.rb +26 -0
  94. data/app/platform_api/swagger.json +11440 -8523
  95. data/lib/lockstep_rails/version.rb +1 -1
  96. metadata +39 -4
  97. data/app/models/lockstep/ap_header.rb +0 -32
  98. data/app/models/lockstep/ar_header.rb +0 -32
@@ -0,0 +1,43 @@
1
+ class Schema::PayablesSummaryReport < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
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
+ #
11
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
12
+ # @type: string
13
+ # @format: uuid
14
+ field :group_key
15
+
16
+ # Timeframe in days the payables summary report is generated on
17
+ # @type: integer
18
+ # @format: int32
19
+ field :timeframe
20
+
21
+ # Amount of payments made based in the timeframe
22
+ # @type: number
23
+ # @format: double
24
+ field :total_payments_amount
25
+
26
+ # Number of payments made based in the timeframe
27
+ # @type: integer
28
+ # @format: int32
29
+ field :total_payments_count
30
+
31
+ # Amount of bills received based in the timeframe
32
+ # @type: number
33
+ # @format: double
34
+ field :total_amount_billed
35
+
36
+ # Number of bills received in the timeframe
37
+ # @type: integer
38
+ # @format: int32
39
+ field :total_bills_count
40
+
41
+
42
+
43
+ end
@@ -36,11 +36,11 @@ end
36
36
  # @type: string
37
37
  field :erp_key
38
38
 
39
- # The type of payment, cash or check.
39
+ # The type of payment, AR Payment or AP Payment.
40
40
  #
41
41
  # Recognized PaymentType values are:
42
- # * `Cash` - A cash payment or other direct transfer.
43
- # * `Check` - A check payment.
42
+ # * `AR Payment` - A payment made by a Customer to the Company
43
+ # * `AP Payment` - A payment made by the Company to a Vendor
44
44
  # @type: string
45
45
  field :payment_type
46
46
 
@@ -50,7 +50,8 @@ end
50
50
  # * `Cash` - A cash payment or other direct transfer.
51
51
  # * `Check` - A check payment.
52
52
  # * `Credit Card` - A payment made via a credit card.
53
- # * `Wire Transfer` - A payment made via wire transfer from another financial institution.
53
+ # * `Wire Transfer` - A payment made via wire transfer from another financial institution.
54
+ # * `Other` - A payment made via another method not listed above.
54
55
  # @type: string
55
56
  field :tender_type
56
57
 
@@ -89,7 +90,7 @@ end
89
90
 
90
91
  # The ISO 4217 currency code for this payment.
91
92
  #
92
- # 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/currencies data set
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
93
94
  # @type: string
94
95
  field :currency_code
95
96
 
@@ -85,6 +85,9 @@ end
85
85
  # @format: uuid
86
86
  field :app_enrollment_id
87
87
 
88
+ # The payment associated with this applied payment
89
+ field :payment
90
+
88
91
  # The invoice associated with this applied payment.
89
92
  field :invoice
90
93
 
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
- #
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
@@ -53,10 +53,25 @@ end
53
53
  # @format: double
54
54
  field :unapplied_amount
55
55
 
56
- # The type of payment, Payment or AP Payment.
56
+ # The type of payment, AR Payment or AP Payment.
57
+ #
58
+ # Recognized PaymentType values are:
59
+ # * `AR Payment` - A payment made by a Customer to the Company
60
+ # * `AP Payment` - A payment made by the Company to a Vendor
57
61
  # @type: string
58
62
  field :payment_type
59
63
 
64
+ # Cash, check, credit card, wire transfer.
65
+ #
66
+ # Recognized TenderType values are:
67
+ # * `Cash` - A cash payment or other direct transfer.
68
+ # * `Check` - A check payment.
69
+ # * `Credit Card` - A payment made via a credit card.
70
+ # * `Wire Transfer` - A payment made via wire transfer from another financial institution.
71
+ # * `Other` - A payment made via another method not listed above.
72
+ # @type: string
73
+ field :tender_type
74
+
60
75
  # The date of this Payment.
61
76
  # @type: string
62
77
  # @format: date
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
- #
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
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
- #
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
@@ -26,7 +26,11 @@ end
26
26
  # @type: string
27
27
  field :reference_code
28
28
 
29
- # The type of payment, Payment or AP Payment.
29
+ # The tender type of payment (Cash, Check, etc.)
30
+ # @type: string
31
+ field :tender_type
32
+
33
+ # The type of payment, AR Payment or AP Payment.
30
34
  # @type: string
31
35
  field :payment_type
32
36
 
@@ -45,6 +49,11 @@ end
45
49
  # @format: double
46
50
  field :unapplied_amount
47
51
 
52
+ # True if this payment includes some unassigned amount that has not yet been applied to an invoice. If this
53
+ # value is true, the field `UnappliedAmount` will be nonzero.
54
+ # @type: boolean
55
+ field :is_open
56
+
48
57
  # The number of invoices associated to this payment.
49
58
  # @type: integer
50
59
  # @format: int32
@@ -63,17 +72,31 @@ end
63
72
  # @type: array
64
73
  field :invoice_id_list
65
74
 
66
- # The name of the customer for this payment.
75
+ # The id of the company for this payment.
67
76
  # @type: string
68
- field :customer_name
77
+ # @format: uuid
78
+ field :payment_company_id
69
79
 
70
- # The id of the customer for this payment.
80
+ # The name of the company for this payment.
71
81
  # @type: string
72
- # @format: uuid
73
- field :customer_id
82
+ field :payment_company_name
83
+
84
+ # The ids of the customer for the associated invoices.
85
+ # @type: array
86
+ field :customer_ids
87
+
88
+ # The names of the customer for the associated invoices.
89
+ # @type: array
90
+ field :customer_names
91
+
92
+ # The ids of the company for the associated invoices.
93
+ # @type: array
94
+ field :company_ids
95
+
96
+ # The names of the company for the associated invoices.
97
+ # @type: array
98
+ field :company_names
74
99
 
75
- belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
76
- belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
77
100
 
78
101
 
79
102
  end
@@ -0,0 +1,30 @@
1
+ class Schema::PaymentSummaryPaymentSummaryTotalsSummaryFetchResult < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+
9
+ # @type: integer
10
+ # @format: int32
11
+ field :total_count
12
+
13
+
14
+ # @type: integer
15
+ # @format: int32
16
+ field :page_size
17
+
18
+
19
+ # @type: integer
20
+ # @format: int32
21
+ field :page_number
22
+
23
+ # The totals for a Payment Summary
24
+ field :summary
25
+
26
+
27
+ has_many :records, {:class_name=>"Schema::PaymentSummary", :included=>true}
28
+ has_many :aging_summary, {:class_name=>"Schema::SummaryAgingTotals", :included=>true}
29
+
30
+ end
@@ -0,0 +1,20 @@
1
+ class Schema::PaymentSummaryTotals < 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 amount paid.
9
+ # @type: number
10
+ # @format: double
11
+ field :total_paid_amount
12
+
13
+ # The total amount unapplied.
14
+ # @type: number
15
+ # @format: double
16
+ field :total_unapplied_balance
17
+
18
+
19
+
20
+ end
@@ -22,11 +22,11 @@ end
22
22
  # @type: string
23
23
  field :company_erp_key
24
24
 
25
- # The type of payment, cash or check.
25
+ # The type of payment, AR Payment or AP Payment.
26
26
  #
27
27
  # Recognized PaymentType values are:
28
- # * `Cash` - A cash payment or other direct transfer.
29
- # * `Check` - A check payment.
28
+ # * `AR Payment` - A payment made by a Customer to the Company
29
+ # * `AP Payment` - A payment made by the Company to a Vendor
30
30
  # @type: string
31
31
  field :payment_type
32
32
 
@@ -36,7 +36,8 @@ end
36
36
  # * `Cash` - A cash payment or other direct transfer.
37
37
  # * `Check` - A check payment.
38
38
  # * `Credit Card` - A payment made via a credit card.
39
- # * `Wire Transfer` - A payment made via wire transfer from another financial institution.
39
+ # * `Wire Transfer` - A payment made via wire transfer from another financial institution.
40
+ # * `Other` - A payment made via another method not listed above.
40
41
  # @type: string
41
42
  field :tender_type
42
43
 
@@ -75,7 +76,7 @@ end
75
76
 
76
77
  # The ISO 4217 currency code for this payment.
77
78
  #
78
- # 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/currencies data set
79
+ # For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies).
79
80
  # @type: string
80
81
  field :currency_code
81
82
 
@@ -0,0 +1,37 @@
1
+ class Schema::PublicCompanyProfile < 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 ID of the company associated with this profile.
9
+ # @type: string
10
+ # @format: uuid
11
+ field :company_id
12
+
13
+ # The short name of the company associated with this profile.
14
+ # @type: string
15
+ field :company_name
16
+
17
+ # The URL of this company's logo, if known.
18
+ # @type: string
19
+ field :company_logo_url
20
+
21
+ # Website URL for the company associated with this profile.
22
+ # @type: string
23
+ field :website
24
+
25
+ # Description of the company associated with this profile.
26
+ # @type: string
27
+ field :description
28
+
29
+ # The public url slug for this Public Company Profile.
30
+ # @type: string
31
+ field :public_url_slug
32
+
33
+ belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
34
+ belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
35
+
36
+
37
+ end
@@ -0,0 +1,26 @@
1
+ class Schema::PublicCompanyProfileFetchResult < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+
9
+ # @type: integer
10
+ # @format: int32
11
+ field :total_count
12
+
13
+
14
+ # @type: integer
15
+ # @format: int32
16
+ field :page_size
17
+
18
+
19
+ # @type: integer
20
+ # @format: int32
21
+ field :page_number
22
+
23
+
24
+ has_many :records, {:class_name=>"Schema::PublicCompanyProfile", :included=>true}
25
+
26
+ end
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
- #
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
@@ -18,6 +18,11 @@ end
18
18
  # @format: date-time
19
19
  field :report_period, Types::Params::DateTime
20
20
 
21
+ # The month the risk rate was calculated for
22
+ # @type: string
23
+ # @format: date-time
24
+ field :report_date, Types::Params::DateTime
25
+
21
26
  # The string name of the month the risk rate was calculated for
22
27
  # @type: string
23
28
  field :invoice_month_name
@@ -62,11 +62,21 @@ end
62
62
  # @type: string
63
63
  field :version
64
64
 
65
+ # If authentication is successful, contains the onboarding session status of the logged-in user's group account.
66
+ # @type: boolean
67
+ field :onboarding_scheduled
68
+
69
+ # The id of the Magic link used to authenticate.
70
+ # @type: string
71
+ # @format: uuid
72
+ field :magic_link_id
73
+
65
74
  # Statuses for the dependencies of this api.
66
75
  # OK if the dependency is working.
67
76
  # @type: object
68
77
  field :dependencies
69
78
 
70
79
 
80
+ has_many :user_groups, {:class_name=>"Schema::UserGroup", :included=>true}
71
81
 
72
82
  end
@@ -0,0 +1,19 @@
1
+ class Schema::SummaryAgingTotals < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Aging bucket outstanding balance is associated to.
9
+ # @type: string
10
+ field :bucket
11
+
12
+ # Aging outstanding balance value.
13
+ # @type: number
14
+ # @format: double
15
+ field :outstanding_balance
16
+
17
+
18
+
19
+ end
@@ -15,6 +15,11 @@ end
15
15
  # @format: int32
16
16
  field :update_count
17
17
 
18
+ # The number of entities deleted
19
+ # @type: integer
20
+ # @format: int32
21
+ field :delete_count
22
+
18
23
  # The number of entities skipped
19
24
  # @type: integer
20
25
  # @format: int32
@@ -36,6 +36,11 @@ end
36
36
  # @type: string
37
37
  field :process_result_message
38
38
 
39
+ # A boolean indicating whether a sync from an ERP system should process all the data from the ERP
40
+ # as opposed to just the delta of changes since the previous sync run
41
+ # @type: string
42
+ field :run_full_sync
43
+
39
44
  # The AppEnrollmentId of the AppEnrollment object that executed this sync request
40
45
  # @type: string
41
46
  # @format: uuid
@@ -10,6 +10,12 @@ end
10
10
  # @format: uuid
11
11
  field :app_enrollment_id
12
12
 
13
+ # A boolean indicating whether a sync from an ERP system should process all the data from the ERP
14
+ # as opposed to just the delta of changes since the previous sync run. For the Demo Data Connector, setting this
15
+ # to True refreshes the data with new dates as opposed to leaving it unchanged.
16
+ # @type: boolean
17
+ field :run_full_sync
18
+
13
19
 
14
20
 
15
21
  end
@@ -0,0 +1,94 @@
1
+ class Schema::Transaction < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Group account transaction is associated with.
9
+ # @type: string
10
+ # @format: uuid
11
+ field :group_key
12
+
13
+ # An additional reference number that is sometimes used to identify a transaction.
14
+ # The meaning of this field is specific to the ERP or accounting system used by the user.
15
+ # @type: string
16
+ field :reference_number
17
+
18
+ # The unique ID of the transaction record.
19
+ # @type: string
20
+ # @format: uuid
21
+ field :transaction_id
22
+
23
+ # The status of the transaction record.
24
+ #
25
+ # Recognized Invoice status codes are:
26
+ # * `Open` - Represents an invoice that is considered open and needs more work to complete
27
+ # * `Closed` - Represents an invoice that is considered closed and resolved
28
+ #
29
+ # Recognized Payment status codes are:
30
+ # * `Open` - Represents an payment that includes some unassigned amount that has not yet been applied to an invoice
31
+ # * `Closed` - Represents an payment where `UnappliedAmount` will be zero
32
+ # @type: string
33
+ field :transaction_status
34
+
35
+ # The type of the transaction record.
36
+ #
37
+ # Recognized Invoice types are:
38
+ # * `AR Invoice` - Represents an invoice sent by Company to the Customer
39
+ # * `AP Invoice` - Represents an invoice sent by Vendor to the Company
40
+ # * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
41
+ # * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
42
+ #
43
+ # Recognized PaymentType values are:
44
+ # * `AR Payment` - A payment made by a Customer to the Company
45
+ # * `AP Payment` - A payment made by the Company to a Vendor
46
+ # @type: string
47
+ field :transaction_type
48
+
49
+ # Additional type categorization of the transaction.
50
+ # @type: string
51
+ field :transaction_sub_type
52
+
53
+ # The date when a transaction record was reported.
54
+ # @type: string
55
+ # @format: date-time
56
+ field :transaction_date, Types::Params::DateTime
57
+
58
+ # The date when a transaction record is due for payment or completion.
59
+ # @type: string
60
+ # @format: date-time
61
+ field :due_date, Types::Params::DateTime
62
+
63
+ # The amount of days past the due date the transaction is left un-closed.
64
+ # @type: integer
65
+ # @format: int32
66
+ field :days_past_due
67
+
68
+ # The total value of this transaction, inclusive or all taxes and line items.
69
+ # @type: number
70
+ # @format: double
71
+ field :transaction_amount
72
+
73
+ # The remaining balance of this transaction.
74
+ # @type: number
75
+ # @format: double
76
+ field :outstanding_amount
77
+
78
+ # The count of items associated to the transaction.
79
+ #
80
+ # Examples:
81
+ # * Number of payments for an invoice.
82
+ # * Number of invoices a payment or credit memo is applied to.
83
+ # @type: integer
84
+ # @format: int32
85
+ field :transaction_detail_count
86
+
87
+ # Specific transactions have support for pdf retrieval from their respective erp. When this flag is true, an additional
88
+ # call to Invoices/{id}/pdf or Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
89
+ # @type: boolean
90
+ field :supports_erp_pdf_retrieval
91
+
92
+
93
+
94
+ end
@@ -0,0 +1,73 @@
1
+ class Schema::TransactionDetail < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Group account transaction detail is associated with.
9
+ # @type: string
10
+ # @format: uuid
11
+ field :group_key
12
+
13
+ # An additional reference number that is sometimes used to identify a transaction detail.
14
+ # The meaning of this field is specific to the ERP or accounting system used by the user.
15
+ # @type: string
16
+ field :reference_number
17
+
18
+ # The unique ID of the transaction detail record.
19
+ # @type: string
20
+ # @format: uuid
21
+ field :transaction_detail_id
22
+
23
+ # The unique ID of the entity applying the transaction to the transaction detail record.
24
+ # @type: string
25
+ # @format: uuid
26
+ field :transaction_detail_applied_id
27
+
28
+ # The unique ID of the transaction record.
29
+ # @type: string
30
+ # @format: uuid
31
+ field :transaction_id
32
+
33
+ # The type of the transaction detail record.
34
+ #
35
+ # Recognized Invoice types are:
36
+ # * `AR Invoice` - Represents an invoice sent by Company to the Customer
37
+ # * `AP Invoice` - Represents an invoice sent by Vendor to the Company
38
+ # * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
39
+ # * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
40
+ #
41
+ # Recognized PaymentType values are:
42
+ # * `AR Payment` - A payment made by a Customer to the Company
43
+ # * `AP Payment` - A payment made by the Company to a Vendor
44
+ # @type: string
45
+ field :transaction_type
46
+
47
+ # Additional type categorization of the transaction.
48
+ # @type: string
49
+ field :transaction_sub_type
50
+
51
+ # The date when a transaction detail record was reported.
52
+ # @type: string
53
+ # @format: date-time
54
+ field :transaction_date, Types::Params::DateTime
55
+
56
+ # The total value of this transaction detail, inclusive or all taxes and line items.
57
+ # @type: number
58
+ # @format: double
59
+ field :transaction_amount
60
+
61
+ # The remaining balance of this transaction detail.
62
+ # @type: number
63
+ # @format: double
64
+ field :outstanding_amount
65
+
66
+ # Specific transactions have support for pdf retrieval from their respective erp. When this flag is true, an additional
67
+ # call to Invoices/{id}/pdf or Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
68
+ # @type: boolean
69
+ field :supports_erp_pdf_retrieval
70
+
71
+
72
+
73
+ end
@@ -0,0 +1,35 @@
1
+ class Schema::TransactionSummaryTotal < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Total count of all transactions from the query request.
9
+ # @type: integer
10
+ # @format: int32
11
+ field :total_count
12
+
13
+ # Total value of all transactions from the query request.
14
+ # @type: number
15
+ # @format: double
16
+ field :total_amount
17
+
18
+ # Total outstanding amount value of all transactions from the query request.
19
+ # @type: number
20
+ # @format: double
21
+ field :outstanding_amount
22
+
23
+ # Total open invoice count from the query request.
24
+ # @type: integer
25
+ # @format: int32
26
+ field :invoice_open_count
27
+
28
+ # Total past due invoice count from the query request.
29
+ # @type: integer
30
+ # @format: int32
31
+ field :invoice_past_due_count
32
+
33
+
34
+
35
+ end