zugferd_code_lists/zugferd_2_3_2/
linestatus.rs

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