Module: Evropochta::Postal::ChangeOrder

Defined in:
lib/evropochta/postal/change_order.rb

Class Method Summary collapse

Class Method Details

.call(opts: {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/evropochta/postal/change_order.rb', line 6

def call(opts: {})
  Services::Shared.request(
    "Postal.ChangeOrder",
    {
      Number: opts[:number],
      PostalItemExternalId: opts[:postal_item_external_id],
      PostDeliveryTypeIdNew: opts[:post_delivery_type_id_new],
      PostalWeightIdNew: opts[:postal_weight_id_new],
      IsFragileNew: opts[:is_fragile_new],
      IsInventoryNew: opts[:is_inventory_new],
      IsCompletenessCheckNew: opts[:is_completeness_check_new],
      CashOnDeliverySumNew: opts[:cash_on_delivery_sum_new],
      CashOnDeliveryDeclareValueSumNew: opts[:cash_on_delivery_declare_value_sum_new],
      WarehouseIdStartNew: opts[:warehouse_id_start_new],
      WarehouseIdFinishNew: opts[:warehouse_id_finish_new],
      Address1IdRecieverNew: opts[:address1_id_reciever_new],
      PhoneNumberRecieverNew: opts[:phone_number_reciever_new],
      EMailRecieverNew: opts[:email_reciever_new],
      Name1RecieverNew: opts[:name1_reciever_new],
      Name2RecieverNew: opts[:name2_reciever_new],
      Name3RecieverNew: opts[:name3_reciever_new],
      CashOnDeliveryMoneyBackIdNew: opts[:cash_on_delivery_money_back_id_new],
      InfoSenderNew: opts[:info_sender_new]
    }
  )
end