zugferd_code_lists/zugferd_2_3_3/
linestatus.rs

1#![allow(non_camel_case_types)]
2
3#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
4#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
5pub enum LineStatus {
6    /// Added
7    ///
8    /// The information is to be or has been added.
9    Added,
10    /// Deleted
11    ///
12    /// The information is to be or has been deleted.
13    Deleted,
14    /// Changed
15    ///
16    /// The information is to be or has been changed.
17    Changed,
18    /// No action
19    ///
20    /// This line item is not affected by the actual message.
21    NoAction,
22    /// Accepted without amendment
23    ///
24    /// This line item is entirely accepted by the seller.
25    AcceptedWithoutAmendment,
26    /// Accepted with amendment
27    ///
28    /// This line item is accepted but amended by the seller.
29    AcceptedWithAmendment,
30    /// Not accepted
31    ///
32    /// This line item is not accepted by the seller.
33    NotAccepted,
34    /// Schedule only
35    ///
36    /// Code specifying that the message is a schedule only.
37    ScheduleOnly,
38    /// Amendments
39    ///
40    /// Code specifying that amendments are requested/notified.
41    Amendments,
42    /// Not found
43    ///
44    /// This line item is not found in the referenced message.
45    NotFound,
46    /// Not amended
47    ///
48    /// This line is not amended by the buyer.
49    NotAmended,
50    /// Line item numbers changed
51    ///
52    /// Code specifying that the line item numbers have changed.
53    LineItemNumbersChanged,
54    /// Buyer has deducted amount
55    ///
56    /// Buyer has deducted amount from payment.
57    BuyerHasDeductedAmount,
58    /// Buyer claims against invoice
59    ///
60    /// Buyer has a claim against an outstanding invoice.
61    BuyerClaimsAgainstInvoice,
62    /// Charge back by seller
63    ///
64    /// Factor has been requested to charge back the outstanding item.
65    ChargeBackBySeller,
66    /// Seller will issue credit note
67    ///
68    /// Seller agrees to issue a credit note.
69    SellerWillIssueCreditNote,
70    /// Terms changed for new terms
71    ///
72    /// New settlement terms have been agreed.
73    TermsChangedForNewTerms,
74    /// Abide outcome of negotiations
75    ///
76    /// Factor agrees to abide by the outcome of negotiations between seller and buyer.
77    AbideOutcomeNegotiations,
78    /// Seller rejects dispute
79    ///
80    /// Seller does not accept validity of dispute.
81    SellerRejectsDispute,
82    /// Settlement
83    ///
84    /// The reported situation is settled.
85    Settlement,
86    /// No delivery
87    ///
88    /// Code indicating that no delivery will be required.
89    NoDelivery,
90    /// Call-off delivery
91    ///
92    /// A request for delivery of a particular quantity of goods to be delivered on a particular date (or within a particular period).
93    CallOffDelivery,
94    /// Proposed amendment
95    ///
96    /// A code used to indicate an amendment suggested by the sender.
97    ProposedAmendment,
98    /// Accepted with amendment, no confirmation required
99    ///
100    /// Accepted with changes which require no confirmation.
101    AcceptedWithAmendmentNoConfirmationRequired,
102    /// Equipment provisionally repaired
103    ///
104    /// The equipment or component has been provisionally repaired.
105    EquipmentProvisionallyRepaired,
106    /// Included
107    ///
108    /// Code indicating that the entity is included.
109    Included,
110    /// Upon receipt and verification of documents we shall cover you when due as per your instructions
111    ///
112    /// Upon receipt and verification of documents we shall cover you when due as per your instructions.
113    UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions,
114    /// Upon receipt and verification of documents we shall authorize you to debit our account with you when due
115    ///
116    /// Upon receipt and verification of documents we shall authorize you to debit our account with you when due.
117    UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue,
118    /// On receipt of your authenticated advice we shall cover you when due as per your instructions
119    ///
120    /// On receipt of your authenticated advice we shall cover you when due as per your instructions.
121    OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions,
122    /// On receipt of your authenticated advice we shall authorize you to debit our account with you when due
123    ///
124    /// On receipt of your authenticated advice we shall authorize you to debit our account with you when due.
125    OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue,
126    /// On receipt of your authenticated advice we shall credit your account with us when due
127    ///
128    /// On receipt of your authenticated advice we shall credit your account with us when due.
129    OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue,
130    /// Credit advice requested for direct debit
131    ///
132    /// A credit advice is requested for the direct debit.
133    CreditAdviceRequestedForDirectDebit,
134    /// Credit advice and acknowledgement for direct debit
135    ///
136    /// A credit advice and acknowledgement are requested for the direct debit.
137    CreditAdviceAndAcknowledgementForDirectDebit,
138    /// Inquiry
139    ///
140    /// Request for information.
141    Inquiry,
142    /// Checked
143    ///
144    /// Checked.
145    Checked,
146    /// Not checked
147    ///
148    /// Not checked.
149    NotChecked,
150    /// Cancelled
151    ///
152    /// Discontinued.
153    Cancelled,
154    /// Replaced
155    ///
156    /// Provide a replacement.
157    Replaced,
158    /// New
159    ///
160    /// Not existing before.
161    New,
162    /// Agreed
163    ///
164    /// Consent.
165    Agreed,
166    /// Proposed
167    ///
168    /// Put forward for consideration.
169    Proposed,
170    /// Already delivered
171    ///
172    /// Delivery has taken place.
173    AlreadyDelivered,
174    /// Additional subordinate structures will follow
175    ///
176    /// Additional subordinate structures will follow the current hierarchy level.
177    AdditionalSubordinateStructuresWillFollow,
178    /// Additional subordinate structures will not follow
179    ///
180    /// No additional subordinate structures will follow the current hierarchy level.
181    AdditionalSubordinateStructuresWillNotFollow,
182    /// Result opposed
183    ///
184    /// A notification that the result is opposed.
185    ResultOpposed,
186    /// Auction held
187    ///
188    /// A notification that an auction was held.
189    AuctionHeld,
190    /// Legal action pursued
191    ///
192    /// A notification that legal action has been pursued.
193    LegalActionPursued,
194    /// Meeting held
195    ///
196    /// A notification that a meeting was held.
197    MeetingHeld,
198    /// Result set aside
199    ///
200    /// A notification that the result has been set aside.
201    ResultSetAside,
202    /// Result disputed
203    ///
204    /// A notification that the result has been disputed.
205    ResultDisputed,
206    /// Countersued
207    ///
208    /// A notification that a countersuit has been filed.
209    Countersued,
210    /// Pending
211    ///
212    /// A notification that an action is awaiting settlement.
213    Pending,
214    /// Court action dismissed
215    ///
216    /// A notification that a court action will no longer be heard.
217    CourtActionDismissed,
218    /// Referred item, accepted
219    ///
220    /// The item being referred to has been accepted.
221    ReferredItemAccepted,
222    /// Referred item, rejected
223    ///
224    /// The item being referred to has been rejected.
225    ReferredItemRejected,
226    /// Debit advice statement line
227    ///
228    /// Notification that the statement line is a debit advice.
229    DebitAdviceStatementLine,
230    /// Credit advice statement line
231    ///
232    /// Notification that the statement line is a credit advice.
233    CreditAdviceStatementLine,
234    /// Grouped credit advices
235    ///
236    /// Notification that the credit advices are grouped.
237    GroupedCreditAdvices,
238    /// Grouped debit advices
239    ///
240    /// Notification that the debit advices are grouped.
241    GroupedDebitAdvices,
242    /// Registered
243    ///
244    /// The name is registered.
245    Registered,
246    /// Payment denied
247    ///
248    /// The payment has been denied.
249    PaymentDenied,
250    /// Approved as amended
251    ///
252    /// Approved with modifications.
253    ApprovedAsAmended,
254    /// Approved as submitted
255    ///
256    /// The request has been approved as submitted.
257    ApprovedAsSubmitted,
258    /// Cancelled, no activity
259    ///
260    /// Cancelled due to the lack of activity.
261    CancelledNoActivity,
262    /// Under investigation
263    ///
264    /// Investigation is being done.
265    UnderInvestigation,
266    /// Initial claim received
267    ///
268    /// Notification that the initial claim was received.
269    InitialClaimReceived,
270    /// Not in process
271    ///
272    /// Not in process.
273    NotInProcess,
274    /// Rejected, duplicate
275    ///
276    /// Rejected because it is a duplicate.
277    RejectedDuplicate,
278    /// Rejected, resubmit with corrections
279    ///
280    /// Rejected but may be resubmitted when corrected.
281    RejectedResubmitWithCorrections,
282    /// Pending, incomplete
283    ///
284    /// Pending because of incomplete information.
285    PendingIncomplete,
286    /// Under field office investigation
287    ///
288    /// Investigation by the field is being done.
289    UnderFieldOfficeInvestigation,
290    /// Pending, awaiting additional material
291    ///
292    /// Pending awaiting receipt of additional material.
293    PendingAwaitingAdditionalMaterial,
294    /// Pending, awaiting review
295    ///
296    /// Pending while awaiting review.
297    PendingAwaitingReview,
298    /// Reopened
299    ///
300    /// Opened again.
301    Reopened,
302    /// Processed by primary, forwarded to additional payer(s)
303    ///
304    /// This request has been processed by the primary payer and sent to additional payer(s).
305    ProcessedByPrimaryForwardedToAdditionalPayerS,
306    /// Processed by secondary, forwarded to additional payer(s)
307    ///
308    /// This request has been processed by the secondary payer and sent to additional payer(s).
309    ProcessedBySecondaryForwardedToAdditionalPayerS,
310    /// Processed by tertiary, forwarded to additional payer(s)
311    ///
312    /// This request has been processed by the tertiary payer and sent to additional payer(s).
313    ProcessedByTertiaryForwardedToAdditionalPayerS,
314    /// Previous payment decision reversed
315    ///
316    /// A previous payment decision has been reversed.
317    PreviousPaymentDecisionReversed,
318    /// Not our claim, forwarded to another payer(s)
319    ///
320    /// A request does not belong to this payer but has been forwarded to another payer(s).
321    NotOurClaimForwardedToAnotherPayerS,
322    /// Transferred to correct insurance carrier
323    ///
324    /// The request has been transferred to the correct insurance carrier for processing.
325    TransferredToCorrectInsuranceCarrier,
326    /// Not paid, predetermination pricing only
327    ///
328    /// Payment has not been made and the enclosed response is predetermination pricing only.
329    NotPaidPredeterminationPricingOnly,
330    /// Documentation claim
331    ///
332    /// The claim is for documentation purposes only, no payment required.
333    DocumentationClaim,
334    /// Reviewed
335    ///
336    /// Assessed.
337    Reviewed,
338    /// Repriced
339    ///
340    /// This price was changed.
341    Repriced,
342    /// Audited
343    ///
344    /// An official examination has occurred.
345    Audited,
346    /// Conditionally paid
347    ///
348    /// Payment has been conditionally made.
349    ConditionallyPaid,
350    /// On appeal
351    ///
352    /// Reconsideration of the decision has been applied for.
353    OnAppeal,
354    /// Closed
355    ///
356    /// Shut.
357    Closed,
358    /// Reaudited
359    ///
360    /// A subsequent official examination has occurred.
361    Reaudited,
362    /// Reissued
363    ///
364    /// Issued again.
365    Reissued,
366    /// Closed after reopening
367    ///
368    /// Reopened and then closed.
369    ClosedAfterReopening,
370    /// Redetermined
371    ///
372    /// Determined again or differently.
373    Redetermined,
374    /// Processed as primary
375    ///
376    /// Processed as the first.
377    ProcessedAsPrimary,
378    /// Processed as secondary
379    ///
380    /// Processed as the second.
381    ProcessedAsSecondary,
382    /// Processed as tertiary
383    ///
384    /// Processed as the third.
385    ProcessedAsTertiary,
386    /// Correction of error
387    ///
388    /// A correction to information previously communicated which contained an error.
389    CorrectionError,
390    /// Single credit item of a group
391    ///
392    /// Notification that the credit item is a single credit item of a group of credit items.
393    SingleCreditItemAGroup,
394    /// Single debit item of a group
395    ///
396    /// Notification that the debit item is a single debit item of a group of debit items.
397    SingleDebitItemAGroup,
398    /// Interim response
399    ///
400    /// The response is an interim one.
401    InterimResponse,
402    /// Final response
403    ///
404    /// The response is an final one.
405    FinalResponse,
406    /// Debit advice requested
407    ///
408    /// A debit advice is requested for the transaction.
409    DebitAdviceRequested,
410    /// Transaction not impacted
411    ///
412    /// Advice that the transaction is not impacted.
413    TransactionNotImpacted,
414    /// Patient to be notified
415    ///
416    /// The action to take is to notify the patient.
417    PatientToBeNotified,
418    /// Healthcare provider to be notified
419    ///
420    /// The action to take is to notify the healthcare provider.
421    HealthcareProviderToBeNotified,
422    /// Usual general practitioner to be notified
423    ///
424    /// The action to take is to notify the usual general practitioner.
425    UsualGeneralPractitionerToBeNotified,
426    /// Advice without details
427    ///
428    /// An advice without details is requested or notified.
429    AdviceWithoutDetails,
430    /// Advice with details
431    ///
432    /// An advice with details is requested or notified.
433    AdviceWithDetails,
434    /// Amendment requested
435    ///
436    /// An amendment is requested.
437    AmendmentRequested,
438    /// For information
439    ///
440    /// Included for information only.
441    ForInformation,
442    /// Withdraw
443    ///
444    /// A code indicating discontinuance or retraction.
445    Withdraw,
446    /// Delivery date change
447    ///
448    /// The action / notiification is a change of the delivery date.
449    DeliveryDateChange,
450    /// Quantity change
451    ///
452    /// The action / notification is a change of quantity.
453    QuantityChange,
454    /// Resale and claim
455    ///
456    /// The identified items have been sold by the distributor to the end customer, and compensation for the loss of inventory value is claimed.
457    ResaleAndClaim,
458    /// Resale
459    ///
460    /// The identified items have been sold by the distributor to the end customer.
461    Resale,
462    /// Prior addition
463    ///
464    /// This existing line item becomes available at an earlier date.
465    PriorAddition,
466    /// Expired
467    ///
468    /// This line has expired.
469    Expired,
470    /// Hold
471    ///
472    /// This line is on Hold.
473    Hold,
474    /// Open
475    ///
476    /// This line is open.
477    Open,
478    /// Observe
479    ///
480    /// The object or item is to be or has been observed.
481    Observe,
482}
483
484impl crate::Code for LineStatus {
485    fn code(self) -> &'static str {
486        match self {
487            LineStatus::Added => "1",
488            LineStatus::Deleted => "2",
489            LineStatus::Changed => "3",
490            LineStatus::NoAction => "4",
491            LineStatus::AcceptedWithoutAmendment => "5",
492            LineStatus::AcceptedWithAmendment => "6",
493            LineStatus::NotAccepted => "7",
494            LineStatus::ScheduleOnly => "8",
495            LineStatus::Amendments => "9",
496            LineStatus::NotFound => "10",
497            LineStatus::NotAmended => "11",
498            LineStatus::LineItemNumbersChanged => "12",
499            LineStatus::BuyerHasDeductedAmount => "13",
500            LineStatus::BuyerClaimsAgainstInvoice => "14",
501            LineStatus::ChargeBackBySeller => "15",
502            LineStatus::SellerWillIssueCreditNote => "16",
503            LineStatus::TermsChangedForNewTerms => "17",
504            LineStatus::AbideOutcomeNegotiations => "18",
505            LineStatus::SellerRejectsDispute => "19",
506            LineStatus::Settlement => "20",
507            LineStatus::NoDelivery => "21",
508            LineStatus::CallOffDelivery => "22",
509            LineStatus::ProposedAmendment => "23",
510            LineStatus::AcceptedWithAmendmentNoConfirmationRequired => "24",
511            LineStatus::EquipmentProvisionallyRepaired => "25",
512            LineStatus::Included => "26",
513            LineStatus::UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions => "27",
514            LineStatus::UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "28",
515            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions => "29",
516            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "30",
517            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue => "31",
518            LineStatus::CreditAdviceRequestedForDirectDebit => "32",
519            LineStatus::CreditAdviceAndAcknowledgementForDirectDebit => "33",
520            LineStatus::Inquiry => "34",
521            LineStatus::Checked => "35",
522            LineStatus::NotChecked => "36",
523            LineStatus::Cancelled => "37",
524            LineStatus::Replaced => "38",
525            LineStatus::New => "39",
526            LineStatus::Agreed => "40",
527            LineStatus::Proposed => "41",
528            LineStatus::AlreadyDelivered => "42",
529            LineStatus::AdditionalSubordinateStructuresWillFollow => "43",
530            LineStatus::AdditionalSubordinateStructuresWillNotFollow => "44",
531            LineStatus::ResultOpposed => "45",
532            LineStatus::AuctionHeld => "46",
533            LineStatus::LegalActionPursued => "47",
534            LineStatus::MeetingHeld => "48",
535            LineStatus::ResultSetAside => "49",
536            LineStatus::ResultDisputed => "50",
537            LineStatus::Countersued => "51",
538            LineStatus::Pending => "52",
539            LineStatus::CourtActionDismissed => "53",
540            LineStatus::ReferredItemAccepted => "54",
541            LineStatus::ReferredItemRejected => "55",
542            LineStatus::DebitAdviceStatementLine => "56",
543            LineStatus::CreditAdviceStatementLine => "57",
544            LineStatus::GroupedCreditAdvices => "58",
545            LineStatus::GroupedDebitAdvices => "59",
546            LineStatus::Registered => "60",
547            LineStatus::PaymentDenied => "61",
548            LineStatus::ApprovedAsAmended => "62",
549            LineStatus::ApprovedAsSubmitted => "63",
550            LineStatus::CancelledNoActivity => "64",
551            LineStatus::UnderInvestigation => "65",
552            LineStatus::InitialClaimReceived => "66",
553            LineStatus::NotInProcess => "67",
554            LineStatus::RejectedDuplicate => "68",
555            LineStatus::RejectedResubmitWithCorrections => "69",
556            LineStatus::PendingIncomplete => "70",
557            LineStatus::UnderFieldOfficeInvestigation => "71",
558            LineStatus::PendingAwaitingAdditionalMaterial => "72",
559            LineStatus::PendingAwaitingReview => "73",
560            LineStatus::Reopened => "74",
561            LineStatus::ProcessedByPrimaryForwardedToAdditionalPayerS => "75",
562            LineStatus::ProcessedBySecondaryForwardedToAdditionalPayerS => "76",
563            LineStatus::ProcessedByTertiaryForwardedToAdditionalPayerS => "77",
564            LineStatus::PreviousPaymentDecisionReversed => "78",
565            LineStatus::NotOurClaimForwardedToAnotherPayerS => "79",
566            LineStatus::TransferredToCorrectInsuranceCarrier => "80",
567            LineStatus::NotPaidPredeterminationPricingOnly => "81",
568            LineStatus::DocumentationClaim => "82",
569            LineStatus::Reviewed => "83",
570            LineStatus::Repriced => "84",
571            LineStatus::Audited => "85",
572            LineStatus::ConditionallyPaid => "86",
573            LineStatus::OnAppeal => "87",
574            LineStatus::Closed => "88",
575            LineStatus::Reaudited => "89",
576            LineStatus::Reissued => "90",
577            LineStatus::ClosedAfterReopening => "91",
578            LineStatus::Redetermined => "92",
579            LineStatus::ProcessedAsPrimary => "93",
580            LineStatus::ProcessedAsSecondary => "94",
581            LineStatus::ProcessedAsTertiary => "95",
582            LineStatus::CorrectionError => "96",
583            LineStatus::SingleCreditItemAGroup => "97",
584            LineStatus::SingleDebitItemAGroup => "98",
585            LineStatus::InterimResponse => "99",
586            LineStatus::FinalResponse => "100",
587            LineStatus::DebitAdviceRequested => "101",
588            LineStatus::TransactionNotImpacted => "102",
589            LineStatus::PatientToBeNotified => "103",
590            LineStatus::HealthcareProviderToBeNotified => "104",
591            LineStatus::UsualGeneralPractitionerToBeNotified => "105",
592            LineStatus::AdviceWithoutDetails => "106",
593            LineStatus::AdviceWithDetails => "107",
594            LineStatus::AmendmentRequested => "108",
595            LineStatus::ForInformation => "109",
596            LineStatus::Withdraw => "110",
597            LineStatus::DeliveryDateChange => "111",
598            LineStatus::QuantityChange => "112",
599            LineStatus::ResaleAndClaim => "113",
600            LineStatus::Resale => "114",
601            LineStatus::PriorAddition => "115",
602            LineStatus::Expired => "116",
603            LineStatus::Hold => "117",
604            LineStatus::Open => "118",
605            LineStatus::Observe => "119",
606        }
607    }
608}
609
610impl crate::Description for LineStatus {
611    fn description(self) -> &'static str {
612        match self {
613            LineStatus::Added => "Added",
614            LineStatus::Deleted => "Deleted",
615            LineStatus::Changed => "Changed",
616            LineStatus::NoAction => "No action",
617            LineStatus::AcceptedWithoutAmendment => "Accepted without amendment",
618            LineStatus::AcceptedWithAmendment => "Accepted with amendment",
619            LineStatus::NotAccepted => "Not accepted",
620            LineStatus::ScheduleOnly => "Schedule only",
621            LineStatus::Amendments => "Amendments",
622            LineStatus::NotFound => "Not found",
623            LineStatus::NotAmended => "Not amended",
624            LineStatus::LineItemNumbersChanged => "Line item numbers changed",
625            LineStatus::BuyerHasDeductedAmount => "Buyer has deducted amount",
626            LineStatus::BuyerClaimsAgainstInvoice => "Buyer claims against invoice",
627            LineStatus::ChargeBackBySeller => "Charge back by seller",
628            LineStatus::SellerWillIssueCreditNote => "Seller will issue credit note",
629            LineStatus::TermsChangedForNewTerms => "Terms changed for new terms",
630            LineStatus::AbideOutcomeNegotiations => "Abide outcome of negotiations",
631            LineStatus::SellerRejectsDispute => "Seller rejects dispute",
632            LineStatus::Settlement => "Settlement",
633            LineStatus::NoDelivery => "No delivery",
634            LineStatus::CallOffDelivery => "Call-off delivery",
635            LineStatus::ProposedAmendment => "Proposed amendment",
636            LineStatus::AcceptedWithAmendmentNoConfirmationRequired => "Accepted with amendment, no confirmation required",
637            LineStatus::EquipmentProvisionallyRepaired => "Equipment provisionally repaired",
638            LineStatus::Included => "Included",
639            LineStatus::UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions => "Upon receipt and verification of documents we shall cover you when due as per your instructions",
640            LineStatus::UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "Upon receipt and verification of documents we shall authorize you to debit our account with you when due",
641            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions => "On receipt of your authenticated advice we shall cover you when due as per your instructions",
642            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "On receipt of your authenticated advice we shall authorize you to debit our account with you when due",
643            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue => "On receipt of your authenticated advice we shall credit your account with us when due",
644            LineStatus::CreditAdviceRequestedForDirectDebit => "Credit advice requested for direct debit",
645            LineStatus::CreditAdviceAndAcknowledgementForDirectDebit => "Credit advice and acknowledgement for direct debit",
646            LineStatus::Inquiry => "Inquiry",
647            LineStatus::Checked => "Checked",
648            LineStatus::NotChecked => "Not checked",
649            LineStatus::Cancelled => "Cancelled",
650            LineStatus::Replaced => "Replaced",
651            LineStatus::New => "New",
652            LineStatus::Agreed => "Agreed",
653            LineStatus::Proposed => "Proposed",
654            LineStatus::AlreadyDelivered => "Already delivered",
655            LineStatus::AdditionalSubordinateStructuresWillFollow => "Additional subordinate structures will follow",
656            LineStatus::AdditionalSubordinateStructuresWillNotFollow => "Additional subordinate structures will not follow",
657            LineStatus::ResultOpposed => "Result opposed",
658            LineStatus::AuctionHeld => "Auction held",
659            LineStatus::LegalActionPursued => "Legal action pursued",
660            LineStatus::MeetingHeld => "Meeting held",
661            LineStatus::ResultSetAside => "Result set aside",
662            LineStatus::ResultDisputed => "Result disputed",
663            LineStatus::Countersued => "Countersued",
664            LineStatus::Pending => "Pending",
665            LineStatus::CourtActionDismissed => "Court action dismissed",
666            LineStatus::ReferredItemAccepted => "Referred item, accepted",
667            LineStatus::ReferredItemRejected => "Referred item, rejected",
668            LineStatus::DebitAdviceStatementLine => "Debit advice statement line",
669            LineStatus::CreditAdviceStatementLine => "Credit advice statement line",
670            LineStatus::GroupedCreditAdvices => "Grouped credit advices",
671            LineStatus::GroupedDebitAdvices => "Grouped debit advices",
672            LineStatus::Registered => "Registered",
673            LineStatus::PaymentDenied => "Payment denied",
674            LineStatus::ApprovedAsAmended => "Approved as amended",
675            LineStatus::ApprovedAsSubmitted => "Approved as submitted",
676            LineStatus::CancelledNoActivity => "Cancelled, no activity",
677            LineStatus::UnderInvestigation => "Under investigation",
678            LineStatus::InitialClaimReceived => "Initial claim received",
679            LineStatus::NotInProcess => "Not in process",
680            LineStatus::RejectedDuplicate => "Rejected, duplicate",
681            LineStatus::RejectedResubmitWithCorrections => "Rejected, resubmit with corrections",
682            LineStatus::PendingIncomplete => "Pending, incomplete",
683            LineStatus::UnderFieldOfficeInvestigation => "Under field office investigation",
684            LineStatus::PendingAwaitingAdditionalMaterial => "Pending, awaiting additional material",
685            LineStatus::PendingAwaitingReview => "Pending, awaiting review",
686            LineStatus::Reopened => "Reopened",
687            LineStatus::ProcessedByPrimaryForwardedToAdditionalPayerS => "Processed by primary, forwarded to additional payer(s)",
688            LineStatus::ProcessedBySecondaryForwardedToAdditionalPayerS => "Processed by secondary, forwarded to additional payer(s)",
689            LineStatus::ProcessedByTertiaryForwardedToAdditionalPayerS => "Processed by tertiary, forwarded to additional payer(s)",
690            LineStatus::PreviousPaymentDecisionReversed => "Previous payment decision reversed",
691            LineStatus::NotOurClaimForwardedToAnotherPayerS => "Not our claim, forwarded to another payer(s)",
692            LineStatus::TransferredToCorrectInsuranceCarrier => "Transferred to correct insurance carrier",
693            LineStatus::NotPaidPredeterminationPricingOnly => "Not paid, predetermination pricing only",
694            LineStatus::DocumentationClaim => "Documentation claim",
695            LineStatus::Reviewed => "Reviewed",
696            LineStatus::Repriced => "Repriced",
697            LineStatus::Audited => "Audited",
698            LineStatus::ConditionallyPaid => "Conditionally paid",
699            LineStatus::OnAppeal => "On appeal",
700            LineStatus::Closed => "Closed",
701            LineStatus::Reaudited => "Reaudited",
702            LineStatus::Reissued => "Reissued",
703            LineStatus::ClosedAfterReopening => "Closed after reopening",
704            LineStatus::Redetermined => "Redetermined",
705            LineStatus::ProcessedAsPrimary => "Processed as primary",
706            LineStatus::ProcessedAsSecondary => "Processed as secondary",
707            LineStatus::ProcessedAsTertiary => "Processed as tertiary",
708            LineStatus::CorrectionError => "Correction of error",
709            LineStatus::SingleCreditItemAGroup => "Single credit item of a group",
710            LineStatus::SingleDebitItemAGroup => "Single debit item of a group",
711            LineStatus::InterimResponse => "Interim response",
712            LineStatus::FinalResponse => "Final response",
713            LineStatus::DebitAdviceRequested => "Debit advice requested",
714            LineStatus::TransactionNotImpacted => "Transaction not impacted",
715            LineStatus::PatientToBeNotified => "Patient to be notified",
716            LineStatus::HealthcareProviderToBeNotified => "Healthcare provider to be notified",
717            LineStatus::UsualGeneralPractitionerToBeNotified => "Usual general practitioner to be notified",
718            LineStatus::AdviceWithoutDetails => "Advice without details",
719            LineStatus::AdviceWithDetails => "Advice with details",
720            LineStatus::AmendmentRequested => "Amendment requested",
721            LineStatus::ForInformation => "For information",
722            LineStatus::Withdraw => "Withdraw",
723            LineStatus::DeliveryDateChange => "Delivery date change",
724            LineStatus::QuantityChange => "Quantity change",
725            LineStatus::ResaleAndClaim => "Resale and claim",
726            LineStatus::Resale => "Resale",
727            LineStatus::PriorAddition => "Prior addition",
728            LineStatus::Expired => "Expired",
729            LineStatus::Hold => "Hold",
730            LineStatus::Open => "Open",
731            LineStatus::Observe => "Observe",
732        }
733    }
734}
735
736impl crate::FromCode for LineStatus {
737    fn from_code(code: &str) -> Option<Self>
738    where
739        Self: Sized,
740    {
741        match code {
742            "1" => Some(LineStatus::Added),
743            "2" => Some(LineStatus::Deleted),
744            "3" => Some(LineStatus::Changed),
745            "4" => Some(LineStatus::NoAction),
746            "5" => Some(LineStatus::AcceptedWithoutAmendment),
747            "6" => Some(LineStatus::AcceptedWithAmendment),
748            "7" => Some(LineStatus::NotAccepted),
749            "8" => Some(LineStatus::ScheduleOnly),
750            "9" => Some(LineStatus::Amendments),
751            "10" => Some(LineStatus::NotFound),
752            "11" => Some(LineStatus::NotAmended),
753            "12" => Some(LineStatus::LineItemNumbersChanged),
754            "13" => Some(LineStatus::BuyerHasDeductedAmount),
755            "14" => Some(LineStatus::BuyerClaimsAgainstInvoice),
756            "15" => Some(LineStatus::ChargeBackBySeller),
757            "16" => Some(LineStatus::SellerWillIssueCreditNote),
758            "17" => Some(LineStatus::TermsChangedForNewTerms),
759            "18" => Some(LineStatus::AbideOutcomeNegotiations),
760            "19" => Some(LineStatus::SellerRejectsDispute),
761            "20" => Some(LineStatus::Settlement),
762            "21" => Some(LineStatus::NoDelivery),
763            "22" => Some(LineStatus::CallOffDelivery),
764            "23" => Some(LineStatus::ProposedAmendment),
765            "24" => Some(LineStatus::AcceptedWithAmendmentNoConfirmationRequired),
766            "25" => Some(LineStatus::EquipmentProvisionallyRepaired),
767            "26" => Some(LineStatus::Included),
768            "27" => Some(LineStatus::UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions),
769            "28" => Some(LineStatus::UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue),
770            "29" => Some(LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions),
771            "30" => Some(LineStatus::OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue),
772            "31" => Some(LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue),
773            "32" => Some(LineStatus::CreditAdviceRequestedForDirectDebit),
774            "33" => Some(LineStatus::CreditAdviceAndAcknowledgementForDirectDebit),
775            "34" => Some(LineStatus::Inquiry),
776            "35" => Some(LineStatus::Checked),
777            "36" => Some(LineStatus::NotChecked),
778            "37" => Some(LineStatus::Cancelled),
779            "38" => Some(LineStatus::Replaced),
780            "39" => Some(LineStatus::New),
781            "40" => Some(LineStatus::Agreed),
782            "41" => Some(LineStatus::Proposed),
783            "42" => Some(LineStatus::AlreadyDelivered),
784            "43" => Some(LineStatus::AdditionalSubordinateStructuresWillFollow),
785            "44" => Some(LineStatus::AdditionalSubordinateStructuresWillNotFollow),
786            "45" => Some(LineStatus::ResultOpposed),
787            "46" => Some(LineStatus::AuctionHeld),
788            "47" => Some(LineStatus::LegalActionPursued),
789            "48" => Some(LineStatus::MeetingHeld),
790            "49" => Some(LineStatus::ResultSetAside),
791            "50" => Some(LineStatus::ResultDisputed),
792            "51" => Some(LineStatus::Countersued),
793            "52" => Some(LineStatus::Pending),
794            "53" => Some(LineStatus::CourtActionDismissed),
795            "54" => Some(LineStatus::ReferredItemAccepted),
796            "55" => Some(LineStatus::ReferredItemRejected),
797            "56" => Some(LineStatus::DebitAdviceStatementLine),
798            "57" => Some(LineStatus::CreditAdviceStatementLine),
799            "58" => Some(LineStatus::GroupedCreditAdvices),
800            "59" => Some(LineStatus::GroupedDebitAdvices),
801            "60" => Some(LineStatus::Registered),
802            "61" => Some(LineStatus::PaymentDenied),
803            "62" => Some(LineStatus::ApprovedAsAmended),
804            "63" => Some(LineStatus::ApprovedAsSubmitted),
805            "64" => Some(LineStatus::CancelledNoActivity),
806            "65" => Some(LineStatus::UnderInvestigation),
807            "66" => Some(LineStatus::InitialClaimReceived),
808            "67" => Some(LineStatus::NotInProcess),
809            "68" => Some(LineStatus::RejectedDuplicate),
810            "69" => Some(LineStatus::RejectedResubmitWithCorrections),
811            "70" => Some(LineStatus::PendingIncomplete),
812            "71" => Some(LineStatus::UnderFieldOfficeInvestigation),
813            "72" => Some(LineStatus::PendingAwaitingAdditionalMaterial),
814            "73" => Some(LineStatus::PendingAwaitingReview),
815            "74" => Some(LineStatus::Reopened),
816            "75" => Some(LineStatus::ProcessedByPrimaryForwardedToAdditionalPayerS),
817            "76" => Some(LineStatus::ProcessedBySecondaryForwardedToAdditionalPayerS),
818            "77" => Some(LineStatus::ProcessedByTertiaryForwardedToAdditionalPayerS),
819            "78" => Some(LineStatus::PreviousPaymentDecisionReversed),
820            "79" => Some(LineStatus::NotOurClaimForwardedToAnotherPayerS),
821            "80" => Some(LineStatus::TransferredToCorrectInsuranceCarrier),
822            "81" => Some(LineStatus::NotPaidPredeterminationPricingOnly),
823            "82" => Some(LineStatus::DocumentationClaim),
824            "83" => Some(LineStatus::Reviewed),
825            "84" => Some(LineStatus::Repriced),
826            "85" => Some(LineStatus::Audited),
827            "86" => Some(LineStatus::ConditionallyPaid),
828            "87" => Some(LineStatus::OnAppeal),
829            "88" => Some(LineStatus::Closed),
830            "89" => Some(LineStatus::Reaudited),
831            "90" => Some(LineStatus::Reissued),
832            "91" => Some(LineStatus::ClosedAfterReopening),
833            "92" => Some(LineStatus::Redetermined),
834            "93" => Some(LineStatus::ProcessedAsPrimary),
835            "94" => Some(LineStatus::ProcessedAsSecondary),
836            "95" => Some(LineStatus::ProcessedAsTertiary),
837            "96" => Some(LineStatus::CorrectionError),
838            "97" => Some(LineStatus::SingleCreditItemAGroup),
839            "98" => Some(LineStatus::SingleDebitItemAGroup),
840            "99" => Some(LineStatus::InterimResponse),
841            "100" => Some(LineStatus::FinalResponse),
842            "101" => Some(LineStatus::DebitAdviceRequested),
843            "102" => Some(LineStatus::TransactionNotImpacted),
844            "103" => Some(LineStatus::PatientToBeNotified),
845            "104" => Some(LineStatus::HealthcareProviderToBeNotified),
846            "105" => Some(LineStatus::UsualGeneralPractitionerToBeNotified),
847            "106" => Some(LineStatus::AdviceWithoutDetails),
848            "107" => Some(LineStatus::AdviceWithDetails),
849            "108" => Some(LineStatus::AmendmentRequested),
850            "109" => Some(LineStatus::ForInformation),
851            "110" => Some(LineStatus::Withdraw),
852            "111" => Some(LineStatus::DeliveryDateChange),
853            "112" => Some(LineStatus::QuantityChange),
854            "113" => Some(LineStatus::ResaleAndClaim),
855            "114" => Some(LineStatus::Resale),
856            "115" => Some(LineStatus::PriorAddition),
857            "116" => Some(LineStatus::Expired),
858            "117" => Some(LineStatus::Hold),
859            "118" => Some(LineStatus::Open),
860            "119" => Some(LineStatus::Observe),
861            _ => None,
862        }
863    }
864}