Class: ShellCardManagementApIs::UsageRestriction

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/shell_card_management_ap_is/models/usage_restriction.rb

Overview

Details of the usage restrictions such as day/week/month value and volume restrictions applied on the card.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(level = SKIP, daily_spend = SKIP, daily_spend_accumulated = SKIP, daily_spend_balance = SKIP, daily_spend_override = SKIP, daily_spend_threshold = SKIP, weekly_spend = SKIP, weekly_spend_accumulated = SKIP, weekly_spend_balance = SKIP, weekly_spend_override = SKIP, weekly_spend_threshold = SKIP, monthly_spend = SKIP, monthly_spend_accumulated = SKIP, monthly_spend_balance = SKIP, monthly_spend_override = SKIP, per_transaction_spend = SKIP, per_transaction_spend_override = SKIP, annual_spend = SKIP, annual_spend_accumulated = SKIP, annual_spend_balance = SKIP, annual_spend_override = SKIP, annual_spend_threshold = SKIP, life_time_spend = SKIP, life_time_spend_accumulated = SKIP, life_time_spend_balance = SKIP, life_time_spend_override = SKIP, life_time_spend_threshold = SKIP, daily_volume = SKIP, daily_volume_accumulated = SKIP, daily_volume_balance = SKIP, daily_volume_override = SKIP, daily_volume_threshold = SKIP, weekly_volume = SKIP, weekly_volume_accumulated = SKIP, weekly_volume_balance = SKIP, weekly_volume_override = SKIP, weekly_volume_threshold = SKIP, monthly_volume = SKIP, monthly_volume_accumulated = SKIP, monthly_volume_balance = SKIP, monthly_volume_override = SKIP, monthly_volume_threshold = SKIP, per_transaction_volume = SKIP, per_transaction_volume_override = SKIP, annual_volume = SKIP, annual_volume_accumulated = SKIP, annual_volume_balance = SKIP, annual_volume_override = SKIP, annual_volume_threshold = SKIP, life_time_volume = SKIP, life_time_volume_accumulated = SKIP, life_time_volume_balance = SKIP, life_time_volume_override = SKIP, life_time_volume_threshold = SKIP, daily_transaction_count = SKIP, daily_transaction_accumulated = SKIP, daily_transaction_balance = SKIP, daily_transaction_override = SKIP, daily_transaction_threshold = SKIP, weekly_transaction_count = SKIP, weekly_transaction_accumulated = SKIP, weekly_transaction_balance = SKIP, weekly_transaction_override = SKIP, weekly_transaction_threshold = SKIP, monthly_transaction_count = SKIP, monthly_transaction_accumulated = SKIP, monthly_transaction_balance = SKIP, monthly_transaction_override = SKIP, monthly_transaction_threshold = SKIP, annual_transaction_count = SKIP, annual_transaction_accumulated = SKIP, annual_transaction_balance = SKIP, annual_transaction_override = SKIP, annual_transaction_threshold = SKIP, life_time_transaction_count = SKIP, life_time_transaction_accumulated = SKIP, life_time_transaction_balance = SKIP, life_time_transaction_override = SKIP, life_time_transaction_threshold = SKIP) ⇒ UsageRestriction

Returns a new instance of UsageRestriction.



651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 651

def initialize(level = SKIP, daily_spend = SKIP,
               daily_spend_accumulated = SKIP, daily_spend_balance = SKIP,
               daily_spend_override = SKIP, daily_spend_threshold = SKIP,
               weekly_spend = SKIP, weekly_spend_accumulated = SKIP,
               weekly_spend_balance = SKIP, weekly_spend_override = SKIP,
               weekly_spend_threshold = SKIP, monthly_spend = SKIP,
               monthly_spend_accumulated = SKIP,
               monthly_spend_balance = SKIP, monthly_spend_override = SKIP,
               per_transaction_spend = SKIP,
               per_transaction_spend_override = SKIP, annual_spend = SKIP,
               annual_spend_accumulated = SKIP, annual_spend_balance = SKIP,
               annual_spend_override = SKIP, annual_spend_threshold = SKIP,
               life_time_spend = SKIP, life_time_spend_accumulated = SKIP,
               life_time_spend_balance = SKIP,
               life_time_spend_override = SKIP,
               life_time_spend_threshold = SKIP, daily_volume = SKIP,
               daily_volume_accumulated = SKIP, daily_volume_balance = SKIP,
               daily_volume_override = SKIP, daily_volume_threshold = SKIP,
               weekly_volume = SKIP, weekly_volume_accumulated = SKIP,
               weekly_volume_balance = SKIP, weekly_volume_override = SKIP,
               weekly_volume_threshold = SKIP, monthly_volume = SKIP,
               monthly_volume_accumulated = SKIP,
               monthly_volume_balance = SKIP,
               monthly_volume_override = SKIP,
               monthly_volume_threshold = SKIP,
               per_transaction_volume = SKIP,
               per_transaction_volume_override = SKIP, annual_volume = SKIP,
               annual_volume_accumulated = SKIP,
               annual_volume_balance = SKIP, annual_volume_override = SKIP,
               annual_volume_threshold = SKIP, life_time_volume = SKIP,
               life_time_volume_accumulated = SKIP,
               life_time_volume_balance = SKIP,
               life_time_volume_override = SKIP,
               life_time_volume_threshold = SKIP,
               daily_transaction_count = SKIP,
               daily_transaction_accumulated = SKIP,
               daily_transaction_balance = SKIP,
               daily_transaction_override = SKIP,
               daily_transaction_threshold = SKIP,
               weekly_transaction_count = SKIP,
               weekly_transaction_accumulated = SKIP,
               weekly_transaction_balance = SKIP,
               weekly_transaction_override = SKIP,
               weekly_transaction_threshold = SKIP,
               monthly_transaction_count = SKIP,
               monthly_transaction_accumulated = SKIP,
               monthly_transaction_balance = SKIP,
               monthly_transaction_override = SKIP,
               monthly_transaction_threshold = SKIP,
               annual_transaction_count = SKIP,
               annual_transaction_accumulated = SKIP,
               annual_transaction_balance = SKIP,
               annual_transaction_override = SKIP,
               annual_transaction_threshold = SKIP,
               life_time_transaction_count = SKIP,
               life_time_transaction_accumulated = SKIP,
               life_time_transaction_balance = SKIP,
               life_time_transaction_override = SKIP,
               life_time_transaction_threshold = SKIP)
  @level = level unless level == SKIP
  @daily_spend = daily_spend unless daily_spend == SKIP
  @daily_spend_accumulated = daily_spend_accumulated unless daily_spend_accumulated == SKIP
  @daily_spend_balance = daily_spend_balance unless daily_spend_balance == SKIP
  @daily_spend_override = daily_spend_override unless daily_spend_override == SKIP
  @daily_spend_threshold = daily_spend_threshold unless daily_spend_threshold == SKIP
  @weekly_spend = weekly_spend unless weekly_spend == SKIP
  @weekly_spend_accumulated = weekly_spend_accumulated unless weekly_spend_accumulated == SKIP
  @weekly_spend_balance = weekly_spend_balance unless weekly_spend_balance == SKIP
  @weekly_spend_override = weekly_spend_override unless weekly_spend_override == SKIP
  @weekly_spend_threshold = weekly_spend_threshold unless weekly_spend_threshold == SKIP
  @monthly_spend = monthly_spend unless monthly_spend == SKIP
  unless monthly_spend_accumulated == SKIP
    @monthly_spend_accumulated =
      monthly_spend_accumulated
  end
  @monthly_spend_balance = monthly_spend_balance unless monthly_spend_balance == SKIP
  @monthly_spend_override = monthly_spend_override unless monthly_spend_override == SKIP
  @per_transaction_spend = per_transaction_spend unless per_transaction_spend == SKIP
  unless per_transaction_spend_override == SKIP
    @per_transaction_spend_override =
      per_transaction_spend_override
  end
  @annual_spend = annual_spend unless annual_spend == SKIP
  @annual_spend_accumulated = annual_spend_accumulated unless annual_spend_accumulated == SKIP
  @annual_spend_balance = annual_spend_balance unless annual_spend_balance == SKIP
  @annual_spend_override = annual_spend_override unless annual_spend_override == SKIP
  @annual_spend_threshold = annual_spend_threshold unless annual_spend_threshold == SKIP
  @life_time_spend = life_time_spend unless life_time_spend == SKIP
  unless life_time_spend_accumulated == SKIP
    @life_time_spend_accumulated =
      life_time_spend_accumulated
  end
  @life_time_spend_balance = life_time_spend_balance unless life_time_spend_balance == SKIP
  @life_time_spend_override = life_time_spend_override unless life_time_spend_override == SKIP
  unless life_time_spend_threshold == SKIP
    @life_time_spend_threshold =
      life_time_spend_threshold
  end
  @daily_volume = daily_volume unless daily_volume == SKIP
  @daily_volume_accumulated = daily_volume_accumulated unless daily_volume_accumulated == SKIP
  @daily_volume_balance = daily_volume_balance unless daily_volume_balance == SKIP
  @daily_volume_override = daily_volume_override unless daily_volume_override == SKIP
  @daily_volume_threshold = daily_volume_threshold unless daily_volume_threshold == SKIP
  @weekly_volume = weekly_volume unless weekly_volume == SKIP
  unless weekly_volume_accumulated == SKIP
    @weekly_volume_accumulated =
      weekly_volume_accumulated
  end
  @weekly_volume_balance = weekly_volume_balance unless weekly_volume_balance == SKIP
  @weekly_volume_override = weekly_volume_override unless weekly_volume_override == SKIP
  @weekly_volume_threshold = weekly_volume_threshold unless weekly_volume_threshold == SKIP
  @monthly_volume = monthly_volume unless monthly_volume == SKIP
  unless monthly_volume_accumulated == SKIP
    @monthly_volume_accumulated =
      monthly_volume_accumulated
  end
  @monthly_volume_balance = monthly_volume_balance unless monthly_volume_balance == SKIP
  @monthly_volume_override = monthly_volume_override unless monthly_volume_override == SKIP
  @monthly_volume_threshold = monthly_volume_threshold unless monthly_volume_threshold == SKIP
  @per_transaction_volume = per_transaction_volume unless per_transaction_volume == SKIP
  unless per_transaction_volume_override == SKIP
    @per_transaction_volume_override =
      per_transaction_volume_override
  end
  @annual_volume = annual_volume unless annual_volume == SKIP
  unless annual_volume_accumulated == SKIP
    @annual_volume_accumulated =
      annual_volume_accumulated
  end
  @annual_volume_balance = annual_volume_balance unless annual_volume_balance == SKIP
  @annual_volume_override = annual_volume_override unless annual_volume_override == SKIP
  @annual_volume_threshold = annual_volume_threshold unless annual_volume_threshold == SKIP
  @life_time_volume = life_time_volume unless life_time_volume == SKIP
  unless life_time_volume_accumulated == SKIP
    @life_time_volume_accumulated =
      life_time_volume_accumulated
  end
  @life_time_volume_balance = life_time_volume_balance unless life_time_volume_balance == SKIP
  unless life_time_volume_override == SKIP
    @life_time_volume_override =
      life_time_volume_override
  end
  unless life_time_volume_threshold == SKIP
    @life_time_volume_threshold =
      life_time_volume_threshold
  end
  @daily_transaction_count = daily_transaction_count unless daily_transaction_count == SKIP
  unless daily_transaction_accumulated == SKIP
    @daily_transaction_accumulated =
      daily_transaction_accumulated
  end
  unless daily_transaction_balance == SKIP
    @daily_transaction_balance =
      daily_transaction_balance
  end
  unless daily_transaction_override == SKIP
    @daily_transaction_override =
      daily_transaction_override
  end
  unless daily_transaction_threshold == SKIP
    @daily_transaction_threshold =
      daily_transaction_threshold
  end
  @weekly_transaction_count = weekly_transaction_count unless weekly_transaction_count == SKIP
  unless weekly_transaction_accumulated == SKIP
    @weekly_transaction_accumulated =
      weekly_transaction_accumulated
  end
  unless weekly_transaction_balance == SKIP
    @weekly_transaction_balance =
      weekly_transaction_balance
  end
  unless weekly_transaction_override == SKIP
    @weekly_transaction_override =
      weekly_transaction_override
  end
  unless weekly_transaction_threshold == SKIP
    @weekly_transaction_threshold =
      weekly_transaction_threshold
  end
  unless monthly_transaction_count == SKIP
    @monthly_transaction_count =
      monthly_transaction_count
  end
  unless monthly_transaction_accumulated == SKIP
    @monthly_transaction_accumulated =
      monthly_transaction_accumulated
  end
  unless monthly_transaction_balance == SKIP
    @monthly_transaction_balance =
      monthly_transaction_balance
  end
  unless monthly_transaction_override == SKIP
    @monthly_transaction_override =
      monthly_transaction_override
  end
  unless monthly_transaction_threshold == SKIP
    @monthly_transaction_threshold =
      monthly_transaction_threshold
  end
  @annual_transaction_count = annual_transaction_count unless annual_transaction_count == SKIP
  unless annual_transaction_accumulated == SKIP
    @annual_transaction_accumulated =
      annual_transaction_accumulated
  end
  unless annual_transaction_balance == SKIP
    @annual_transaction_balance =
      annual_transaction_balance
  end
  unless annual_transaction_override == SKIP
    @annual_transaction_override =
      annual_transaction_override
  end
  unless annual_transaction_threshold == SKIP
    @annual_transaction_threshold =
      annual_transaction_threshold
  end
  unless life_time_transaction_count == SKIP
    @life_time_transaction_count =
      life_time_transaction_count
  end
  unless life_time_transaction_accumulated == SKIP
    @life_time_transaction_accumulated =
      life_time_transaction_accumulated
  end
  unless life_time_transaction_balance == SKIP
    @life_time_transaction_balance =
      life_time_transaction_balance
  end
  unless life_time_transaction_override == SKIP
    @life_time_transaction_override =
      life_time_transaction_override
  end
  unless life_time_transaction_threshold == SKIP
    @life_time_transaction_threshold =
      life_time_transaction_threshold
  end
end

Instance Attribute Details

#annual_spendFloat

Maximum spend value (amount) allowed per annum. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


117
118
119
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 117

def annual_spend
  @annual_spend
end

#annual_spend_accumulatedFloat

Value (amount) spent during the year.

Returns:

  • (Float)


121
122
123
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 121

def annual_spend_accumulated
  @annual_spend_accumulated
end

#annual_spend_balanceFloat

Balance spend value (amount) available for rest of the year.

Returns:

  • (Float)


125
126
127
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 125

def annual_spend_balance
  @annual_spend_balance
end

#annual_spend_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


130
131
132
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 130

def annual_spend_override
  @annual_spend_override
end

#annual_spend_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


139
140
141
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 139

def annual_spend_threshold
  @annual_spend_threshold
end

#annual_transaction_accumulatedFloat

Number of times the card is used during the year.

Returns:

  • (Float)


421
422
423
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 421

def annual_transaction_accumulated
  @annual_transaction_accumulated
end

#annual_transaction_balanceFloat

Number of times the card could be used in rest of the year.

Returns:

  • (Float)


425
426
427
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 425

def annual_transaction_balance
  @annual_transaction_balance
end

#annual_transaction_countFloat

Maximum number of transactions allowed per annum. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance.

Returns:

  • (Float)


417
418
419
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 417

def annual_transaction_count
  @annual_transaction_count
end

#annual_transaction_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


430
431
432
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 430

def annual_transaction_override
  @annual_transaction_override
end

#annual_transaction_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


439
440
441
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 439

def annual_transaction_threshold
  @annual_transaction_threshold
end

#annual_volumeFloat

Maximum volume (quantity) allowed per annum. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


273
274
275
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 273

def annual_volume
  @annual_volume
end

#annual_volume_accumulatedFloat

Volume (quantity) bought during the year.

Returns:

  • (Float)


277
278
279
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 277

def annual_volume_accumulated
  @annual_volume_accumulated
end

#annual_volume_balanceFloat

Balance volume (quantity) available for rest of the year.

Returns:

  • (Float)


281
282
283
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 281

def annual_volume_balance
  @annual_volume_balance
end

#annual_volume_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


286
287
288
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 286

def annual_volume_override
  @annual_volume_override
end

#annual_volume_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


295
296
297
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 295

def annual_volume_threshold
  @annual_volume_threshold
end

#daily_spendFloat

Maximum spend value (amount) allowed per day. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


28
29
30
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 28

def daily_spend
  @daily_spend
end

#daily_spend_accumulatedFloat

Balance spend value (amount) available for rest of the day.

Returns:

  • (Float)


32
33
34
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 32

def daily_spend_accumulated
  @daily_spend_accumulated
end

#daily_spend_balanceFloat

Balance spend value (amount) available for rest of the day.

Returns:

  • (Float)


36
37
38
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 36

def daily_spend_balance
  @daily_spend_balance
end

#daily_spend_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


41
42
43
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 41

def daily_spend_override
  @daily_spend_override
end

#daily_spend_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55

Returns:

  • (Float)


49
50
51
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 49

def daily_spend_threshold
  @daily_spend_threshold
end

#daily_transaction_accumulatedFloat

Number of times the card is used during the day.

Returns:

  • (Float)


335
336
337
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 335

def daily_transaction_accumulated
  @daily_transaction_accumulated
end

#daily_transaction_balanceFloat

Number of times the card could be used in rest of the day.

Returns:

  • (Float)


339
340
341
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 339

def daily_transaction_balance
  @daily_transaction_balance
end

#daily_transaction_countFloat

Maximum number of transactions allowed per day. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited

Returns:

  • (Float)


331
332
333
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 331

def daily_transaction_count
  @daily_transaction_count
end

#daily_transaction_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


344
345
346
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 344

def daily_transaction_override
  @daily_transaction_override
end

#daily_transaction_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


353
354
355
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 353

def daily_transaction_threshold
  @daily_transaction_threshold
end

#daily_volumeFloat

Maximum volume (quantity) allowed per day. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


175
176
177
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 175

def daily_volume
  @daily_volume
end

#daily_volume_accumulatedFloat

Volume (quantity) bought during the day.

Returns:

  • (Float)


179
180
181
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 179

def daily_volume_accumulated
  @daily_volume_accumulated
end

#daily_volume_balanceFloat

Balance volume (quantity) available for rest of the day.

Returns:

  • (Float)


183
184
185
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 183

def daily_volume_balance
  @daily_volume_balance
end

#daily_volume_overrideFloat

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (Float)


188
189
190
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 188

def daily_volume_override
  @daily_volume_override
end

#daily_volume_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


197
198
199
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 197

def daily_volume_threshold
  @daily_volume_threshold
end

#levelString

Usage limit is applied on the card from this level. Valid values – • Inherited • Card When Card level usage restrictions are not present, the API will return the inherited restrictions. Note: -This field is deprecated. Instead, use ‘Override’.

Returns:

  • (String)


21
22
23
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 21

def level
  @level
end

#life_time_spendFloat

Maximum spend value (amount) allowed in card’s life time. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited

Returns:

  • (Float)


146
147
148
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 146

def life_time_spend
  @life_time_spend
end

#life_time_spend_accumulatedFloat

Value (amount) spent during the card’s life time

Returns:

  • (Float)


150
151
152
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 150

def life_time_spend_accumulated
  @life_time_spend_accumulated
end

#life_time_spend_balanceFloat

Balance spend value (amount) available for rest of the card’s life time.

Returns:

  • (Float)


154
155
156
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 154

def life_time_spend_balance
  @life_time_spend_balance
end

#life_time_spend_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


159
160
161
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 159

def life_time_spend_override
  @life_time_spend_override
end

#life_time_spend_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


168
169
170
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 168

def life_time_spend_threshold
  @life_time_spend_threshold
end

#life_time_transaction_accumulatedFloat

Number of times the card is used during the card’s life time.

Returns:

  • (Float)


450
451
452
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 450

def life_time_transaction_accumulated
  @life_time_transaction_accumulated
end

#life_time_transaction_balanceFloat

Number of times the card could be used in rest of the card’s life time.

Returns:

  • (Float)


454
455
456
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 454

def life_time_transaction_balance
  @life_time_transaction_balance
end

#life_time_transaction_countFloat

Maximum number of transactions allowed in the card’s life time. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


446
447
448
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 446

def life_time_transaction_count
  @life_time_transaction_count
end

#life_time_transaction_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


459
460
461
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 459

def life_time_transaction_override
  @life_time_transaction_override
end

#life_time_transaction_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


468
469
470
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 468

def life_time_transaction_threshold
  @life_time_transaction_threshold
end

#life_time_volumeFloat

Maximum volume (quantity) allowed in the card’s life time. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


302
303
304
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 302

def life_time_volume
  @life_time_volume
end

#life_time_volume_accumulatedFloat

Volume (quantity) bought during the card’s life time.

Returns:

  • (Float)


306
307
308
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 306

def life_time_volume_accumulated
  @life_time_volume_accumulated
end

#life_time_volume_balanceFloat

Balance volume (quantity) available for rest of the card’s life time.

Returns:

  • (Float)


310
311
312
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 310

def life_time_volume_balance
  @life_time_volume_balance
end

#life_time_volume_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


315
316
317
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 315

def life_time_volume_override
  @life_time_volume_override
end

#life_time_volume_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


324
325
326
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 324

def life_time_volume_threshold
  @life_time_volume_threshold
end

#monthly_spendFloat

Maximum spend value (amount) allowed per month. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


85
86
87
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 85

def monthly_spend
  @monthly_spend
end

#monthly_spend_accumulatedFloat

Value (amount) spent during the month.

Returns:

  • (Float)


89
90
91
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 89

def monthly_spend_accumulated
  @monthly_spend_accumulated
end

#monthly_spend_balanceFloat

Balance spend value (amount) available for rest of the month.

Returns:

  • (Float)


93
94
95
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 93

def monthly_spend_balance
  @monthly_spend_balance
end

#monthly_spend_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


98
99
100
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 98

def monthly_spend_override
  @monthly_spend_override
end

#monthly_transaction_accumulatedFloat

Number of times the card is used during the month

Returns:

  • (Float)


393
394
395
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 393

def monthly_transaction_accumulated
  @monthly_transaction_accumulated
end

#monthly_transaction_balanceFloat

Number of times the card could be used in rest of the month.

Returns:

  • (Float)


397
398
399
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 397

def monthly_transaction_balance
  @monthly_transaction_balance
end

#monthly_transaction_countFloat

Maximum number of transactions allowed per month. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


389
390
391
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 389

def monthly_transaction_count
  @monthly_transaction_count
end

#monthly_transaction_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


402
403
404
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 402

def monthly_transaction_override
  @monthly_transaction_override
end

#monthly_transaction_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


411
412
413
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 411

def monthly_transaction_threshold
  @monthly_transaction_threshold
end

#monthly_volumeFloat

Maximum volume (quantity) allowed per month. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


233
234
235
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 233

def monthly_volume
  @monthly_volume
end

#monthly_volume_accumulatedFloat

Volume (quantity) bought during the month.

Returns:

  • (Float)


237
238
239
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 237

def monthly_volume_accumulated
  @monthly_volume_accumulated
end

#monthly_volume_balanceFloat

Balance volume (quantity) available for rest of the month.

Returns:

  • (Float)


241
242
243
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 241

def monthly_volume_balance
  @monthly_volume_balance
end

#monthly_volume_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default).

Returns:

  • (TrueClass | FalseClass)


245
246
247
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 245

def monthly_volume_override
  @monthly_volume_override
end

#monthly_volume_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


254
255
256
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 254

def monthly_volume_threshold
  @monthly_volume_threshold
end

#per_transaction_spendFloat

Maximum spend value (amount) allowed per transaction. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


105
106
107
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 105

def per_transaction_spend
  @per_transaction_spend
end

#per_transaction_spend_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


110
111
112
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 110

def per_transaction_spend_override
  @per_transaction_spend_override
end

#per_transaction_volumeFloat

Maximum volume (quantity) allowed per transaction. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


261
262
263
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 261

def per_transaction_volume
  @per_transaction_volume
end

#per_transaction_volume_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


266
267
268
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 266

def per_transaction_volume_override
  @per_transaction_volume_override
end

#weekly_spendFloat

Maximum spend value (amount) allowed per week. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


56
57
58
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 56

def weekly_spend
  @weekly_spend
end

#weekly_spend_accumulatedFloat

Value (amount) spent during the week.

Returns:

  • (Float)


60
61
62
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 60

def weekly_spend_accumulated
  @weekly_spend_accumulated
end

#weekly_spend_balanceFloat

Balance spend value (amount) available for rest of the week.

Returns:

  • (Float)


64
65
66
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 64

def weekly_spend_balance
  @weekly_spend_balance
end

#weekly_spend_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


69
70
71
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 69

def weekly_spend_override
  @weekly_spend_override
end

#weekly_spend_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


78
79
80
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 78

def weekly_spend_threshold
  @weekly_spend_threshold
end

#weekly_transaction_accumulatedFloat

Number of times the card is used during the week

Returns:

  • (Float)


364
365
366
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 364

def weekly_transaction_accumulated
  @weekly_transaction_accumulated
end

#weekly_transaction_balanceFloat

Number of times the card could be used in rest of the week.

Returns:

  • (Float)


368
369
370
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 368

def weekly_transaction_balance
  @weekly_transaction_balance
end

#weekly_transaction_countFloat

Maximum number of transactions allowed per week. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


360
361
362
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 360

def weekly_transaction_count
  @weekly_transaction_count
end

#weekly_transaction_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


373
374
375
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 373

def weekly_transaction_override
  @weekly_transaction_override
end

#weekly_transaction_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


382
383
384
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 382

def weekly_transaction_threshold
  @weekly_transaction_threshold
end

#weekly_volumeFloat

Maximum volume (quantity) allowed per week. Card limit ‘0’ represents the value is inherited and inherited limit could be calculated by adding accumulated and balance. However, Inherited limit ‘0’ represents unlimited.

Returns:

  • (Float)


204
205
206
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 204

def weekly_volume
  @weekly_volume
end

#weekly_volume_accumulatedFloat

Volume (quantity) bought during the week.

Returns:

  • (Float)


208
209
210
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 208

def weekly_volume_accumulated
  @weekly_volume_accumulated
end

#weekly_volume_balanceFloat

Balance volume (quantity) available for rest of the week.

Returns:

  • (Float)


212
213
214
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 212

def weekly_volume_balance
  @weekly_volume_balance
end

#weekly_volume_overrideTrueClass | FalseClass

Indicate if the limit is overridden or default. (False for default). Example: false

Returns:

  • (TrueClass | FalseClass)


217
218
219
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 217

def weekly_volume_override
  @weekly_volume_override
end

#weekly_volume_thresholdFloat

The limit to trigger an alert if the balance after a transaction reaches it or below. 0 indicates no alerts will be sent. Not present if not set (issuer value threshold limit applies if available). Not present for COUNT type velocity. Example: 50.55 This is an optional output field.

Returns:

  • (Float)


226
227
228
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 226

def weekly_volume_threshold
  @weekly_volume_threshold
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 891

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  level = hash.key?('Level') ? hash['Level'] : SKIP
  daily_spend = hash.key?('DailySpend') ? hash['DailySpend'] : SKIP
  daily_spend_accumulated =
    hash.key?('DailySpendAccumulated') ? hash['DailySpendAccumulated'] : SKIP
  daily_spend_balance =
    hash.key?('DailySpendBalance') ? hash['DailySpendBalance'] : SKIP
  daily_spend_override =
    hash.key?('DailySpendOverride') ? hash['DailySpendOverride'] : SKIP
  daily_spend_threshold =
    hash.key?('DailySpendThreshold') ? hash['DailySpendThreshold'] : SKIP
  weekly_spend = hash.key?('WeeklySpend') ? hash['WeeklySpend'] : SKIP
  weekly_spend_accumulated =
    hash.key?('WeeklySpendAccumulated') ? hash['WeeklySpendAccumulated'] : SKIP
  weekly_spend_balance =
    hash.key?('WeeklySpendBalance') ? hash['WeeklySpendBalance'] : SKIP
  weekly_spend_override =
    hash.key?('WeeklySpendOverride') ? hash['WeeklySpendOverride'] : SKIP
  weekly_spend_threshold =
    hash.key?('WeeklySpendThreshold') ? hash['WeeklySpendThreshold'] : SKIP
  monthly_spend = hash.key?('MonthlySpend') ? hash['MonthlySpend'] : SKIP
  monthly_spend_accumulated =
    hash.key?('MonthlySpendAccumulated') ? hash['MonthlySpendAccumulated'] : SKIP
  monthly_spend_balance =
    hash.key?('MonthlySpendBalance') ? hash['MonthlySpendBalance'] : SKIP
  monthly_spend_override =
    hash.key?('MonthlySpendOverride') ? hash['MonthlySpendOverride'] : SKIP
  per_transaction_spend =
    hash.key?('PerTransactionSpend') ? hash['PerTransactionSpend'] : SKIP
  per_transaction_spend_override =
    hash.key?('PerTransactionSpendOverride') ? hash['PerTransactionSpendOverride'] : SKIP
  annual_spend = hash.key?('AnnualSpend') ? hash['AnnualSpend'] : SKIP
  annual_spend_accumulated =
    hash.key?('AnnualSpendAccumulated') ? hash['AnnualSpendAccumulated'] : SKIP
  annual_spend_balance =
    hash.key?('AnnualSpendBalance') ? hash['AnnualSpendBalance'] : SKIP
  annual_spend_override =
    hash.key?('AnnualSpendOverride') ? hash['AnnualSpendOverride'] : SKIP
  annual_spend_threshold =
    hash.key?('AnnualSpendThreshold') ? hash['AnnualSpendThreshold'] : SKIP
  life_time_spend =
    hash.key?('LifeTimeSpend') ? hash['LifeTimeSpend'] : SKIP
  life_time_spend_accumulated =
    hash.key?('LifeTimeSpendAccumulated') ? hash['LifeTimeSpendAccumulated'] : SKIP
  life_time_spend_balance =
    hash.key?('LifeTimeSpendBalance') ? hash['LifeTimeSpendBalance'] : SKIP
  life_time_spend_override =
    hash.key?('LifeTimeSpendOverride') ? hash['LifeTimeSpendOverride'] : SKIP
  life_time_spend_threshold =
    hash.key?('LifeTimeSpendThreshold') ? hash['LifeTimeSpendThreshold'] : SKIP
  daily_volume = hash.key?('DailyVolume') ? hash['DailyVolume'] : SKIP
  daily_volume_accumulated =
    hash.key?('DailyVolumeAccumulated') ? hash['DailyVolumeAccumulated'] : SKIP
  daily_volume_balance =
    hash.key?('DailyVolumeBalance') ? hash['DailyVolumeBalance'] : SKIP
  daily_volume_override =
    hash.key?('DailyVolumeOverride') ? hash['DailyVolumeOverride'] : SKIP
  daily_volume_threshold =
    hash.key?('DailyVolumeThreshold') ? hash['DailyVolumeThreshold'] : SKIP
  weekly_volume = hash.key?('WeeklyVolume') ? hash['WeeklyVolume'] : SKIP
  weekly_volume_accumulated =
    hash.key?('WeeklyVolumeAccumulated') ? hash['WeeklyVolumeAccumulated'] : SKIP
  weekly_volume_balance =
    hash.key?('WeeklyVolumeBalance') ? hash['WeeklyVolumeBalance'] : SKIP
  weekly_volume_override =
    hash.key?('WeeklyVolumeOverride') ? hash['WeeklyVolumeOverride'] : SKIP
  weekly_volume_threshold =
    hash.key?('WeeklyVolumeThreshold') ? hash['WeeklyVolumeThreshold'] : SKIP
  monthly_volume = hash.key?('MonthlyVolume') ? hash['MonthlyVolume'] : SKIP
  monthly_volume_accumulated =
    hash.key?('MonthlyVolumeAccumulated') ? hash['MonthlyVolumeAccumulated'] : SKIP
  monthly_volume_balance =
    hash.key?('MonthlyVolumeBalance') ? hash['MonthlyVolumeBalance'] : SKIP
  monthly_volume_override =
    hash.key?('MonthlyVolumeOverride') ? hash['MonthlyVolumeOverride'] : SKIP
  monthly_volume_threshold =
    hash.key?('MonthlyVolumeThreshold') ? hash['MonthlyVolumeThreshold'] : SKIP
  per_transaction_volume =
    hash.key?('PerTransactionVolume') ? hash['PerTransactionVolume'] : SKIP
  per_transaction_volume_override =
    hash.key?('PerTransactionVolumeOverride') ? hash['PerTransactionVolumeOverride'] : SKIP
  annual_volume = hash.key?('AnnualVolume') ? hash['AnnualVolume'] : SKIP
  annual_volume_accumulated =
    hash.key?('AnnualVolumeAccumulated') ? hash['AnnualVolumeAccumulated'] : SKIP
  annual_volume_balance =
    hash.key?('AnnualVolumeBalance') ? hash['AnnualVolumeBalance'] : SKIP
  annual_volume_override =
    hash.key?('AnnualVolumeOverride') ? hash['AnnualVolumeOverride'] : SKIP
  annual_volume_threshold =
    hash.key?('AnnualVolumeThreshold') ? hash['AnnualVolumeThreshold'] : SKIP
  life_time_volume =
    hash.key?('LifeTimeVolume') ? hash['LifeTimeVolume'] : SKIP
  life_time_volume_accumulated =
    hash.key?('LifeTimeVolumeAccumulated') ? hash['LifeTimeVolumeAccumulated'] : SKIP
  life_time_volume_balance =
    hash.key?('LifeTimeVolumeBalance') ? hash['LifeTimeVolumeBalance'] : SKIP
  life_time_volume_override =
    hash.key?('LifeTimeVolumeOverride') ? hash['LifeTimeVolumeOverride'] : SKIP
  life_time_volume_threshold =
    hash.key?('LifeTimeVolumeThreshold') ? hash['LifeTimeVolumeThreshold'] : SKIP
  daily_transaction_count =
    hash.key?('DailyTransactionCount') ? hash['DailyTransactionCount'] : SKIP
  daily_transaction_accumulated =
    hash.key?('DailyTransactionAccumulated') ? hash['DailyTransactionAccumulated'] : SKIP
  daily_transaction_balance =
    hash.key?('DailyTransactionBalance') ? hash['DailyTransactionBalance'] : SKIP
  daily_transaction_override =
    hash.key?('DailyTransactionOverride') ? hash['DailyTransactionOverride'] : SKIP
  daily_transaction_threshold =
    hash.key?('DailyTransactionThreshold') ? hash['DailyTransactionThreshold'] : SKIP
  weekly_transaction_count =
    hash.key?('WeeklyTransactionCount') ? hash['WeeklyTransactionCount'] : SKIP
  weekly_transaction_accumulated =
    hash.key?('WeeklyTransactionAccumulated') ? hash['WeeklyTransactionAccumulated'] : SKIP
  weekly_transaction_balance =
    hash.key?('WeeklyTransactionBalance') ? hash['WeeklyTransactionBalance'] : SKIP
  weekly_transaction_override =
    hash.key?('WeeklyTransactionOverride') ? hash['WeeklyTransactionOverride'] : SKIP
  weekly_transaction_threshold =
    hash.key?('WeeklyTransactionThreshold') ? hash['WeeklyTransactionThreshold'] : SKIP
  monthly_transaction_count =
    hash.key?('MonthlyTransactionCount') ? hash['MonthlyTransactionCount'] : SKIP
  monthly_transaction_accumulated =
    hash.key?('MonthlyTransactionAccumulated') ? hash['MonthlyTransactionAccumulated'] : SKIP
  monthly_transaction_balance =
    hash.key?('MonthlyTransactionBalance') ? hash['MonthlyTransactionBalance'] : SKIP
  monthly_transaction_override =
    hash.key?('MonthlyTransactionOverride') ? hash['MonthlyTransactionOverride'] : SKIP
  monthly_transaction_threshold =
    hash.key?('MonthlyTransactionThreshold') ? hash['MonthlyTransactionThreshold'] : SKIP
  annual_transaction_count =
    hash.key?('AnnualTransactionCount') ? hash['AnnualTransactionCount'] : SKIP
  annual_transaction_accumulated =
    hash.key?('AnnualTransactionAccumulated') ? hash['AnnualTransactionAccumulated'] : SKIP
  annual_transaction_balance =
    hash.key?('AnnualTransactionBalance') ? hash['AnnualTransactionBalance'] : SKIP
  annual_transaction_override =
    hash.key?('AnnualTransactionOverride') ? hash['AnnualTransactionOverride'] : SKIP
  annual_transaction_threshold =
    hash.key?('AnnualTransactionThreshold') ? hash['AnnualTransactionThreshold'] : SKIP
  life_time_transaction_count =
    hash.key?('LifeTimeTransactionCount') ? hash['LifeTimeTransactionCount'] : SKIP
  life_time_transaction_accumulated =
    hash.key?('LifeTimeTransactionAccumulated') ? hash['LifeTimeTransactionAccumulated'] : SKIP
  life_time_transaction_balance =
    hash.key?('LifeTimeTransactionBalance') ? hash['LifeTimeTransactionBalance'] : SKIP
  life_time_transaction_override =
    hash.key?('LifeTimeTransactionOverride') ? hash['LifeTimeTransactionOverride'] : SKIP
  life_time_transaction_threshold =
    hash.key?('LifeTimeTransactionThreshold') ? hash['LifeTimeTransactionThreshold'] : SKIP

  # Create object from extracted values.
  UsageRestriction.new(level,
                       daily_spend,
                       daily_spend_accumulated,
                       daily_spend_balance,
                       daily_spend_override,
                       daily_spend_threshold,
                       weekly_spend,
                       weekly_spend_accumulated,
                       weekly_spend_balance,
                       weekly_spend_override,
                       weekly_spend_threshold,
                       monthly_spend,
                       monthly_spend_accumulated,
                       monthly_spend_balance,
                       monthly_spend_override,
                       per_transaction_spend,
                       per_transaction_spend_override,
                       annual_spend,
                       annual_spend_accumulated,
                       annual_spend_balance,
                       annual_spend_override,
                       annual_spend_threshold,
                       life_time_spend,
                       life_time_spend_accumulated,
                       life_time_spend_balance,
                       life_time_spend_override,
                       life_time_spend_threshold,
                       daily_volume,
                       daily_volume_accumulated,
                       daily_volume_balance,
                       daily_volume_override,
                       daily_volume_threshold,
                       weekly_volume,
                       weekly_volume_accumulated,
                       weekly_volume_balance,
                       weekly_volume_override,
                       weekly_volume_threshold,
                       monthly_volume,
                       monthly_volume_accumulated,
                       monthly_volume_balance,
                       monthly_volume_override,
                       monthly_volume_threshold,
                       per_transaction_volume,
                       per_transaction_volume_override,
                       annual_volume,
                       annual_volume_accumulated,
                       annual_volume_balance,
                       annual_volume_override,
                       annual_volume_threshold,
                       life_time_volume,
                       life_time_volume_accumulated,
                       life_time_volume_balance,
                       life_time_volume_override,
                       life_time_volume_threshold,
                       daily_transaction_count,
                       daily_transaction_accumulated,
                       daily_transaction_balance,
                       daily_transaction_override,
                       daily_transaction_threshold,
                       weekly_transaction_count,
                       weekly_transaction_accumulated,
                       weekly_transaction_balance,
                       weekly_transaction_override,
                       weekly_transaction_threshold,
                       monthly_transaction_count,
                       monthly_transaction_accumulated,
                       monthly_transaction_balance,
                       monthly_transaction_override,
                       monthly_transaction_threshold,
                       annual_transaction_count,
                       annual_transaction_accumulated,
                       annual_transaction_balance,
                       annual_transaction_override,
                       annual_transaction_threshold,
                       life_time_transaction_count,
                       life_time_transaction_accumulated,
                       life_time_transaction_balance,
                       life_time_transaction_override,
                       life_time_transaction_threshold)
end

.namesObject

A mapping from model property names to API property names.



471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 471

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['level'] = 'Level'
  @_hash['daily_spend'] = 'DailySpend'
  @_hash['daily_spend_accumulated'] = 'DailySpendAccumulated'
  @_hash['daily_spend_balance'] = 'DailySpendBalance'
  @_hash['daily_spend_override'] = 'DailySpendOverride'
  @_hash['daily_spend_threshold'] = 'DailySpendThreshold'
  @_hash['weekly_spend'] = 'WeeklySpend'
  @_hash['weekly_spend_accumulated'] = 'WeeklySpendAccumulated'
  @_hash['weekly_spend_balance'] = 'WeeklySpendBalance'
  @_hash['weekly_spend_override'] = 'WeeklySpendOverride'
  @_hash['weekly_spend_threshold'] = 'WeeklySpendThreshold'
  @_hash['monthly_spend'] = 'MonthlySpend'
  @_hash['monthly_spend_accumulated'] = 'MonthlySpendAccumulated'
  @_hash['monthly_spend_balance'] = 'MonthlySpendBalance'
  @_hash['monthly_spend_override'] = 'MonthlySpendOverride'
  @_hash['per_transaction_spend'] = 'PerTransactionSpend'
  @_hash['per_transaction_spend_override'] = 'PerTransactionSpendOverride'
  @_hash['annual_spend'] = 'AnnualSpend'
  @_hash['annual_spend_accumulated'] = 'AnnualSpendAccumulated'
  @_hash['annual_spend_balance'] = 'AnnualSpendBalance'
  @_hash['annual_spend_override'] = 'AnnualSpendOverride'
  @_hash['annual_spend_threshold'] = 'AnnualSpendThreshold'
  @_hash['life_time_spend'] = 'LifeTimeSpend'
  @_hash['life_time_spend_accumulated'] = 'LifeTimeSpendAccumulated'
  @_hash['life_time_spend_balance'] = 'LifeTimeSpendBalance'
  @_hash['life_time_spend_override'] = 'LifeTimeSpendOverride'
  @_hash['life_time_spend_threshold'] = 'LifeTimeSpendThreshold'
  @_hash['daily_volume'] = 'DailyVolume'
  @_hash['daily_volume_accumulated'] = 'DailyVolumeAccumulated'
  @_hash['daily_volume_balance'] = 'DailyVolumeBalance'
  @_hash['daily_volume_override'] = 'DailyVolumeOverride'
  @_hash['daily_volume_threshold'] = 'DailyVolumeThreshold'
  @_hash['weekly_volume'] = 'WeeklyVolume'
  @_hash['weekly_volume_accumulated'] = 'WeeklyVolumeAccumulated'
  @_hash['weekly_volume_balance'] = 'WeeklyVolumeBalance'
  @_hash['weekly_volume_override'] = 'WeeklyVolumeOverride'
  @_hash['weekly_volume_threshold'] = 'WeeklyVolumeThreshold'
  @_hash['monthly_volume'] = 'MonthlyVolume'
  @_hash['monthly_volume_accumulated'] = 'MonthlyVolumeAccumulated'
  @_hash['monthly_volume_balance'] = 'MonthlyVolumeBalance'
  @_hash['monthly_volume_override'] = 'MonthlyVolumeOverride'
  @_hash['monthly_volume_threshold'] = 'MonthlyVolumeThreshold'
  @_hash['per_transaction_volume'] = 'PerTransactionVolume'
  @_hash['per_transaction_volume_override'] =
    'PerTransactionVolumeOverride'
  @_hash['annual_volume'] = 'AnnualVolume'
  @_hash['annual_volume_accumulated'] = 'AnnualVolumeAccumulated'
  @_hash['annual_volume_balance'] = 'AnnualVolumeBalance'
  @_hash['annual_volume_override'] = 'AnnualVolumeOverride'
  @_hash['annual_volume_threshold'] = 'AnnualVolumeThreshold'
  @_hash['life_time_volume'] = 'LifeTimeVolume'
  @_hash['life_time_volume_accumulated'] = 'LifeTimeVolumeAccumulated'
  @_hash['life_time_volume_balance'] = 'LifeTimeVolumeBalance'
  @_hash['life_time_volume_override'] = 'LifeTimeVolumeOverride'
  @_hash['life_time_volume_threshold'] = 'LifeTimeVolumeThreshold'
  @_hash['daily_transaction_count'] = 'DailyTransactionCount'
  @_hash['daily_transaction_accumulated'] = 'DailyTransactionAccumulated'
  @_hash['daily_transaction_balance'] = 'DailyTransactionBalance'
  @_hash['daily_transaction_override'] = 'DailyTransactionOverride'
  @_hash['daily_transaction_threshold'] = 'DailyTransactionThreshold'
  @_hash['weekly_transaction_count'] = 'WeeklyTransactionCount'
  @_hash['weekly_transaction_accumulated'] =
    'WeeklyTransactionAccumulated'
  @_hash['weekly_transaction_balance'] = 'WeeklyTransactionBalance'
  @_hash['weekly_transaction_override'] = 'WeeklyTransactionOverride'
  @_hash['weekly_transaction_threshold'] = 'WeeklyTransactionThreshold'
  @_hash['monthly_transaction_count'] = 'MonthlyTransactionCount'
  @_hash['monthly_transaction_accumulated'] =
    'MonthlyTransactionAccumulated'
  @_hash['monthly_transaction_balance'] = 'MonthlyTransactionBalance'
  @_hash['monthly_transaction_override'] = 'MonthlyTransactionOverride'
  @_hash['monthly_transaction_threshold'] = 'MonthlyTransactionThreshold'
  @_hash['annual_transaction_count'] = 'AnnualTransactionCount'
  @_hash['annual_transaction_accumulated'] =
    'AnnualTransactionAccumulated'
  @_hash['annual_transaction_balance'] = 'AnnualTransactionBalance'
  @_hash['annual_transaction_override'] = 'AnnualTransactionOverride'
  @_hash['annual_transaction_threshold'] = 'AnnualTransactionThreshold'
  @_hash['life_time_transaction_count'] = 'LifeTimeTransactionCount'
  @_hash['life_time_transaction_accumulated'] =
    'LifeTimeTransactionAccumulated'
  @_hash['life_time_transaction_balance'] = 'LifeTimeTransactionBalance'
  @_hash['life_time_transaction_override'] = 'LifeTimeTransactionOverride'
  @_hash['life_time_transaction_threshold'] =
    'LifeTimeTransactionThreshold'
  @_hash
end

.nullablesObject

An array for nullable fields



647
648
649
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 647

def self.nullables
  []
end

.optionalsObject

An array for optional fields



562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
# File 'lib/shell_card_management_ap_is/models/usage_restriction.rb', line 562

def self.optionals
  %w[
    level
    daily_spend
    daily_spend_accumulated
    daily_spend_balance
    daily_spend_override
    daily_spend_threshold
    weekly_spend
    weekly_spend_accumulated
    weekly_spend_balance
    weekly_spend_override
    weekly_spend_threshold
    monthly_spend
    monthly_spend_accumulated
    monthly_spend_balance
    monthly_spend_override
    per_transaction_spend
    per_transaction_spend_override
    annual_spend
    annual_spend_accumulated
    annual_spend_balance
    annual_spend_override
    annual_spend_threshold
    life_time_spend
    life_time_spend_accumulated
    life_time_spend_balance
    life_time_spend_override
    life_time_spend_threshold
    daily_volume
    daily_volume_accumulated
    daily_volume_balance
    daily_volume_override
    daily_volume_threshold
    weekly_volume
    weekly_volume_accumulated
    weekly_volume_balance
    weekly_volume_override
    weekly_volume_threshold
    monthly_volume
    monthly_volume_accumulated
    monthly_volume_balance
    monthly_volume_override
    monthly_volume_threshold
    per_transaction_volume
    per_transaction_volume_override
    annual_volume
    annual_volume_accumulated
    annual_volume_balance
    annual_volume_override
    annual_volume_threshold
    life_time_volume
    life_time_volume_accumulated
    life_time_volume_balance
    life_time_volume_override
    life_time_volume_threshold
    daily_transaction_count
    daily_transaction_accumulated
    daily_transaction_balance
    daily_transaction_override
    daily_transaction_threshold
    weekly_transaction_count
    weekly_transaction_accumulated
    weekly_transaction_balance
    weekly_transaction_override
    weekly_transaction_threshold
    monthly_transaction_count
    monthly_transaction_accumulated
    monthly_transaction_balance
    monthly_transaction_override
    monthly_transaction_threshold
    annual_transaction_count
    annual_transaction_accumulated
    annual_transaction_balance
    annual_transaction_override
    annual_transaction_threshold
    life_time_transaction_count
    life_time_transaction_accumulated
    life_time_transaction_balance
    life_time_transaction_override
    life_time_transaction_threshold
  ]
end