@alexochihua/protos 1.0.41 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,8 +121,8 @@ export interface CreatePhysicalCardContractResponse {
121
121
  product_id: string;
122
122
  contract_number: string;
123
123
  cip: CIPFull[];
124
- card_number_virtual: string;
125
- card_number_physical: string;
124
+ card_virtual?: CardInfo | undefined;
125
+ card_physical?: CardInfo | undefined;
126
126
  new_emboss_uuid: string;
127
127
  expiry_date: string;
128
128
  card_security_code: string;
@@ -1366,8 +1366,8 @@ function createBaseCreatePhysicalCardContractResponse() {
1366
1366
  product_id: "",
1367
1367
  contract_number: "",
1368
1368
  cip: [],
1369
- card_number_virtual: "",
1370
- card_number_physical: "",
1369
+ card_virtual: undefined,
1370
+ card_physical: undefined,
1371
1371
  new_emboss_uuid: "",
1372
1372
  expiry_date: "",
1373
1373
  card_security_code: "",
@@ -1392,11 +1392,11 @@ exports.CreatePhysicalCardContractResponse = {
1392
1392
  for (const v of message.cip) {
1393
1393
  contracts_types_1.CIPFull.encode(v, writer.uint32(42).fork()).join();
1394
1394
  }
1395
- if (message.card_number_virtual !== "") {
1396
- writer.uint32(50).string(message.card_number_virtual);
1395
+ if (message.card_virtual !== undefined) {
1396
+ contracts_types_1.CardInfo.encode(message.card_virtual, writer.uint32(50).fork()).join();
1397
1397
  }
1398
- if (message.card_number_physical !== "") {
1399
- writer.uint32(58).string(message.card_number_physical);
1398
+ if (message.card_physical !== undefined) {
1399
+ contracts_types_1.CardInfo.encode(message.card_physical, writer.uint32(58).fork()).join();
1400
1400
  }
1401
1401
  if (message.new_emboss_uuid !== "") {
1402
1402
  writer.uint32(66).string(message.new_emboss_uuid);
@@ -1461,14 +1461,14 @@ exports.CreatePhysicalCardContractResponse = {
1461
1461
  if (tag !== 50) {
1462
1462
  break;
1463
1463
  }
1464
- message.card_number_virtual = reader.string();
1464
+ message.card_virtual = contracts_types_1.CardInfo.decode(reader, reader.uint32());
1465
1465
  continue;
1466
1466
  }
1467
1467
  case 7: {
1468
1468
  if (tag !== 58) {
1469
1469
  break;
1470
1470
  }
1471
- message.card_number_physical = reader.string();
1471
+ message.card_physical = contracts_types_1.CardInfo.decode(reader, reader.uint32());
1472
1472
  continue;
1473
1473
  }
1474
1474
  case 8: {
@@ -1526,8 +1526,12 @@ exports.CreatePhysicalCardContractResponse = {
1526
1526
  message.product_id = object.product_id ?? "";
1527
1527
  message.contract_number = object.contract_number ?? "";
1528
1528
  message.cip = object.cip?.map((e) => contracts_types_1.CIPFull.fromPartial(e)) || [];
1529
- message.card_number_virtual = object.card_number_virtual ?? "";
1530
- message.card_number_physical = object.card_number_physical ?? "";
1529
+ message.card_virtual = (object.card_virtual !== undefined && object.card_virtual !== null)
1530
+ ? contracts_types_1.CardInfo.fromPartial(object.card_virtual)
1531
+ : undefined;
1532
+ message.card_physical = (object.card_physical !== undefined && object.card_physical !== null)
1533
+ ? contracts_types_1.CardInfo.fromPartial(object.card_physical)
1534
+ : undefined;
1531
1535
  message.new_emboss_uuid = object.new_emboss_uuid ?? "";
1532
1536
  message.expiry_date = object.expiry_date ?? "";
1533
1537
  message.card_security_code = object.card_security_code ?? "";