Class: OCI::Onesubscription::Models::SubscribedService

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/onesubscription/models/subscribed_service.rb

Overview

Subscribed service contract details

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SubscribedService

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



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
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 892

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.id = attributes[:'id'] if attributes[:'id']

  self.type = attributes[:'type'] if attributes[:'type']

  self.serial_number = attributes[:'serialNumber'] if attributes[:'serialNumber']

  raise 'You cannot provide both :serialNumber and :serial_number' if attributes.key?(:'serialNumber') && attributes.key?(:'serial_number')

  self.serial_number = attributes[:'serial_number'] if attributes[:'serial_number']

  self.subscription_id = attributes[:'subscriptionId'] if attributes[:'subscriptionId']

  raise 'You cannot provide both :subscriptionId and :subscription_id' if attributes.key?(:'subscriptionId') && attributes.key?(:'subscription_id')

  self.subscription_id = attributes[:'subscription_id'] if attributes[:'subscription_id']

  self.product = attributes[:'product'] if attributes[:'product']

  self.time_start = attributes[:'timeStart'] if attributes[:'timeStart']

  raise 'You cannot provide both :timeStart and :time_start' if attributes.key?(:'timeStart') && attributes.key?(:'time_start')

  self.time_start = attributes[:'time_start'] if attributes[:'time_start']

  self.time_end = attributes[:'timeEnd'] if attributes[:'timeEnd']

  raise 'You cannot provide both :timeEnd and :time_end' if attributes.key?(:'timeEnd') && attributes.key?(:'time_end')

  self.time_end = attributes[:'time_end'] if attributes[:'time_end']

  self.quantity = attributes[:'quantity'] if attributes[:'quantity']

  self.status = attributes[:'status'] if attributes[:'status']

  self.operation_type = attributes[:'operationType'] if attributes[:'operationType']

  raise 'You cannot provide both :operationType and :operation_type' if attributes.key?(:'operationType') && attributes.key?(:'operation_type')

  self.operation_type = attributes[:'operation_type'] if attributes[:'operation_type']

  self.net_unit_price = attributes[:'netUnitPrice'] if attributes[:'netUnitPrice']

  raise 'You cannot provide both :netUnitPrice and :net_unit_price' if attributes.key?(:'netUnitPrice') && attributes.key?(:'net_unit_price')

  self.net_unit_price = attributes[:'net_unit_price'] if attributes[:'net_unit_price']

  self.price_period = attributes[:'pricePeriod'] if attributes[:'pricePeriod']

  raise 'You cannot provide both :pricePeriod and :price_period' if attributes.key?(:'pricePeriod') && attributes.key?(:'price_period')

  self.price_period = attributes[:'price_period'] if attributes[:'price_period']

  self.line_net_amount = attributes[:'lineNetAmount'] if attributes[:'lineNetAmount']

  raise 'You cannot provide both :lineNetAmount and :line_net_amount' if attributes.key?(:'lineNetAmount') && attributes.key?(:'line_net_amount')

  self.line_net_amount = attributes[:'line_net_amount'] if attributes[:'line_net_amount']

  self.is_variable_commitment = attributes[:'isVariableCommitment'] unless attributes[:'isVariableCommitment'].nil?

  raise 'You cannot provide both :isVariableCommitment and :is_variable_commitment' if attributes.key?(:'isVariableCommitment') && attributes.key?(:'is_variable_commitment')

  self.is_variable_commitment = attributes[:'is_variable_commitment'] unless attributes[:'is_variable_commitment'].nil?

  self.is_allowance = attributes[:'isAllowance'] unless attributes[:'isAllowance'].nil?

  raise 'You cannot provide both :isAllowance and :is_allowance' if attributes.key?(:'isAllowance') && attributes.key?(:'is_allowance')

  self.is_allowance = attributes[:'is_allowance'] unless attributes[:'is_allowance'].nil?

  self.used_amount = attributes[:'usedAmount'] if attributes[:'usedAmount']

  raise 'You cannot provide both :usedAmount and :used_amount' if attributes.key?(:'usedAmount') && attributes.key?(:'used_amount')

  self.used_amount = attributes[:'used_amount'] if attributes[:'used_amount']

  self.available_amount = attributes[:'availableAmount'] if attributes[:'availableAmount']

  raise 'You cannot provide both :availableAmount and :available_amount' if attributes.key?(:'availableAmount') && attributes.key?(:'available_amount')

  self.available_amount = attributes[:'available_amount'] if attributes[:'available_amount']

  self.funded_allocation_value = attributes[:'fundedAllocationValue'] if attributes[:'fundedAllocationValue']

  raise 'You cannot provide both :fundedAllocationValue and :funded_allocation_value' if attributes.key?(:'fundedAllocationValue') && attributes.key?(:'funded_allocation_value')

  self.funded_allocation_value = attributes[:'funded_allocation_value'] if attributes[:'funded_allocation_value']

  self.is_having_usage = attributes[:'isHavingUsage'] unless attributes[:'isHavingUsage'].nil?

  raise 'You cannot provide both :isHavingUsage and :is_having_usage' if attributes.key?(:'isHavingUsage') && attributes.key?(:'is_having_usage')

  self.is_having_usage = attributes[:'is_having_usage'] unless attributes[:'is_having_usage'].nil?

  self.is_cap_to_price_list = attributes[:'isCapToPriceList'] unless attributes[:'isCapToPriceList'].nil?

  raise 'You cannot provide both :isCapToPriceList and :is_cap_to_price_list' if attributes.key?(:'isCapToPriceList') && attributes.key?(:'is_cap_to_price_list')

  self.is_cap_to_price_list = attributes[:'is_cap_to_price_list'] unless attributes[:'is_cap_to_price_list'].nil?

  self.credit_percentage = attributes[:'creditPercentage'] if attributes[:'creditPercentage']

  raise 'You cannot provide both :creditPercentage and :credit_percentage' if attributes.key?(:'creditPercentage') && attributes.key?(:'credit_percentage')

  self.credit_percentage = attributes[:'credit_percentage'] if attributes[:'credit_percentage']

  self.partner_transaction_type = attributes[:'partnerTransactionType'] if attributes[:'partnerTransactionType']

  raise 'You cannot provide both :partnerTransactionType and :partner_transaction_type' if attributes.key?(:'partnerTransactionType') && attributes.key?(:'partner_transaction_type')

  self.partner_transaction_type = attributes[:'partner_transaction_type'] if attributes[:'partner_transaction_type']

  self.is_credit_enabled = attributes[:'isCreditEnabled'] unless attributes[:'isCreditEnabled'].nil?

  raise 'You cannot provide both :isCreditEnabled and :is_credit_enabled' if attributes.key?(:'isCreditEnabled') && attributes.key?(:'is_credit_enabled')

  self.is_credit_enabled = attributes[:'is_credit_enabled'] unless attributes[:'is_credit_enabled'].nil?

  self.overage_policy = attributes[:'overagePolicy'] if attributes[:'overagePolicy']

  raise 'You cannot provide both :overagePolicy and :overage_policy' if attributes.key?(:'overagePolicy') && attributes.key?(:'overage_policy')

  self.overage_policy = attributes[:'overage_policy'] if attributes[:'overage_policy']

  self.overage_bill_to = attributes[:'overageBillTo'] if attributes[:'overageBillTo']

  raise 'You cannot provide both :overageBillTo and :overage_bill_to' if attributes.key?(:'overageBillTo') && attributes.key?(:'overage_bill_to')

  self.overage_bill_to = attributes[:'overage_bill_to'] if attributes[:'overage_bill_to']

  self.payg_policy = attributes[:'paygPolicy'] if attributes[:'paygPolicy']

  raise 'You cannot provide both :paygPolicy and :payg_policy' if attributes.key?(:'paygPolicy') && attributes.key?(:'payg_policy')

  self.payg_policy = attributes[:'payg_policy'] if attributes[:'payg_policy']

  self.promo_order_line_id = attributes[:'promoOrderLineId'] if attributes[:'promoOrderLineId']

  raise 'You cannot provide both :promoOrderLineId and :promo_order_line_id' if attributes.key?(:'promoOrderLineId') && attributes.key?(:'promo_order_line_id')

  self.promo_order_line_id = attributes[:'promo_order_line_id'] if attributes[:'promo_order_line_id']

  self.promotion_pricing_type = attributes[:'promotionPricingType'] if attributes[:'promotionPricingType']

  raise 'You cannot provide both :promotionPricingType and :promotion_pricing_type' if attributes.key?(:'promotionPricingType') && attributes.key?(:'promotion_pricing_type')

  self.promotion_pricing_type = attributes[:'promotion_pricing_type'] if attributes[:'promotion_pricing_type']

  self.rate_card_discount_percentage = attributes[:'rateCardDiscountPercentage'] if attributes[:'rateCardDiscountPercentage']

  raise 'You cannot provide both :rateCardDiscountPercentage and :rate_card_discount_percentage' if attributes.key?(:'rateCardDiscountPercentage') && attributes.key?(:'rate_card_discount_percentage')

  self.rate_card_discount_percentage = attributes[:'rate_card_discount_percentage'] if attributes[:'rate_card_discount_percentage']

  self.overage_discount_percentage = attributes[:'overageDiscountPercentage'] if attributes[:'overageDiscountPercentage']

  raise 'You cannot provide both :overageDiscountPercentage and :overage_discount_percentage' if attributes.key?(:'overageDiscountPercentage') && attributes.key?(:'overage_discount_percentage')

  self.overage_discount_percentage = attributes[:'overage_discount_percentage'] if attributes[:'overage_discount_percentage']

  self.bill_to_customer = attributes[:'billToCustomer'] if attributes[:'billToCustomer']

  raise 'You cannot provide both :billToCustomer and :bill_to_customer' if attributes.key?(:'billToCustomer') && attributes.key?(:'bill_to_customer')

  self.bill_to_customer = attributes[:'bill_to_customer'] if attributes[:'bill_to_customer']

  self.bill_to_contact = attributes[:'billToContact'] if attributes[:'billToContact']

  raise 'You cannot provide both :billToContact and :bill_to_contact' if attributes.key?(:'billToContact') && attributes.key?(:'bill_to_contact')

  self.bill_to_contact = attributes[:'bill_to_contact'] if attributes[:'bill_to_contact']

  self.bill_to_address = attributes[:'billToAddress'] if attributes[:'billToAddress']

  raise 'You cannot provide both :billToAddress and :bill_to_address' if attributes.key?(:'billToAddress') && attributes.key?(:'bill_to_address')

  self.bill_to_address = attributes[:'bill_to_address'] if attributes[:'bill_to_address']

  self.payment_number = attributes[:'paymentNumber'] if attributes[:'paymentNumber']

  raise 'You cannot provide both :paymentNumber and :payment_number' if attributes.key?(:'paymentNumber') && attributes.key?(:'payment_number')

  self.payment_number = attributes[:'payment_number'] if attributes[:'payment_number']

  self.time_payment_expiry = attributes[:'timePaymentExpiry'] if attributes[:'timePaymentExpiry']

  raise 'You cannot provide both :timePaymentExpiry and :time_payment_expiry' if attributes.key?(:'timePaymentExpiry') && attributes.key?(:'time_payment_expiry')

  self.time_payment_expiry = attributes[:'time_payment_expiry'] if attributes[:'time_payment_expiry']

  self.payment_term = attributes[:'paymentTerm'] if attributes[:'paymentTerm']

  raise 'You cannot provide both :paymentTerm and :payment_term' if attributes.key?(:'paymentTerm') && attributes.key?(:'payment_term')

  self.payment_term = attributes[:'payment_term'] if attributes[:'payment_term']

  self.payment_method = attributes[:'paymentMethod'] if attributes[:'paymentMethod']

  raise 'You cannot provide both :paymentMethod and :payment_method' if attributes.key?(:'paymentMethod') && attributes.key?(:'payment_method')

  self.payment_method = attributes[:'payment_method'] if attributes[:'payment_method']

  self.transaction_extension_id = attributes[:'transactionExtensionId'] if attributes[:'transactionExtensionId']

  raise 'You cannot provide both :transactionExtensionId and :transaction_extension_id' if attributes.key?(:'transactionExtensionId') && attributes.key?(:'transaction_extension_id')

  self.transaction_extension_id = attributes[:'transaction_extension_id'] if attributes[:'transaction_extension_id']

  self.sales_channel = attributes[:'salesChannel'] if attributes[:'salesChannel']

  raise 'You cannot provide both :salesChannel and :sales_channel' if attributes.key?(:'salesChannel') && attributes.key?(:'sales_channel')

  self.sales_channel = attributes[:'sales_channel'] if attributes[:'sales_channel']

  self.eligible_to_renew = attributes[:'eligibleToRenew'] if attributes[:'eligibleToRenew']

  raise 'You cannot provide both :eligibleToRenew and :eligible_to_renew' if attributes.key?(:'eligibleToRenew') && attributes.key?(:'eligible_to_renew')

  self.eligible_to_renew = attributes[:'eligible_to_renew'] if attributes[:'eligible_to_renew']

  self.renewed_subscribed_service_id = attributes[:'renewedSubscribedServiceId'] if attributes[:'renewedSubscribedServiceId']

  raise 'You cannot provide both :renewedSubscribedServiceId and :renewed_subscribed_service_id' if attributes.key?(:'renewedSubscribedServiceId') && attributes.key?(:'renewed_subscribed_service_id')

  self.renewed_subscribed_service_id = attributes[:'renewed_subscribed_service_id'] if attributes[:'renewed_subscribed_service_id']

  self.term_value = attributes[:'termValue'] if attributes[:'termValue']

  raise 'You cannot provide both :termValue and :term_value' if attributes.key?(:'termValue') && attributes.key?(:'term_value')

  self.term_value = attributes[:'term_value'] if attributes[:'term_value']

  self.term_value_uom = attributes[:'termValueUom'] if attributes[:'termValueUom']

  raise 'You cannot provide both :termValueUom and :term_value_uom' if attributes.key?(:'termValueUom') && attributes.key?(:'term_value_uom')

  self.term_value_uom = attributes[:'term_value_uom'] if attributes[:'term_value_uom']

  self.renewal_opty_id = attributes[:'renewalOptyId'] if attributes[:'renewalOptyId']

  raise 'You cannot provide both :renewalOptyId and :renewal_opty_id' if attributes.key?(:'renewalOptyId') && attributes.key?(:'renewal_opty_id')

  self.renewal_opty_id = attributes[:'renewal_opty_id'] if attributes[:'renewal_opty_id']

  self.renewal_opty_number = attributes[:'renewalOptyNumber'] if attributes[:'renewalOptyNumber']

  raise 'You cannot provide both :renewalOptyNumber and :renewal_opty_number' if attributes.key?(:'renewalOptyNumber') && attributes.key?(:'renewal_opty_number')

  self.renewal_opty_number = attributes[:'renewal_opty_number'] if attributes[:'renewal_opty_number']

  self.renewal_opty_type = attributes[:'renewalOptyType'] if attributes[:'renewalOptyType']

  raise 'You cannot provide both :renewalOptyType and :renewal_opty_type' if attributes.key?(:'renewalOptyType') && attributes.key?(:'renewal_opty_type')

  self.renewal_opty_type = attributes[:'renewal_opty_type'] if attributes[:'renewal_opty_type']

  self.booking_opty_number = attributes[:'bookingOptyNumber'] if attributes[:'bookingOptyNumber']

  raise 'You cannot provide both :bookingOptyNumber and :booking_opty_number' if attributes.key?(:'bookingOptyNumber') && attributes.key?(:'booking_opty_number')

  self.booking_opty_number = attributes[:'booking_opty_number'] if attributes[:'booking_opty_number']

  self.revenue_line_id = attributes[:'revenueLineId'] if attributes[:'revenueLineId']

  raise 'You cannot provide both :revenueLineId and :revenue_line_id' if attributes.key?(:'revenueLineId') && attributes.key?(:'revenue_line_id')

  self.revenue_line_id = attributes[:'revenue_line_id'] if attributes[:'revenue_line_id']

  self.revenue_line_number = attributes[:'revenueLineNumber'] if attributes[:'revenueLineNumber']

  raise 'You cannot provide both :revenueLineNumber and :revenue_line_number' if attributes.key?(:'revenueLineNumber') && attributes.key?(:'revenue_line_number')

  self.revenue_line_number = attributes[:'revenue_line_number'] if attributes[:'revenue_line_number']

  self.major_set = attributes[:'majorSet'] if attributes[:'majorSet']

  raise 'You cannot provide both :majorSet and :major_set' if attributes.key?(:'majorSet') && attributes.key?(:'major_set')

  self.major_set = attributes[:'major_set'] if attributes[:'major_set']

  self.time_majorset_start = attributes[:'timeMajorsetStart'] if attributes[:'timeMajorsetStart']

  raise 'You cannot provide both :timeMajorsetStart and :time_majorset_start' if attributes.key?(:'timeMajorsetStart') && attributes.key?(:'time_majorset_start')

  self.time_majorset_start = attributes[:'time_majorset_start'] if attributes[:'time_majorset_start']

  self.time_majorset_end = attributes[:'timeMajorsetEnd'] if attributes[:'timeMajorsetEnd']

  raise 'You cannot provide both :timeMajorsetEnd and :time_majorset_end' if attributes.key?(:'timeMajorsetEnd') && attributes.key?(:'time_majorset_end')

  self.time_majorset_end = attributes[:'time_majorset_end'] if attributes[:'time_majorset_end']

  self.system_arr_in_lc = attributes[:'systemArrInLc'] if attributes[:'systemArrInLc']

  raise 'You cannot provide both :systemArrInLc and :system_arr_in_lc' if attributes.key?(:'systemArrInLc') && attributes.key?(:'system_arr_in_lc')

  self.system_arr_in_lc = attributes[:'system_arr_in_lc'] if attributes[:'system_arr_in_lc']

  self.system_arr_in_sc = attributes[:'systemArrInSc'] if attributes[:'systemArrInSc']

  raise 'You cannot provide both :systemArrInSc and :system_arr_in_sc' if attributes.key?(:'systemArrInSc') && attributes.key?(:'system_arr_in_sc')

  self.system_arr_in_sc = attributes[:'system_arr_in_sc'] if attributes[:'system_arr_in_sc']

  self.system_atr_arr_in_lc = attributes[:'systemAtrArrInLc'] if attributes[:'systemAtrArrInLc']

  raise 'You cannot provide both :systemAtrArrInLc and :system_atr_arr_in_lc' if attributes.key?(:'systemAtrArrInLc') && attributes.key?(:'system_atr_arr_in_lc')

  self.system_atr_arr_in_lc = attributes[:'system_atr_arr_in_lc'] if attributes[:'system_atr_arr_in_lc']

  self.system_atr_arr_in_sc = attributes[:'systemAtrArrInSc'] if attributes[:'systemAtrArrInSc']

  raise 'You cannot provide both :systemAtrArrInSc and :system_atr_arr_in_sc' if attributes.key?(:'systemAtrArrInSc') && attributes.key?(:'system_atr_arr_in_sc')

  self.system_atr_arr_in_sc = attributes[:'system_atr_arr_in_sc'] if attributes[:'system_atr_arr_in_sc']

  self.revised_arr_in_lc = attributes[:'revisedArrInLc'] if attributes[:'revisedArrInLc']

  raise 'You cannot provide both :revisedArrInLc and :revised_arr_in_lc' if attributes.key?(:'revisedArrInLc') && attributes.key?(:'revised_arr_in_lc')

  self.revised_arr_in_lc = attributes[:'revised_arr_in_lc'] if attributes[:'revised_arr_in_lc']

  self.revised_arr_in_sc = attributes[:'revisedArrInSc'] if attributes[:'revisedArrInSc']

  raise 'You cannot provide both :revisedArrInSc and :revised_arr_in_sc' if attributes.key?(:'revisedArrInSc') && attributes.key?(:'revised_arr_in_sc')

  self.revised_arr_in_sc = attributes[:'revised_arr_in_sc'] if attributes[:'revised_arr_in_sc']

  self.total_value = attributes[:'totalValue'] if attributes[:'totalValue']

  raise 'You cannot provide both :totalValue and :total_value' if attributes.key?(:'totalValue') && attributes.key?(:'total_value')

  self.total_value = attributes[:'total_value'] if attributes[:'total_value']

  self.original_promo_amount = attributes[:'originalPromoAmount'] if attributes[:'originalPromoAmount']

  raise 'You cannot provide both :originalPromoAmount and :original_promo_amount' if attributes.key?(:'originalPromoAmount') && attributes.key?(:'original_promo_amount')

  self.original_promo_amount = attributes[:'original_promo_amount'] if attributes[:'original_promo_amount']

  self.order_header_id = attributes[:'orderHeaderId'] if attributes[:'orderHeaderId']

  raise 'You cannot provide both :orderHeaderId and :order_header_id' if attributes.key?(:'orderHeaderId') && attributes.key?(:'order_header_id')

  self.order_header_id = attributes[:'order_header_id'] if attributes[:'order_header_id']

  self.order_number = attributes[:'orderNumber'] if attributes[:'orderNumber']

  raise 'You cannot provide both :orderNumber and :order_number' if attributes.key?(:'orderNumber') && attributes.key?(:'order_number')

  self.order_number = attributes[:'order_number'] if attributes[:'order_number']

  self.order_type = attributes[:'orderType'] if attributes[:'orderType']

  raise 'You cannot provide both :orderType and :order_type' if attributes.key?(:'orderType') && attributes.key?(:'order_type')

  self.order_type = attributes[:'order_type'] if attributes[:'order_type']

  self.order_line_id = attributes[:'orderLineId'] if attributes[:'orderLineId']

  raise 'You cannot provide both :orderLineId and :order_line_id' if attributes.key?(:'orderLineId') && attributes.key?(:'order_line_id')

  self.order_line_id = attributes[:'order_line_id'] if attributes[:'order_line_id']

  self.order_line_number = attributes[:'orderLineNumber'] if attributes[:'orderLineNumber']

  raise 'You cannot provide both :orderLineNumber and :order_line_number' if attributes.key?(:'orderLineNumber') && attributes.key?(:'order_line_number')

  self.order_line_number = attributes[:'order_line_number'] if attributes[:'order_line_number']

  self.commitment_schedule_id = attributes[:'commitmentScheduleId'] if attributes[:'commitmentScheduleId']

  raise 'You cannot provide both :commitmentScheduleId and :commitment_schedule_id' if attributes.key?(:'commitmentScheduleId') && attributes.key?(:'commitment_schedule_id')

  self.commitment_schedule_id = attributes[:'commitment_schedule_id'] if attributes[:'commitment_schedule_id']

  self. = attributes[:'salesAccountPartyId'] if attributes[:'salesAccountPartyId']

  raise 'You cannot provide both :salesAccountPartyId and :sales_account_party_id' if attributes.key?(:'salesAccountPartyId') && attributes.key?(:'sales_account_party_id')

  self. = attributes[:'sales_account_party_id'] if attributes[:'sales_account_party_id']

  self.data_center = attributes[:'dataCenter'] if attributes[:'dataCenter']

  raise 'You cannot provide both :dataCenter and :data_center' if attributes.key?(:'dataCenter') && attributes.key?(:'data_center')

  self.data_center = attributes[:'data_center'] if attributes[:'data_center']

  self.data_center_region = attributes[:'dataCenterRegion'] if attributes[:'dataCenterRegion']

  raise 'You cannot provide both :dataCenterRegion and :data_center_region' if attributes.key?(:'dataCenterRegion') && attributes.key?(:'data_center_region')

  self.data_center_region = attributes[:'data_center_region'] if attributes[:'data_center_region']

  self.admin_email = attributes[:'adminEmail'] if attributes[:'adminEmail']

  raise 'You cannot provide both :adminEmail and :admin_email' if attributes.key?(:'adminEmail') && attributes.key?(:'admin_email')

  self.admin_email = attributes[:'admin_email'] if attributes[:'admin_email']

  self.buyer_email = attributes[:'buyerEmail'] if attributes[:'buyerEmail']

  raise 'You cannot provide both :buyerEmail and :buyer_email' if attributes.key?(:'buyerEmail') && attributes.key?(:'buyer_email')

  self.buyer_email = attributes[:'buyer_email'] if attributes[:'buyer_email']

  self.subscription_source = attributes[:'subscriptionSource'] if attributes[:'subscriptionSource']

  raise 'You cannot provide both :subscriptionSource and :subscription_source' if attributes.key?(:'subscriptionSource') && attributes.key?(:'subscription_source')

  self.subscription_source = attributes[:'subscription_source'] if attributes[:'subscription_source']

  self.provisioning_source = attributes[:'provisioningSource'] if attributes[:'provisioningSource']

  raise 'You cannot provide both :provisioningSource and :provisioning_source' if attributes.key?(:'provisioningSource') && attributes.key?(:'provisioning_source')

  self.provisioning_source = attributes[:'provisioning_source'] if attributes[:'provisioning_source']

  self.fulfillment_set = attributes[:'fulfillmentSet'] if attributes[:'fulfillmentSet']

  raise 'You cannot provide both :fulfillmentSet and :fulfillment_set' if attributes.key?(:'fulfillmentSet') && attributes.key?(:'fulfillment_set')

  self.fulfillment_set = attributes[:'fulfillment_set'] if attributes[:'fulfillment_set']

  self.is_intent_to_pay = attributes[:'isIntentToPay'] unless attributes[:'isIntentToPay'].nil?

  raise 'You cannot provide both :isIntentToPay and :is_intent_to_pay' if attributes.key?(:'isIntentToPay') && attributes.key?(:'is_intent_to_pay')

  self.is_intent_to_pay = attributes[:'is_intent_to_pay'] unless attributes[:'is_intent_to_pay'].nil?

  self.is_payg = attributes[:'isPayg'] unless attributes[:'isPayg'].nil?

  raise 'You cannot provide both :isPayg and :is_payg' if attributes.key?(:'isPayg') && attributes.key?(:'is_payg')

  self.is_payg = attributes[:'is_payg'] unless attributes[:'is_payg'].nil?

  self.pricing_model = attributes[:'pricingModel'] if attributes[:'pricingModel']

  raise 'You cannot provide both :pricingModel and :pricing_model' if attributes.key?(:'pricingModel') && attributes.key?(:'pricing_model')

  self.pricing_model = attributes[:'pricing_model'] if attributes[:'pricing_model']

  self.program_type = attributes[:'programType'] if attributes[:'programType']

  raise 'You cannot provide both :programType and :program_type' if attributes.key?(:'programType') && attributes.key?(:'program_type')

  self.program_type = attributes[:'program_type'] if attributes[:'program_type']

  self.start_date_type = attributes[:'startDateType'] if attributes[:'startDateType']

  raise 'You cannot provide both :startDateType and :start_date_type' if attributes.key?(:'startDateType') && attributes.key?(:'start_date_type')

  self.start_date_type = attributes[:'start_date_type'] if attributes[:'start_date_type']

  self.time_provisioned = attributes[:'timeProvisioned'] if attributes[:'timeProvisioned']

  raise 'You cannot provide both :timeProvisioned and :time_provisioned' if attributes.key?(:'timeProvisioned') && attributes.key?(:'time_provisioned')

  self.time_provisioned = attributes[:'time_provisioned'] if attributes[:'time_provisioned']

  self.promo_type = attributes[:'promoType'] if attributes[:'promoType']

  raise 'You cannot provide both :promoType and :promo_type' if attributes.key?(:'promoType') && attributes.key?(:'promo_type')

  self.promo_type = attributes[:'promo_type'] if attributes[:'promo_type']

  self.service_to_customer = attributes[:'serviceToCustomer'] if attributes[:'serviceToCustomer']

  raise 'You cannot provide both :serviceToCustomer and :service_to_customer' if attributes.key?(:'serviceToCustomer') && attributes.key?(:'service_to_customer')

  self.service_to_customer = attributes[:'service_to_customer'] if attributes[:'service_to_customer']

  self.service_to_contact = attributes[:'serviceToContact'] if attributes[:'serviceToContact']

  raise 'You cannot provide both :serviceToContact and :service_to_contact' if attributes.key?(:'serviceToContact') && attributes.key?(:'service_to_contact')

  self.service_to_contact = attributes[:'service_to_contact'] if attributes[:'service_to_contact']

  self.service_to_address = attributes[:'serviceToAddress'] if attributes[:'serviceToAddress']

  raise 'You cannot provide both :serviceToAddress and :service_to_address' if attributes.key?(:'serviceToAddress') && attributes.key?(:'service_to_address')

  self.service_to_address = attributes[:'service_to_address'] if attributes[:'service_to_address']

  self.sold_to_customer = attributes[:'soldToCustomer'] if attributes[:'soldToCustomer']

  raise 'You cannot provide both :soldToCustomer and :sold_to_customer' if attributes.key?(:'soldToCustomer') && attributes.key?(:'sold_to_customer')

  self.sold_to_customer = attributes[:'sold_to_customer'] if attributes[:'sold_to_customer']

  self.sold_to_contact = attributes[:'soldToContact'] if attributes[:'soldToContact']

  raise 'You cannot provide both :soldToContact and :sold_to_contact' if attributes.key?(:'soldToContact') && attributes.key?(:'sold_to_contact')

  self.sold_to_contact = attributes[:'sold_to_contact'] if attributes[:'sold_to_contact']

  self.end_user_customer = attributes[:'endUserCustomer'] if attributes[:'endUserCustomer']

  raise 'You cannot provide both :endUserCustomer and :end_user_customer' if attributes.key?(:'endUserCustomer') && attributes.key?(:'end_user_customer')

  self.end_user_customer = attributes[:'end_user_customer'] if attributes[:'end_user_customer']

  self.end_user_contact = attributes[:'endUserContact'] if attributes[:'endUserContact']

  raise 'You cannot provide both :endUserContact and :end_user_contact' if attributes.key?(:'endUserContact') && attributes.key?(:'end_user_contact')

  self.end_user_contact = attributes[:'end_user_contact'] if attributes[:'end_user_contact']

  self.end_user_address = attributes[:'endUserAddress'] if attributes[:'endUserAddress']

  raise 'You cannot provide both :endUserAddress and :end_user_address' if attributes.key?(:'endUserAddress') && attributes.key?(:'end_user_address')

  self.end_user_address = attributes[:'end_user_address'] if attributes[:'end_user_address']

  self.reseller_customer = attributes[:'resellerCustomer'] if attributes[:'resellerCustomer']

  raise 'You cannot provide both :resellerCustomer and :reseller_customer' if attributes.key?(:'resellerCustomer') && attributes.key?(:'reseller_customer')

  self.reseller_customer = attributes[:'reseller_customer'] if attributes[:'reseller_customer']

  self.reseller_contact = attributes[:'resellerContact'] if attributes[:'resellerContact']

  raise 'You cannot provide both :resellerContact and :reseller_contact' if attributes.key?(:'resellerContact') && attributes.key?(:'reseller_contact')

  self.reseller_contact = attributes[:'reseller_contact'] if attributes[:'reseller_contact']

  self.reseller_address = attributes[:'resellerAddress'] if attributes[:'resellerAddress']

  raise 'You cannot provide both :resellerAddress and :reseller_address' if attributes.key?(:'resellerAddress') && attributes.key?(:'reseller_address')

  self.reseller_address = attributes[:'reseller_address'] if attributes[:'reseller_address']

  self.csi = attributes[:'csi'] if attributes[:'csi']

  self.customer_transaction_reference = attributes[:'customerTransactionReference'] if attributes[:'customerTransactionReference']

  raise 'You cannot provide both :customerTransactionReference and :customer_transaction_reference' if attributes.key?(:'customerTransactionReference') && attributes.key?(:'customer_transaction_reference')

  self.customer_transaction_reference = attributes[:'customer_transaction_reference'] if attributes[:'customer_transaction_reference']

  self.partner_credit_amount = attributes[:'partnerCreditAmount'] if attributes[:'partnerCreditAmount']

  raise 'You cannot provide both :partnerCreditAmount and :partner_credit_amount' if attributes.key?(:'partnerCreditAmount') && attributes.key?(:'partner_credit_amount')

  self.partner_credit_amount = attributes[:'partner_credit_amount'] if attributes[:'partner_credit_amount']

  self.is_single_rate_card = attributes[:'isSingleRateCard'] unless attributes[:'isSingleRateCard'].nil?

  raise 'You cannot provide both :isSingleRateCard and :is_single_rate_card' if attributes.key?(:'isSingleRateCard') && attributes.key?(:'is_single_rate_card')

  self.is_single_rate_card = attributes[:'is_single_rate_card'] unless attributes[:'is_single_rate_card'].nil?

  self.agreement_id = attributes[:'agreementId'] if attributes[:'agreementId']

  raise 'You cannot provide both :agreementId and :agreement_id' if attributes.key?(:'agreementId') && attributes.key?(:'agreement_id')

  self.agreement_id = attributes[:'agreement_id'] if attributes[:'agreement_id']

  self.agreement_name = attributes[:'agreementName'] if attributes[:'agreementName']

  raise 'You cannot provide both :agreementName and :agreement_name' if attributes.key?(:'agreementName') && attributes.key?(:'agreement_name')

  self.agreement_name = attributes[:'agreement_name'] if attributes[:'agreement_name']

  self.agreement_type = attributes[:'agreementType'] if attributes[:'agreementType']

  raise 'You cannot provide both :agreementType and :agreement_type' if attributes.key?(:'agreementType') && attributes.key?(:'agreement_type')

  self.agreement_type = attributes[:'agreement_type'] if attributes[:'agreement_type']

  self.billing_frequency = attributes[:'billingFrequency'] if attributes[:'billingFrequency']

  raise 'You cannot provide both :billingFrequency and :billing_frequency' if attributes.key?(:'billingFrequency') && attributes.key?(:'billing_frequency')

  self.billing_frequency = attributes[:'billing_frequency'] if attributes[:'billing_frequency']

  self.time_welcome_email_sent = attributes[:'timeWelcomeEmailSent'] if attributes[:'timeWelcomeEmailSent']

  raise 'You cannot provide both :timeWelcomeEmailSent and :time_welcome_email_sent' if attributes.key?(:'timeWelcomeEmailSent') && attributes.key?(:'time_welcome_email_sent')

  self.time_welcome_email_sent = attributes[:'time_welcome_email_sent'] if attributes[:'time_welcome_email_sent']

  self.time_service_configuration_email_sent = attributes[:'timeServiceConfigurationEmailSent'] if attributes[:'timeServiceConfigurationEmailSent']

  raise 'You cannot provide both :timeServiceConfigurationEmailSent and :time_service_configuration_email_sent' if attributes.key?(:'timeServiceConfigurationEmailSent') && attributes.key?(:'time_service_configuration_email_sent')

  self.time_service_configuration_email_sent = attributes[:'time_service_configuration_email_sent'] if attributes[:'time_service_configuration_email_sent']

  self.time_customer_config = attributes[:'timeCustomerConfig'] if attributes[:'timeCustomerConfig']

  raise 'You cannot provide both :timeCustomerConfig and :time_customer_config' if attributes.key?(:'timeCustomerConfig') && attributes.key?(:'time_customer_config')

  self.time_customer_config = attributes[:'time_customer_config'] if attributes[:'time_customer_config']

  self.time_agreement_end = attributes[:'timeAgreementEnd'] if attributes[:'timeAgreementEnd']

  raise 'You cannot provide both :timeAgreementEnd and :time_agreement_end' if attributes.key?(:'timeAgreementEnd') && attributes.key?(:'time_agreement_end')

  self.time_agreement_end = attributes[:'time_agreement_end'] if attributes[:'time_agreement_end']

  self.commitment_services = attributes[:'commitmentServices'] if attributes[:'commitmentServices']

  raise 'You cannot provide both :commitmentServices and :commitment_services' if attributes.key?(:'commitmentServices') && attributes.key?(:'commitment_services')

  self.commitment_services = attributes[:'commitment_services'] if attributes[:'commitment_services']

  self.rate_cards = attributes[:'rateCards'] if attributes[:'rateCards']

  raise 'You cannot provide both :rateCards and :rate_cards' if attributes.key?(:'rateCards') && attributes.key?(:'rate_cards')

  self.rate_cards = attributes[:'rate_cards'] if attributes[:'rate_cards']

  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']

  raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')

  self.time_created = attributes[:'time_created'] if attributes[:'time_created']

  self.created_by = attributes[:'createdBy'] if attributes[:'createdBy']

  raise 'You cannot provide both :createdBy and :created_by' if attributes.key?(:'createdBy') && attributes.key?(:'created_by')

  self.created_by = attributes[:'created_by'] if attributes[:'created_by']

  self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']

  raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')

  self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']

  self.updated_by = attributes[:'updatedBy'] if attributes[:'updatedBy']

  raise 'You cannot provide both :updatedBy and :updated_by' if attributes.key?(:'updatedBy') && attributes.key?(:'updated_by')

  self.updated_by = attributes[:'updated_by'] if attributes[:'updated_by']

  self.ratecard_type = attributes[:'ratecardType'] if attributes[:'ratecardType']

  raise 'You cannot provide both :ratecardType and :ratecard_type' if attributes.key?(:'ratecardType') && attributes.key?(:'ratecard_type')

  self.ratecard_type = attributes[:'ratecard_type'] if attributes[:'ratecard_type']
end

Instance Attribute Details

#admin_emailString

Subscribed service admin email id

Returns:

  • (String)


352
353
354
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 352

def admin_email
  @admin_email
end

#agreement_idInteger

Subscribed service agreement ID

Returns:

  • (Integer)


465
466
467
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 465

def agreement_id
  @agreement_id
end

#agreement_nameString

Subscribed service agrrement name

Returns:

  • (String)


470
471
472
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 470

def agreement_name
  @agreement_name
end

#agreement_typeString

Subscribed service agrrement type

Returns:

  • (String)


475
476
477
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 475

def agreement_type
  @agreement_type
end

#available_amountString

Subscribed sercice available or remaining amount

Returns:

  • (String)


93
94
95
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 93

def available_amount
  @available_amount
end

#bill_to_addressOCI::Onesubscription::Models::SubscribedServiceAddress



169
170
171
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 169

def bill_to_address
  @bill_to_address
end

#bill_to_contactOCI::Onesubscription::Models::SubscribedServiceUser



166
167
168
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 166

def bill_to_contact
  @bill_to_contact
end

#bill_to_customerOCI::Onesubscription::Models::SubscribedServiceBusinessPartner



163
164
165
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 163

def bill_to_customer
  @bill_to_customer
end

#billing_frequencyString

Subscribed service invoice frequency

Returns:

  • (String)


480
481
482
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 480

def billing_frequency
  @billing_frequency
end

#booking_opty_numberString

Booking Opportunity Number of Subscribed Service

Returns:

  • (String)


237
238
239
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 237

def booking_opty_number
  @booking_opty_number
end

#buyer_emailString

Subscribed service buyer email id

Returns:

  • (String)


357
358
359
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 357

def buyer_email
  @buyer_email
end

#commitment_schedule_idString

Subscribed service commitment schedule Id

Returns:

  • (String)


332
333
334
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 332

def commitment_schedule_id
  @commitment_schedule_id
end

#commitment_servicesArray<OCI::Onesubscription::Models::CommitmentService>

List of Commitment services of a line



505
506
507
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 505

def commitment_services
  @commitment_services
end

#created_byString

User that created the subscribed service

Returns:

  • (String)


520
521
522
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 520

def created_by
  @created_by
end

#credit_percentageString

Subscribed service credit percentage

Returns:

  • (String)


114
115
116
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 114

def credit_percentage
  @credit_percentage
end

#csiInteger

Subscribed service CSI number

Returns:

  • (Integer)


445
446
447
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 445

def csi
  @csi
end

#customer_transaction_referenceString

Identifier for a customer's transactions for purchase of ay oracle services

Returns:

  • (String)


450
451
452
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 450

def customer_transaction_reference
  @customer_transaction_reference
end

#data_centerString

Subscribed service data center

Returns:

  • (String)


342
343
344
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 342

def data_center
  @data_center
end

#data_center_regionString

Subscribed service data center region

Returns:

  • (String)


347
348
349
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 347

def data_center_region
  @data_center_region
end

#eligible_to_renewString

Subscribed service eligible to renew field

Returns:

  • (String)


202
203
204
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 202

def eligible_to_renew
  @eligible_to_renew
end

#end_user_addressOCI::Onesubscription::Models::SubscribedServiceAddress



431
432
433
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 431

def end_user_address
  @end_user_address
end

#end_user_contactOCI::Onesubscription::Models::SubscribedServiceUser



428
429
430
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 428

def end_user_contact
  @end_user_contact
end

#end_user_customerOCI::Onesubscription::Models::SubscribedServiceBusinessPartner



425
426
427
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 425

def end_user_customer
  @end_user_customer
end

#fulfillment_setString

Subscribed service fulfillment set

Returns:

  • (String)


372
373
374
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 372

def fulfillment_set
  @fulfillment_set
end

#funded_allocation_valueString

Funded Allocation line value example: 12000.00

Returns:

  • (String)


99
100
101
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 99

def funded_allocation_value
  @funded_allocation_value
end

#idString

SPM internal Subscribed Service ID

Returns:

  • (String)


15
16
17
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 15

def id
  @id
end

#is_allowanceBOOLEAN

Indicates if a service can recieve usages and consequently have available amounts computed

Returns:

  • (BOOLEAN)


83
84
85
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 83

def is_allowance
  @is_allowance
end

#is_cap_to_price_listBOOLEAN

If true compares rate between ratecard and the active pricelist and minimum rate would be fetched

Returns:

  • (BOOLEAN)


109
110
111
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 109

def is_cap_to_price_list
  @is_cap_to_price_list
end

#is_credit_enabledBOOLEAN

Used in context of service credit lines

Returns:

  • (BOOLEAN)


124
125
126
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 124

def is_credit_enabled
  @is_credit_enabled
end

#is_having_usageBOOLEAN

Indicator on whether or not there has been usage for the subscribed service

Returns:

  • (BOOLEAN)


104
105
106
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 104

def is_having_usage
  @is_having_usage
end

#is_intent_to_payBOOLEAN

Subscribed service intent to pay flag

Returns:

  • (BOOLEAN)


377
378
379
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 377

def is_intent_to_pay
  @is_intent_to_pay
end

#is_paygBOOLEAN

Subscribed service payg flag

Returns:

  • (BOOLEAN)


382
383
384
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 382

def is_payg
  @is_payg
end

#is_single_rate_cardBOOLEAN

Indicates if the Subscribed service has a single ratecard

Returns:

  • (BOOLEAN)


460
461
462
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 460

def is_single_rate_card
  @is_single_rate_card
end

#is_variable_commitmentBOOLEAN

Indicates if the commitment lines can have different quantities

Returns:

  • (BOOLEAN)


78
79
80
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 78

def is_variable_commitment
  @is_variable_commitment
end

#line_net_amountString

Subscribed service line net amount

Returns:

  • (String)


73
74
75
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 73

def line_net_amount
  @line_net_amount
end

#major_setInteger

Subscribed service Major Set

Returns:

  • (Integer)


252
253
254
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 252

def major_set
  @major_set
end

#net_unit_priceString

Subscribed service net unit price

Returns:

  • (String)


63
64
65
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 63

def net_unit_price
  @net_unit_price
end

#operation_typeString

Subscribed service operation type

Returns:

  • (String)


58
59
60
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 58

def operation_type
  @operation_type
end

#order_header_idInteger

Sales Order Header associated to the subscribed service

Returns:

  • (Integer)


307
308
309
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 307

def order_header_id
  @order_header_id
end

#order_line_idInteger

Sales Order Line Id associated to the subscribed service

Returns:

  • (Integer)


322
323
324
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 322

def order_line_id
  @order_line_id
end

#order_line_numberInteger

Sales Order Line Number associated to the subscribed service

Returns:

  • (Integer)


327
328
329
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 327

def order_line_number
  @order_line_number
end

#order_numberInteger

Sales Order Number associated to the subscribed service

Returns:

  • (Integer)


312
313
314
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 312

def order_number
  @order_number
end

#order_typeString

Order Type of Subscribed Service

Returns:

  • (String)


317
318
319
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 317

def order_type
  @order_type
end

#original_promo_amountString

Subscribed service Promotion Amount

Returns:

  • (String)


302
303
304
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 302

def original_promo_amount
  @original_promo_amount
end

#overage_bill_toString

Overage Bill To of Subscribed Service

Returns:

  • (String)


134
135
136
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 134

def overage_bill_to
  @overage_bill_to
end

#overage_discount_percentageString

Subscribed service Overage Discount Percentage

Returns:

  • (String)


160
161
162
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 160

def overage_discount_percentage
  @overage_discount_percentage
end

#overage_policyString

Overage Policy of Subscribed Service

Returns:

  • (String)


129
130
131
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 129

def overage_policy
  @overage_policy
end

#partner_credit_amountString

Subscribed service partner credit amount

Returns:

  • (String)


455
456
457
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 455

def partner_credit_amount
  @partner_credit_amount
end

#partner_transaction_typeString

This field contains the name of the partner to which the subscription belongs - depending on which the invoicing may differ

Returns:

  • (String)


119
120
121
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 119

def partner_transaction_type
  @partner_transaction_type
end

#payg_policyString

Pay As You Go policy of Subscribed Service (Can be null - indicating no payg policy)

Returns:

  • (String)


139
140
141
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 139

def payg_policy
  @payg_policy
end

#payment_methodString

Payment Method of Subscribed Service

Returns:

  • (String)


187
188
189
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 187

def payment_method
  @payment_method
end

#payment_numberString

Payment Number of Subscribed Service

Returns:

  • (String)


174
175
176
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 174

def payment_number
  @payment_number
end

#payment_termOCI::Onesubscription::Models::SubscribedServicePaymentTerm



182
183
184
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 182

def payment_term
  @payment_term
end

#price_periodString

Indicates the period for which the commitment amount can be utilised exceeding which the amount lapses. Also used in calculation of total contract line value

Returns:

  • (String)


68
69
70
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 68

def price_period
  @price_period
end

#pricing_modelString

Subscribed service pricing model

Returns:

  • (String)


387
388
389
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 387

def pricing_model
  @pricing_model
end

#productOCI::Onesubscription::Models::RateCardProduct



33
34
35
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 33

def product
  @product
end

#program_typeString

Subscribed service program type

Returns:

  • (String)


392
393
394
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 392

def program_type
  @program_type
end

#promo_order_line_idInteger

Not null if this service has an associated promotion line in SPM. Contains the line identifier from Order Management of the associated promo line.

Returns:

  • (Integer)


145
146
147
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 145

def promo_order_line_id
  @promo_order_line_id
end

#promo_typeString

Subscribed service promotion type

Returns:

  • (String)


407
408
409
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 407

def promo_type
  @promo_type
end

#promotion_pricing_typeString

Promotion Pricing Type of Subscribed Service (Can be null - indicating no promotion pricing)

Returns:

  • (String)


150
151
152
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 150

def promotion_pricing_type
  @promotion_pricing_type
end

#provisioning_sourceString

Subscribed service provisioning source

Returns:

  • (String)


367
368
369
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 367

def provisioning_source
  @provisioning_source
end

#quantityString

Subscribed service quantity

Returns:

  • (String)


48
49
50
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 48

def quantity
  @quantity
end

#rate_card_discount_percentageString

Subscribed service Rate Card Discount Percentage

Returns:

  • (String)


155
156
157
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 155

def rate_card_discount_percentage
  @rate_card_discount_percentage
end

#rate_cardsArray<OCI::Onesubscription::Models::RateCardSummary>

List of Rate Cards of a Subscribed Service



510
511
512
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 510

def rate_cards
  @rate_cards
end

#ratecard_typeString

SPM Ratecard Type

Returns:

  • (String)


535
536
537
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 535

def ratecard_type
  @ratecard_type
end

#renewal_opty_idInteger

Subscribed service Opportunity Id

Returns:

  • (Integer)


222
223
224
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 222

def renewal_opty_id
  @renewal_opty_id
end

#renewal_opty_numberString

Renewal Opportunity Number of Subscribed Service

Returns:

  • (String)


227
228
229
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 227

def renewal_opty_number
  @renewal_opty_number
end

#renewal_opty_typeString

Renewal Opportunity Type of Subscribed Service

Returns:

  • (String)


232
233
234
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 232

def renewal_opty_type
  @renewal_opty_type
end

#renewed_subscribed_service_idString

SPM renewed Subscription ID

Returns:

  • (String)


207
208
209
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 207

def renewed_subscribed_service_id
  @renewed_subscribed_service_id
end

#reseller_addressOCI::Onesubscription::Models::SubscribedServiceAddress



440
441
442
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 440

def reseller_address
  @reseller_address
end

#reseller_contactOCI::Onesubscription::Models::SubscribedServiceUser



437
438
439
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 437

def reseller_contact
  @reseller_contact
end

#reseller_customerOCI::Onesubscription::Models::SubscribedServiceBusinessPartner



434
435
436
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 434

def reseller_customer
  @reseller_customer
end

#revenue_line_idInteger

Subscribed service Revenue Line Id

Returns:

  • (Integer)


242
243
244
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 242

def revenue_line_id
  @revenue_line_id
end

#revenue_line_numberString

Revenue Line NUmber of Subscribed Service

Returns:

  • (String)


247
248
249
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 247

def revenue_line_number
  @revenue_line_number
end

#revised_arr_in_lcString

Subscribed service Revised ARR

Returns:

  • (String)


287
288
289
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 287

def revised_arr_in_lc
  @revised_arr_in_lc
end

#revised_arr_in_scString

Subscribed service Revised ARR in Standard Currency

Returns:

  • (String)


292
293
294
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 292

def revised_arr_in_sc
  @revised_arr_in_sc
end

#sales_account_party_idInteger

Subscribed service sales account party id

Returns:

  • (Integer)


337
338
339
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 337

def 
  @sales_account_party_id
end

#sales_channelString

Sales Channel of Subscribed Service

Returns:

  • (String)


197
198
199
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 197

def sales_channel
  @sales_channel
end

#serial_numberString

Subscribed service line number

Returns:

  • (String)


25
26
27
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 25

def serial_number
  @serial_number
end

#service_to_addressOCI::Onesubscription::Models::SubscribedServiceAddress



416
417
418
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 416

def service_to_address
  @service_to_address
end

#service_to_contactOCI::Onesubscription::Models::SubscribedServiceUser



413
414
415
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 413

def service_to_contact
  @service_to_contact
end

#service_to_customerOCI::Onesubscription::Models::SubscribedServiceBusinessPartner



410
411
412
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 410

def service_to_customer
  @service_to_customer
end

#sold_to_contactOCI::Onesubscription::Models::SubscribedServiceUser



422
423
424
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 422

def sold_to_contact
  @sold_to_contact
end

#sold_to_customerOCI::Onesubscription::Models::SubscribedServiceBusinessPartner



419
420
421
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 419

def sold_to_customer
  @sold_to_customer
end

#start_date_typeString

Subscribed service start date type

Returns:

  • (String)


397
398
399
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 397

def start_date_type
  @start_date_type
end

#statusString

Subscribed service status

Returns:

  • (String)


53
54
55
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 53

def status
  @status
end

#subscription_idString

Subscription ID associated to the subscribed service

Returns:

  • (String)


30
31
32
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 30

def subscription_id
  @subscription_id
end

#subscription_sourceString

Subscribed service source

Returns:

  • (String)


362
363
364
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 362

def subscription_source
  @subscription_source
end

#system_arr_in_lcString

Subscribed service System ARR

Returns:

  • (String)


267
268
269
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 267

def system_arr_in_lc
  @system_arr_in_lc
end

#system_arr_in_scString

Subscribed service System ARR in Standard Currency

Returns:

  • (String)


272
273
274
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 272

def system_arr_in_sc
  @system_arr_in_sc
end

#system_atr_arr_in_lcString

Subscribed service System ATR-ARR

Returns:

  • (String)


277
278
279
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 277

def system_atr_arr_in_lc
  @system_atr_arr_in_lc
end

#system_atr_arr_in_scString

Subscribed service System ATR-ARR in Standard Currency

Returns:

  • (String)


282
283
284
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 282

def system_atr_arr_in_sc
  @system_atr_arr_in_sc
end

#term_valueInteger

Term value in Months

Returns:

  • (Integer)


212
213
214
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 212

def term_value
  @term_value
end

#term_value_uomString

Term value UOM

Returns:

  • (String)


217
218
219
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 217

def term_value_uom
  @term_value_uom
end

#time_agreement_endDateTime

Subscribed service agrrement end date

Returns:

  • (DateTime)


500
501
502
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 500

def time_agreement_end
  @time_agreement_end
end

#time_createdDateTime

Subscribed service creation date

Returns:

  • (DateTime)


515
516
517
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 515

def time_created
  @time_created
end

#time_customer_configDateTime

Subscribed service customer config date

Returns:

  • (DateTime)


495
496
497
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 495

def time_customer_config
  @time_customer_config
end

#time_endDateTime

Subscribed service end date

Returns:

  • (DateTime)


43
44
45
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 43

def time_end
  @time_end
end

#time_majorset_endDateTime

Subscribed service Major Set End date

Returns:

  • (DateTime)


262
263
264
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 262

def time_majorset_end
  @time_majorset_end
end

#time_majorset_startDateTime

Subscribed service Major Set Start date

Returns:

  • (DateTime)


257
258
259
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 257

def time_majorset_start
  @time_majorset_start
end

#time_payment_expiryDateTime

Subscribed service payment expiry date

Returns:

  • (DateTime)


179
180
181
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 179

def time_payment_expiry
  @time_payment_expiry
end

#time_provisionedDateTime

Subscribed service provisioning date

Returns:

  • (DateTime)


402
403
404
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 402

def time_provisioned
  @time_provisioned
end

#time_service_configuration_email_sentDateTime

Subscribed service service configuration email sent date

Returns:

  • (DateTime)


490
491
492
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 490

def time_service_configuration_email_sent
  @time_service_configuration_email_sent
end

#time_startDateTime

Subscribed service start date

Returns:

  • (DateTime)


38
39
40
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 38

def time_start
  @time_start
end

#time_updatedDateTime

Subscribed service last update date

Returns:

  • (DateTime)


525
526
527
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 525

def time_updated
  @time_updated
end

#time_welcome_email_sentDateTime

Subscribed service welcome email sent date

Returns:

  • (DateTime)


485
486
487
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 485

def time_welcome_email_sent
  @time_welcome_email_sent
end

#total_valueString

Subscribed service total value

Returns:

  • (String)


297
298
299
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 297

def total_value
  @total_value
end

#transaction_extension_idInteger

Subscribed service Transaction Extension Id

Returns:

  • (Integer)


192
193
194
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 192

def transaction_extension_id
  @transaction_extension_id
end

#typeString

Subscribed Service line type

Returns:

  • (String)


20
21
22
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 20

def type
  @type
end

#updated_byString

User that updated the subscribed service

Returns:

  • (String)


530
531
532
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 530

def updated_by
  @updated_by
end

#used_amountString

Subscribed service used amount

Returns:

  • (String)


88
89
90
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 88

def used_amount
  @used_amount
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
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
645
646
647
648
649
650
651
652
653
654
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 538

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'type': :'type',
    'serial_number': :'serialNumber',
    'subscription_id': :'subscriptionId',
    'product': :'product',
    'time_start': :'timeStart',
    'time_end': :'timeEnd',
    'quantity': :'quantity',
    'status': :'status',
    'operation_type': :'operationType',
    'net_unit_price': :'netUnitPrice',
    'price_period': :'pricePeriod',
    'line_net_amount': :'lineNetAmount',
    'is_variable_commitment': :'isVariableCommitment',
    'is_allowance': :'isAllowance',
    'used_amount': :'usedAmount',
    'available_amount': :'availableAmount',
    'funded_allocation_value': :'fundedAllocationValue',
    'is_having_usage': :'isHavingUsage',
    'is_cap_to_price_list': :'isCapToPriceList',
    'credit_percentage': :'creditPercentage',
    'partner_transaction_type': :'partnerTransactionType',
    'is_credit_enabled': :'isCreditEnabled',
    'overage_policy': :'overagePolicy',
    'overage_bill_to': :'overageBillTo',
    'payg_policy': :'paygPolicy',
    'promo_order_line_id': :'promoOrderLineId',
    'promotion_pricing_type': :'promotionPricingType',
    'rate_card_discount_percentage': :'rateCardDiscountPercentage',
    'overage_discount_percentage': :'overageDiscountPercentage',
    'bill_to_customer': :'billToCustomer',
    'bill_to_contact': :'billToContact',
    'bill_to_address': :'billToAddress',
    'payment_number': :'paymentNumber',
    'time_payment_expiry': :'timePaymentExpiry',
    'payment_term': :'paymentTerm',
    'payment_method': :'paymentMethod',
    'transaction_extension_id': :'transactionExtensionId',
    'sales_channel': :'salesChannel',
    'eligible_to_renew': :'eligibleToRenew',
    'renewed_subscribed_service_id': :'renewedSubscribedServiceId',
    'term_value': :'termValue',
    'term_value_uom': :'termValueUom',
    'renewal_opty_id': :'renewalOptyId',
    'renewal_opty_number': :'renewalOptyNumber',
    'renewal_opty_type': :'renewalOptyType',
    'booking_opty_number': :'bookingOptyNumber',
    'revenue_line_id': :'revenueLineId',
    'revenue_line_number': :'revenueLineNumber',
    'major_set': :'majorSet',
    'time_majorset_start': :'timeMajorsetStart',
    'time_majorset_end': :'timeMajorsetEnd',
    'system_arr_in_lc': :'systemArrInLc',
    'system_arr_in_sc': :'systemArrInSc',
    'system_atr_arr_in_lc': :'systemAtrArrInLc',
    'system_atr_arr_in_sc': :'systemAtrArrInSc',
    'revised_arr_in_lc': :'revisedArrInLc',
    'revised_arr_in_sc': :'revisedArrInSc',
    'total_value': :'totalValue',
    'original_promo_amount': :'originalPromoAmount',
    'order_header_id': :'orderHeaderId',
    'order_number': :'orderNumber',
    'order_type': :'orderType',
    'order_line_id': :'orderLineId',
    'order_line_number': :'orderLineNumber',
    'commitment_schedule_id': :'commitmentScheduleId',
    'sales_account_party_id': :'salesAccountPartyId',
    'data_center': :'dataCenter',
    'data_center_region': :'dataCenterRegion',
    'admin_email': :'adminEmail',
    'buyer_email': :'buyerEmail',
    'subscription_source': :'subscriptionSource',
    'provisioning_source': :'provisioningSource',
    'fulfillment_set': :'fulfillmentSet',
    'is_intent_to_pay': :'isIntentToPay',
    'is_payg': :'isPayg',
    'pricing_model': :'pricingModel',
    'program_type': :'programType',
    'start_date_type': :'startDateType',
    'time_provisioned': :'timeProvisioned',
    'promo_type': :'promoType',
    'service_to_customer': :'serviceToCustomer',
    'service_to_contact': :'serviceToContact',
    'service_to_address': :'serviceToAddress',
    'sold_to_customer': :'soldToCustomer',
    'sold_to_contact': :'soldToContact',
    'end_user_customer': :'endUserCustomer',
    'end_user_contact': :'endUserContact',
    'end_user_address': :'endUserAddress',
    'reseller_customer': :'resellerCustomer',
    'reseller_contact': :'resellerContact',
    'reseller_address': :'resellerAddress',
    'csi': :'csi',
    'customer_transaction_reference': :'customerTransactionReference',
    'partner_credit_amount': :'partnerCreditAmount',
    'is_single_rate_card': :'isSingleRateCard',
    'agreement_id': :'agreementId',
    'agreement_name': :'agreementName',
    'agreement_type': :'agreementType',
    'billing_frequency': :'billingFrequency',
    'time_welcome_email_sent': :'timeWelcomeEmailSent',
    'time_service_configuration_email_sent': :'timeServiceConfigurationEmailSent',
    'time_customer_config': :'timeCustomerConfig',
    'time_agreement_end': :'timeAgreementEnd',
    'commitment_services': :'commitmentServices',
    'rate_cards': :'rateCards',
    'time_created': :'timeCreated',
    'created_by': :'createdBy',
    'time_updated': :'timeUpdated',
    'updated_by': :'updatedBy',
    'ratecard_type': :'ratecardType'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 657

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'type': :'String',
    'serial_number': :'String',
    'subscription_id': :'String',
    'product': :'OCI::Onesubscription::Models::RateCardProduct',
    'time_start': :'DateTime',
    'time_end': :'DateTime',
    'quantity': :'String',
    'status': :'String',
    'operation_type': :'String',
    'net_unit_price': :'String',
    'price_period': :'String',
    'line_net_amount': :'String',
    'is_variable_commitment': :'BOOLEAN',
    'is_allowance': :'BOOLEAN',
    'used_amount': :'String',
    'available_amount': :'String',
    'funded_allocation_value': :'String',
    'is_having_usage': :'BOOLEAN',
    'is_cap_to_price_list': :'BOOLEAN',
    'credit_percentage': :'String',
    'partner_transaction_type': :'String',
    'is_credit_enabled': :'BOOLEAN',
    'overage_policy': :'String',
    'overage_bill_to': :'String',
    'payg_policy': :'String',
    'promo_order_line_id': :'Integer',
    'promotion_pricing_type': :'String',
    'rate_card_discount_percentage': :'String',
    'overage_discount_percentage': :'String',
    'bill_to_customer': :'OCI::Onesubscription::Models::SubscribedServiceBusinessPartner',
    'bill_to_contact': :'OCI::Onesubscription::Models::SubscribedServiceUser',
    'bill_to_address': :'OCI::Onesubscription::Models::SubscribedServiceAddress',
    'payment_number': :'String',
    'time_payment_expiry': :'DateTime',
    'payment_term': :'OCI::Onesubscription::Models::SubscribedServicePaymentTerm',
    'payment_method': :'String',
    'transaction_extension_id': :'Integer',
    'sales_channel': :'String',
    'eligible_to_renew': :'String',
    'renewed_subscribed_service_id': :'String',
    'term_value': :'Integer',
    'term_value_uom': :'String',
    'renewal_opty_id': :'Integer',
    'renewal_opty_number': :'String',
    'renewal_opty_type': :'String',
    'booking_opty_number': :'String',
    'revenue_line_id': :'Integer',
    'revenue_line_number': :'String',
    'major_set': :'Integer',
    'time_majorset_start': :'DateTime',
    'time_majorset_end': :'DateTime',
    'system_arr_in_lc': :'String',
    'system_arr_in_sc': :'String',
    'system_atr_arr_in_lc': :'String',
    'system_atr_arr_in_sc': :'String',
    'revised_arr_in_lc': :'String',
    'revised_arr_in_sc': :'String',
    'total_value': :'String',
    'original_promo_amount': :'String',
    'order_header_id': :'Integer',
    'order_number': :'Integer',
    'order_type': :'String',
    'order_line_id': :'Integer',
    'order_line_number': :'Integer',
    'commitment_schedule_id': :'String',
    'sales_account_party_id': :'Integer',
    'data_center': :'String',
    'data_center_region': :'String',
    'admin_email': :'String',
    'buyer_email': :'String',
    'subscription_source': :'String',
    'provisioning_source': :'String',
    'fulfillment_set': :'String',
    'is_intent_to_pay': :'BOOLEAN',
    'is_payg': :'BOOLEAN',
    'pricing_model': :'String',
    'program_type': :'String',
    'start_date_type': :'String',
    'time_provisioned': :'DateTime',
    'promo_type': :'String',
    'service_to_customer': :'OCI::Onesubscription::Models::SubscribedServiceBusinessPartner',
    'service_to_contact': :'OCI::Onesubscription::Models::SubscribedServiceUser',
    'service_to_address': :'OCI::Onesubscription::Models::SubscribedServiceAddress',
    'sold_to_customer': :'OCI::Onesubscription::Models::SubscribedServiceBusinessPartner',
    'sold_to_contact': :'OCI::Onesubscription::Models::SubscribedServiceUser',
    'end_user_customer': :'OCI::Onesubscription::Models::SubscribedServiceBusinessPartner',
    'end_user_contact': :'OCI::Onesubscription::Models::SubscribedServiceUser',
    'end_user_address': :'OCI::Onesubscription::Models::SubscribedServiceAddress',
    'reseller_customer': :'OCI::Onesubscription::Models::SubscribedServiceBusinessPartner',
    'reseller_contact': :'OCI::Onesubscription::Models::SubscribedServiceUser',
    'reseller_address': :'OCI::Onesubscription::Models::SubscribedServiceAddress',
    'csi': :'Integer',
    'customer_transaction_reference': :'String',
    'partner_credit_amount': :'String',
    'is_single_rate_card': :'BOOLEAN',
    'agreement_id': :'Integer',
    'agreement_name': :'String',
    'agreement_type': :'String',
    'billing_frequency': :'String',
    'time_welcome_email_sent': :'DateTime',
    'time_service_configuration_email_sent': :'DateTime',
    'time_customer_config': :'DateTime',
    'time_agreement_end': :'DateTime',
    'commitment_services': :'Array<OCI::Onesubscription::Models::CommitmentService>',
    'rate_cards': :'Array<OCI::Onesubscription::Models::RateCardSummary>',
    'time_created': :'DateTime',
    'created_by': :'String',
    'time_updated': :'DateTime',
    'updated_by': :'String',
    'ratecard_type': :'String'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 1548

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    id == other.id &&
    type == other.type &&
    serial_number == other.serial_number &&
    subscription_id == other.subscription_id &&
    product == other.product &&
    time_start == other.time_start &&
    time_end == other.time_end &&
    quantity == other.quantity &&
    status == other.status &&
    operation_type == other.operation_type &&
    net_unit_price == other.net_unit_price &&
    price_period == other.price_period &&
    line_net_amount == other.line_net_amount &&
    is_variable_commitment == other.is_variable_commitment &&
    is_allowance == other.is_allowance &&
    used_amount == other.used_amount &&
    available_amount == other.available_amount &&
    funded_allocation_value == other.funded_allocation_value &&
    is_having_usage == other.is_having_usage &&
    is_cap_to_price_list == other.is_cap_to_price_list &&
    credit_percentage == other.credit_percentage &&
    partner_transaction_type == other.partner_transaction_type &&
    is_credit_enabled == other.is_credit_enabled &&
    overage_policy == other.overage_policy &&
    overage_bill_to == other.overage_bill_to &&
    payg_policy == other.payg_policy &&
    promo_order_line_id == other.promo_order_line_id &&
    promotion_pricing_type == other.promotion_pricing_type &&
    rate_card_discount_percentage == other.rate_card_discount_percentage &&
    overage_discount_percentage == other.overage_discount_percentage &&
    bill_to_customer == other.bill_to_customer &&
    bill_to_contact == other.bill_to_contact &&
    bill_to_address == other.bill_to_address &&
    payment_number == other.payment_number &&
    time_payment_expiry == other.time_payment_expiry &&
    payment_term == other.payment_term &&
    payment_method == other.payment_method &&
    transaction_extension_id == other.transaction_extension_id &&
    sales_channel == other.sales_channel &&
    eligible_to_renew == other.eligible_to_renew &&
    renewed_subscribed_service_id == other.renewed_subscribed_service_id &&
    term_value == other.term_value &&
    term_value_uom == other.term_value_uom &&
    renewal_opty_id == other.renewal_opty_id &&
    renewal_opty_number == other.renewal_opty_number &&
    renewal_opty_type == other.renewal_opty_type &&
    booking_opty_number == other.booking_opty_number &&
    revenue_line_id == other.revenue_line_id &&
    revenue_line_number == other.revenue_line_number &&
    major_set == other.major_set &&
    time_majorset_start == other.time_majorset_start &&
    time_majorset_end == other.time_majorset_end &&
    system_arr_in_lc == other.system_arr_in_lc &&
    system_arr_in_sc == other.system_arr_in_sc &&
    system_atr_arr_in_lc == other.system_atr_arr_in_lc &&
    system_atr_arr_in_sc == other.system_atr_arr_in_sc &&
    revised_arr_in_lc == other.revised_arr_in_lc &&
    revised_arr_in_sc == other.revised_arr_in_sc &&
    total_value == other.total_value &&
    original_promo_amount == other.original_promo_amount &&
    order_header_id == other.order_header_id &&
    order_number == other.order_number &&
    order_type == other.order_type &&
    order_line_id == other.order_line_id &&
    order_line_number == other.order_line_number &&
    commitment_schedule_id == other.commitment_schedule_id &&
     == other. &&
    data_center == other.data_center &&
    data_center_region == other.data_center_region &&
    admin_email == other.admin_email &&
    buyer_email == other.buyer_email &&
    subscription_source == other.subscription_source &&
    provisioning_source == other.provisioning_source &&
    fulfillment_set == other.fulfillment_set &&
    is_intent_to_pay == other.is_intent_to_pay &&
    is_payg == other.is_payg &&
    pricing_model == other.pricing_model &&
    program_type == other.program_type &&
    start_date_type == other.start_date_type &&
    time_provisioned == other.time_provisioned &&
    promo_type == other.promo_type &&
    service_to_customer == other.service_to_customer &&
    service_to_contact == other.service_to_contact &&
    service_to_address == other.service_to_address &&
    sold_to_customer == other.sold_to_customer &&
    sold_to_contact == other.sold_to_contact &&
    end_user_customer == other.end_user_customer &&
    end_user_contact == other.end_user_contact &&
    end_user_address == other.end_user_address &&
    reseller_customer == other.reseller_customer &&
    reseller_contact == other.reseller_contact &&
    reseller_address == other.reseller_address &&
    csi == other.csi &&
    customer_transaction_reference == other.customer_transaction_reference &&
    partner_credit_amount == other.partner_credit_amount &&
    is_single_rate_card == other.is_single_rate_card &&
    agreement_id == other.agreement_id &&
    agreement_name == other.agreement_name &&
    agreement_type == other.agreement_type &&
    billing_frequency == other.billing_frequency &&
    time_welcome_email_sent == other.time_welcome_email_sent &&
    time_service_configuration_email_sent == other.time_service_configuration_email_sent &&
    time_customer_config == other.time_customer_config &&
    time_agreement_end == other.time_agreement_end &&
    commitment_services == other.commitment_services &&
    rate_cards == other.rate_cards &&
    time_created == other.time_created &&
    created_by == other.created_by &&
    time_updated == other.time_updated &&
    updated_by == other.updated_by &&
    ratecard_type == other.ratecard_type
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 1688

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1668
1669
1670
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 1668

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



1677
1678
1679
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 1677

def hash
  [id, type, serial_number, subscription_id, product, time_start, time_end, quantity, status, operation_type, net_unit_price, price_period, line_net_amount, is_variable_commitment, is_allowance, used_amount, available_amount, funded_allocation_value, is_having_usage, is_cap_to_price_list, credit_percentage, partner_transaction_type, is_credit_enabled, overage_policy, overage_bill_to, payg_policy, promo_order_line_id, promotion_pricing_type, rate_card_discount_percentage, overage_discount_percentage, bill_to_customer, bill_to_contact, bill_to_address, payment_number, time_payment_expiry, payment_term, payment_method, transaction_extension_id, sales_channel, eligible_to_renew, renewed_subscribed_service_id, term_value, term_value_uom, renewal_opty_id, renewal_opty_number, renewal_opty_type, booking_opty_number, revenue_line_id, revenue_line_number, major_set, time_majorset_start, time_majorset_end, system_arr_in_lc, system_arr_in_sc, system_atr_arr_in_lc, system_atr_arr_in_sc, revised_arr_in_lc, revised_arr_in_sc, total_value, original_promo_amount, order_header_id, order_number, order_type, order_line_id, order_line_number, commitment_schedule_id, , data_center, data_center_region, admin_email, buyer_email, subscription_source, provisioning_source, fulfillment_set, is_intent_to_pay, is_payg, pricing_model, program_type, start_date_type, time_provisioned, promo_type, service_to_customer, service_to_contact, service_to_address, sold_to_customer, sold_to_contact, end_user_customer, end_user_contact, end_user_address, reseller_customer, reseller_contact, reseller_address, csi, customer_transaction_reference, partner_credit_amount, is_single_rate_card, agreement_id, agreement_name, agreement_type, billing_frequency, time_welcome_email_sent, time_service_configuration_email_sent, time_customer_config, time_agreement_end, commitment_services, rate_cards, time_created, created_by, time_updated, updated_by, ratecard_type].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 1721

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



1715
1716
1717
# File 'lib/oci/onesubscription/models/subscribed_service.rb', line 1715

def to_s
  to_hash.to_s
end