amsi 1.0.0 → 1.0.1

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: ba53ba480c086ec1e01d65348931bf4708372e953204b10185ac6026705a8883
4
- data.tar.gz: '0875be24b6bc5bcf8b7d0931cf78b1746a0e042348dd8c71b112d603cff851ba'
3
+ metadata.gz: beca1ea33e01cd5f15966401b03023ed05e1435d6ca8240380a5007970d274ac
4
+ data.tar.gz: e2ada1c1cb36033169bae701676efb3bac43ab3686752619dbec4db008dc2070
5
5
  SHA512:
6
- metadata.gz: 328e40dde433775dc50915974d5ad85de748ffe7e5814951acf8be84a24c68776f0d6c94d9f057e0f4a4b6d004a00fbf4f577e6a509d056944fd1221047230df
7
- data.tar.gz: 6a3dde90f9b980bf9b3277c37f7cb4ae58a0b40bf1c1e01e074252f4b64e016ac5fe1d0f74925b8c85a1b2e062ec2b7036c2506484a548211db9273a13422b20
6
+ metadata.gz: 89fda03b62a9b2d7dfcb7066b985286f47dec11da69d384c38346069a61c8022bc4f4323167c843438a61f540cb6a4d0f58ea068aae54e76466233539f80564d
7
+ data.tar.gz: 0c37beaaf6996a7a3a54540f6de820da33e79a5fbf65d8518c8a6f67ba230246895b33179b6bedfd0d5cbbf6009999a0bf71fdeb2cd189860db5bf68f81f3667
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,4 @@
1
+ * 1.0.1 Set the service on snowflake events
1
2
  * 1.0.0 Add eventing gem and track import_pms_resident and import_pms_prospect events for each occupant on GetPropertyResidents
2
3
  * 0.12.0 Add lead_source_code, lead_date and lead_id to Model::Lease
3
4
  * 0.11.5 Raise Amsi::Error::UnparsableResponse error when xml response can't be parsed
data/README.md CHANGED
@@ -115,7 +115,7 @@ Required initializer parameters:
115
115
  * `portfolio_name` [String] the unique identifier for the property in Amsi
116
116
  * `property_id` [String] Amsi property id
117
117
  * `web_service_url` [String] Amsi Url to the leasing.asmx resource
118
- * `params` [Hash] extra configuration fields: `:start_date` [String], `:end_date` [String], `:remote_id` [String], `:billing_config` [BillingConfiguration], `:import_id` [String] and `:pmc_id` [String]
118
+ * `params` [Hash] extra configuration fields: `:start_date` [String], `:end_date` [String], `:remote_id` [String], `:billing_config` [BillingConfiguration], `:import_id` [String] and `:pmc_id` [String], `:app_name` [String]
119
119
 
120
120
  Optional initializer parameters and default values:
121
121
  * `lease_status` [String] Lease status filter; defaults to current leases ("C"). Valid values: (A)pplicant, (C)urrent, (I)ntent to Transfer, (L)eased, (N)otice, (P)revious, (T)ransfer, (V)approved, (X)cancelled
@@ -32,7 +32,7 @@ module Amsi
32
32
  pms_type: 'amsi',
33
33
  import_id: request_params[:import_id],
34
34
  pmc_id: request_params[:pmc_id],
35
- service: 'amsi'
35
+ service: request_params[:app_name]
36
36
  ),
37
37
  remote_lease_id: remote_lease_id,
38
38
  import_resident_id: import_resident_id,
@@ -84,7 +84,7 @@ module Amsi
84
84
  pms_type: 'amsi',
85
85
  import_id: request_params[:import_id],
86
86
  pmc_id: request_params[:pmc_id],
87
- service: 'amsi'
87
+ service: request_params[:app_name]
88
88
  ),
89
89
  remote_lease_id: remote_lease_id,
90
90
  import_resident_id: request_params[:import_resident_id] || '',
@@ -36,6 +36,7 @@ module Amsi
36
36
 
37
37
  def pms_resident_request_params(params)
38
38
  {
39
+ app_name: params[:app_name] || '',
39
40
  start_date: params[:start_date]&.to_time,
40
41
  end_date: params[:end_date]&.to_time,
41
42
  prospect_id: nil,
@@ -67,6 +68,7 @@ module Amsi
67
68
 
68
69
  def pms_prospect_request_params(params)
69
70
  {
71
+ app_name: params[:app_name] || '',
70
72
  billing_config_id: params[:billing_config]&.id,
71
73
  property_id: params[:billing_config]&.property_id,
72
74
  remote_id: params[:remote_id],
data/lib/amsi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Amsi
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amsi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Richard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-15 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday