lockstep_rails 0.3.38 → 0.3.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 481ae74f941e20ac5a66c1f3b48c3ae9d9283ea53e64cbbe979eeb6b852f27a0
4
- data.tar.gz: d91082889c6d59314032cc2d2a89567e5e868d98c7cbe9a5c5bb930e390bdea9
3
+ metadata.gz: c508ea985ebe8dcc40347155d65906644029e04dd0509729426ae402ee7845bc
4
+ data.tar.gz: d5f6beeb58cc6b917b35b13c75e969e0d09a481f3c27c657fa2c359aca9978ef
5
5
  SHA512:
6
- metadata.gz: 0edf7d1be2d8a48637a54b7f47264821fc8d76e2cce0af5b60cb8a35724c6dd89b33ac36c78ca1691ddcf4dae2a536a9dcf971d32758365ebd2f1ca1b3488f95
7
- data.tar.gz: ae547b1171bbb79f663f4838689a580d6bfcbb9a1fcf1f2c5ffcacb7fa424e8db19f8fa85191829428f30bd37181e74b0267eb8f4da4338cd5f31ef0f078bdc6
6
+ metadata.gz: 1bc6be24ade1d82291e5ec5cabda85c81d0bf0bffda69112ad12ff0d9e138a7c2a40bff024a4782194b7156afc5f13b2360986e6e8ec0aea987fcc4bc7a01fac
7
+ data.tar.gz: 95966dbf562bc60e2372a9926ea22e4ccfbc2819ed4f9d1a6ac65857e51d2071389a9439cfdb931e9ac535ae7db025672913d536c0cdc2fe9baa39a73f3c868f
data/README.md CHANGED
@@ -62,6 +62,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
62
62
  * Lockstep::ApiKey
63
63
  * Lockstep::InvoiceAtRiskSummary
64
64
  * Lockstep::MagicLink
65
+ * Lockstep::FeatureFlag
65
66
 
66
67
  ## ActiveModel Interfaces
67
68
 
@@ -0,0 +1,12 @@
1
+ class Lockstep::FeatureFlag < Lockstep::ApiRecord
2
+ self.model_name_uri = "v1/feature-flags"
3
+ self.query_path=""
4
+ load_schema(Schema::FeatureFlag)
5
+
6
+ # Create method to override conventional create in lockstep/api_record.rb for sending attrs as an enclosed hash/object
7
+ def create
8
+ resp = resource.post('', body: attributes)
9
+ result = post_result(resp)
10
+ end
11
+
12
+ end
@@ -40,12 +40,6 @@ end
40
40
  # @type: string
41
41
  field :company_type
42
42
 
43
- # The status of the company. Companies can be either `Active` or `Inactive`. When matched to a
44
- # Lockstep corporate profile, this value will change to reflect that this record will be kept
45
- # in sync with that company's identity.
46
- # @type: string
47
- field :company_status
48
-
49
43
  # If this business entity is part of an organization, this value is non-null and it is set
50
44
  # to the `CompanyId` value of the parent company of this business entity.
51
45
  #
@@ -211,6 +205,9 @@ end
211
205
  # @type: string
212
206
  field :public_url_slug
213
207
 
208
+ # View box settings for the company logo.
209
+ field :view_box_settings
210
+
214
211
  # All invoices attached to this company.
215
212
  #
216
213
  # To retrieve this collection, specify `Invoices` in the "Include" parameter for your query. For more information on Invoices, see [InvoiceModel](https://developer.lockstep.io/reference/get_api-v1-invoices-id).
@@ -41,10 +41,6 @@ end
41
41
  # @type: string
42
42
  field :company_type
43
43
 
44
- # An optional field including status codes. Defined status codes are `Active` and `Inactive`.
45
- # @type: string
46
- field :company_status
47
-
48
44
  # If this company has a parent company, identify the parent company's `ErpKey` value here. This value should
49
45
  # be the original primary key or unique ID of the parent company to this company belongs. This value should
50
46
  # match the original ErpKey field on the parent company.
@@ -116,6 +116,11 @@ end
116
116
  # @format: date
117
117
  field :newest_activity
118
118
 
119
+ # The modified date of the customer.
120
+ # @type: string
121
+ # @format: date-time
122
+ field :modified, Types::Params::DateTime
123
+
119
124
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
120
125
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
121
126
 
@@ -0,0 +1,26 @@
1
+ class Schema::DpoSummaryFetchResult < 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::DpoSummary", :included=>true}
25
+
26
+ end
@@ -0,0 +1,12 @@
1
+ class Schema::FeatureFlag < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Name of the feature flags
9
+ # @type: array
10
+ field :names
11
+
12
+ end
@@ -0,0 +1,26 @@
1
+ class Schema::InvoiceAddressFetchResult < 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::InvoiceAddress", :included=>true}
25
+
26
+ end
@@ -0,0 +1,26 @@
1
+ class Schema::InvoiceLineFetchResult < 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::InvoiceLine", :included=>true}
25
+
26
+ end
@@ -76,6 +76,16 @@ end
76
76
  # @format: int32
77
77
  field :days_past_due
78
78
 
79
+ # The number of payments associated to this invoice.
80
+ # @type: integer
81
+ # @format: int32
82
+ field :payment_count
83
+
84
+ # Specific invoices have support for pdf retrieval from their respective erp. When this flag is true, an additional
85
+ # call to Invoices/{id}/pdf can be made to retrieve a pdf directly from the erp.
86
+ # @type: boolean
87
+ field :supports_erp_pdf_retrieval
88
+
79
89
  # The memo text of the payments associated to this invoice.
80
90
  # @type: array
81
91
  field :payment_numbers
@@ -84,6 +94,11 @@ end
84
94
  # @type: array
85
95
  field :payment_ids
86
96
 
97
+ # The modified date of the invoice.
98
+ # @type: string
99
+ # @format: date-time
100
+ field :modified, Types::Params::DateTime
101
+
87
102
  belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
88
103
  belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
89
104
 
@@ -81,6 +81,11 @@ end
81
81
  # @type: string
82
82
  field :payment_company_name
83
83
 
84
+ # Specific payments have support for pdf retrieval from their respective erp. When this flag is true, an additional
85
+ # call to Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
86
+ # @type: boolean
87
+ field :supports_erp_pdf_retrieval
88
+
84
89
  # The ids of the customer for the associated invoices.
85
90
  # @type: array
86
91
  field :customer_ids
@@ -97,6 +102,11 @@ end
97
102
  # @type: array
98
103
  field :company_names
99
104
 
105
+ # The modified date of the payment
106
+ # @type: string
107
+ # @format: date-time
108
+ field :modified, Types::Params::DateTime
109
+
100
110
 
101
111
 
102
112
  end
@@ -53,6 +53,11 @@ end
53
53
  # @format: date-time
54
54
  field :transaction_date, Types::Params::DateTime
55
55
 
56
+ # The date of the invoice associated to the transaction detail record.
57
+ # @type: string
58
+ # @format: date-time
59
+ field :transaction_invoice_date, Types::Params::DateTime
60
+
56
61
  # The total value of this transaction detail, inclusive or all taxes and line items.
57
62
  # @type: number
58
63
  # @format: double
@@ -0,0 +1,19 @@
1
+ class Schema::UserDataResponse < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Data about the user, the properties returned will depend on the requested information.
9
+ # @type: object
10
+ field :data
11
+
12
+ # The Lockstep Platform ID of the user
13
+ # @type: string
14
+ # @format: uuid
15
+ field :user_id
16
+
17
+
18
+
19
+ end
@@ -126,6 +126,11 @@ end
126
126
  # @format: double
127
127
  field :dpo
128
128
 
129
+ # The modified date of the Vendor
130
+ # @type: string
131
+ # @format: date-time
132
+ field :modified, Types::Params::DateTime
133
+
129
134
 
130
135
 
131
136
  end
@@ -0,0 +1,30 @@
1
+ class Schema::ViewBoxSettings < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # ViewBox minX setting for this Company's logo.
9
+ # @type: number
10
+ # @format: double
11
+ field :logo_view_box_min_x
12
+
13
+ # ViewBox minY setting for this Company's logo.
14
+ # @type: number
15
+ # @format: double
16
+ field :logo_view_box_min_y
17
+
18
+ # ViewBox width setting for this Company's logo.
19
+ # @type: number
20
+ # @format: double
21
+ field :logo_view_box_width
22
+
23
+ # ViewBox height setting for this Company's logo.
24
+ # @type: number
25
+ # @format: double
26
+ field :logo_view_box_height
27
+
28
+
29
+
30
+ end