projector_pws 0.1.9 → 0.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99a7c3ce03bafd346e1c80f15f621bf65f61b912
4
- data.tar.gz: c147cd455934c2c72e881d4537085d72b7117a2c
3
+ metadata.gz: 9fa2fc31828a92ec5db949b221deebd62ab467ba
4
+ data.tar.gz: 4957e057dc1dddc72680723c697b311e41bb148e
5
5
  SHA512:
6
- metadata.gz: ae937052e0c8c3e48e194ceb46613890c7e07ac7cf3fd0292e42fa58704482a4274216c2305ed1d1fc40175f820b58f8b23e4b88fb9af66ed53b6793d0937463
7
- data.tar.gz: c678c5403cf93efa6bd03249f78a324fa9b698a372da0c8466da65c5fd9ac58922ca33df5afb3e296b695371da3a91547a738370ecca04ff98b4d76d53930b75
6
+ metadata.gz: 686278b48ab76d0c35ef48118364afb10bde431c2258be0711a8f8b2c3dba2246f4f9da91d72eab3b315c870c4d304adb8d3b093c97016910acdfa014cad272a
7
+ data.tar.gz: f30a2ab3a70bfa0e51ff72ddd7ba89298f8cabcc268d9bc58b63ad66bc27a0c24efb1aab6a9649529ccdd9fb3dbf8044c28198325a0e692877b98c5f5b63a4d8
@@ -225,6 +225,28 @@ module ProjectorPWS
225
225
  c.call(:pws_get_expense_document, message: { 'pws:serviceRequest' => params }).body[:pws_get_expense_document_response][:pws_get_expense_document_result]
226
226
  end
227
227
 
228
+ # Update Cost Cards Payment Workflow Status
229
+ def self.set_cost_cards_payment_workflow_status c, ticket, cost_card_uids, status, send_approval_email = false, send_approval_to_pay_email = false, send_paid_email = true
230
+
231
+ # Prepare Params
232
+ params = { 'req:SessionTicket' => ticket }
233
+ params['tim:PaymentWorkflowStatus'] = status
234
+ params['tim:SendApprovalEmailFlag'] = send_approval_email
235
+ params['tim:SendApprovalToPayEmailFlag'] = send_approval_to_pay_email
236
+ params['tim:SendPaidEmailFlag'] = send_paid_email
237
+ params['tim:StatusOrders'] = cost_card_uids.collect do |cc|
238
+ { 'tim:PwsCostPwsChangeOrder' => {
239
+ 'tim:CostCardIdentities' => {
240
+ 'tim:PwsVersionedCostCardRef' => {
241
+ 'com:CostCardUid' => cc
242
+ }
243
+ }
244
+ } }
245
+ end
246
+
247
+ # Set Cost Card Payment Workflow Status
248
+ c.call(:pws_set_cost_card_payment_workflow_status, message: { 'pws:serviceRequest' => params }).body[:pws_set_cost_card_payment_workflow_status_response][:pws_set_cost_card_payment_workflow_status_result]
249
+ end
228
250
 
229
251
  # Get Free Resources (non-busy) with associated minutes
230
252
  def self.get_free_resources c, ticket, start_date = current_week_start, end_date = current_week_end
@@ -5,5 +5,5 @@
5
5
  module ProjectorPWS
6
6
 
7
7
  # Version
8
- VERSION = '0.1.9'
8
+ VERSION = '0.1.10'
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: projector_pws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler